21:11:01 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/125966 21:11:01 Running as SYSTEM 21:11:01 [EnvInject] - Loading node environment variables. 21:11:01 Building remotely on prd-ubuntu2204-docker-4c-16g-6884 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-chromium 21:11:01 [ssh-agent] Looking for ssh-agent implementation... 21:11:02 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 21:11:02 $ ssh-agent 21:11:02 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXtt1dgE/agent.1564 21:11:02 SSH_AGENT_PID=1566 21:11:02 [ssh-agent] Started. 21:11:02 Running ssh-add (command line suppressed) 21:11:02 Identity added: /w/workspace/transportpce-tox-verify-chromium@tmp/private_key_14483374070835080869.key (/w/workspace/transportpce-tox-verify-chromium@tmp/private_key_14483374070835080869.key) 21:11:02 [ssh-agent] Using credentials jenkins (jenkins-ssh) 21:11:02 The recommended git tool is: NONE 21:11:04 using credential jenkins-ssh 21:11:04 Wiping out workspace first. 21:11:04 Cloning the remote Git repository 21:11:04 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 21:11:04 > git init /w/workspace/transportpce-tox-verify-chromium # timeout=10 21:11:04 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 21:11:04 > git --version # timeout=10 21:11:04 > git --version # 'git version 2.34.1' 21:11:04 using GIT_SSH to set credentials jenkins-ssh 21:11:04 Verifying host key using known hosts file, will automatically accept unseen keys 21:11:04 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 21:11:07 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 21:11:07 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 21:11:08 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 21:11:08 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 21:11:08 using GIT_SSH to set credentials jenkins-ssh 21:11:08 Verifying host key using known hosts file, will automatically accept unseen keys 21:11:08 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/66/125966/1 # timeout=10 21:11:08 > git rev-parse 112310495285fd3451e8150c9a0ae990def27503^{commit} # timeout=10 21:11:08 Checking out Revision 112310495285fd3451e8150c9a0ae990def27503 (refs/changes/66/125966/1) 21:11:08 > git config core.sparsecheckout # timeout=10 21:11:08 > git checkout -f 112310495285fd3451e8150c9a0ae990def27503 # timeout=10 21:11:08 Commit message: "Bump upstream dependencies to Cr-SR1" 21:11:08 > git rev-parse FETCH_HEAD^{commit} # timeout=10 21:11:09 > git rev-list --no-walk 93f0102d5928fa071de87336557bee33e1f9a99c # timeout=10 21:11:09 > git remote # timeout=10 21:11:09 > git submodule init # timeout=10 21:11:09 > git submodule sync # timeout=10 21:11:09 > git config --get remote.origin.url # timeout=10 21:11:09 > git submodule init # timeout=10 21:11:09 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 21:11:09 ERROR: No submodules found. 21:11:12 provisioning config files... 21:11:12 copy managed file [npmrc] to file:/home/jenkins/.npmrc 21:11:12 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 21:11:12 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins18229502882297599574.sh 21:11:12 ---> python-tools-install.sh 21:11:12 Setup pyenv: 21:11:12 * system (set by /opt/pyenv/version) 21:11:12 * 3.8.20 (set by /opt/pyenv/version) 21:11:12 * 3.9.20 (set by /opt/pyenv/version) 21:11:12 3.10.15 21:11:12 3.11.10 21:11:17 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-iL0j 21:11:17 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 21:11:17 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 21:11:21 lf-activate-venv(): INFO: Installing additional packages: lftools 21:11:50 lf-activate-venv(): INFO: Adding /tmp/venv-iL0j/bin to PATH 21:11:50 Generating Requirements File 21:12:14 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. 21:12:14 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 21:12:14 Python 3.11.10 21:12:15 pip 26.2.1 from /tmp/venv-iL0j/lib/python3.11/site-packages/pip (python 3.11) 21:12:15 aiohappyeyeballs==2.7.1 21:12:15 aiohttp==3.14.3 21:12:15 aiosignal==1.4.0 21:12:15 appdirs==1.4.4 21:12:15 argcomplete==3.7.2 21:12:15 aspy.yaml==1.3.0 21:12:15 attrs==26.1.0 21:12:15 autopage==0.6.0 21:12:15 beautifulsoup4==4.15.0 21:12:15 boto3==1.43.92 21:12:15 botocore==1.43.92 21:12:15 bs4==0.0.2 21:12:15 certifi==2026.7.22 21:12:15 cffi==2.1.1 21:12:15 cfgv==3.5.0 21:12:15 chardet==7.6.0 21:12:15 charset-normalizer==3.5.1 21:12:15 click==8.5.0 21:12:15 cliff==4.16.0 21:12:15 cmd2==4.2.4 21:12:15 cryptography==3.3.2 21:12:15 debtcollector==3.1.0 21:12:15 decorator==5.3.1 21:12:15 defusedxml==0.7.1 21:12:15 Deprecated==1.3.1 21:12:15 distlib==0.4.3 21:12:15 dnspython==2.8.0 21:12:15 docker==7.2.0 21:12:15 dogpile.cache==1.5.0 21:12:15 durationpy==0.11 21:12:15 email-validator==2.3.0 21:12:15 filelock==3.32.6 21:12:15 frozenlist==1.8.0 21:12:15 future==1.0.0 21:12:15 gitdb==4.0.12 21:12:15 GitPython==3.1.62 21:12:15 httplib2==0.30.2 21:12:15 identify==2.6.19 21:12:15 idna==3.19 21:12:15 importlib-resources==1.5.0 21:12:15 iso8601==2.1.0 21:12:15 Jinja2==3.1.6 21:12:15 jmespath==1.1.0 21:12:15 jsonpatch==1.33 21:12:15 jsonpointer==3.1.1 21:12:15 jsonschema==4.26.0 21:12:15 jsonschema-specifications==2025.9.1 21:12:15 keystoneauth1==5.17.0 21:12:15 kubernetes==36.0.3 21:12:15 lftools==0.37.23 21:12:15 lxml==6.1.3 21:12:15 markdown-it-py==4.2.0 21:12:15 MarkupSafe==3.0.3 21:12:15 mdurl==0.1.2 21:12:15 msgpack==1.2.2 21:12:15 multi_key_dict==2.0.3 21:12:15 multidict==6.8.0 21:12:15 munch==4.0.0 21:12:15 netaddr==1.3.0 21:12:15 niet==1.4.2 21:12:15 nodeenv==1.10.0 21:12:15 oauth2client==4.1.3 21:12:15 oauthlib==3.3.1 21:12:15 openstacksdk==4.20.0 21:12:15 os-service-types==1.9.0 21:12:15 osc-lib==4.7.0 21:12:15 oslo.config==10.7.0 21:12:15 oslo.context==6.5.0 21:12:15 oslo.i18n==6.9.0 21:12:15 oslo.log==8.3.2 21:12:15 oslo.serialization==5.11.0 21:12:15 oslo.utils==10.2.0 21:12:15 packaging==26.3 21:12:15 pbr==7.0.3 21:12:15 platformdirs==4.11.8 21:12:15 prettytable==3.18.0 21:12:15 prompt_toolkit==3.0.53 21:12:15 propcache==0.5.2 21:12:15 psutil==7.2.2 21:12:15 pyasn1==0.6.4 21:12:15 pyasn1_modules==0.4.2 21:12:15 pycparser==3.0 21:12:15 pygerrit2==2.0.15 21:12:15 PyGithub==2.10.0 21:12:15 Pygments==2.21.0 21:12:15 PyJWT==2.13.0 21:12:15 PyNaCl==1.6.2 21:12:15 pyparsing==2.4.7 21:12:15 pyperclip==1.11.0 21:12:15 pyrsistent==0.20.0 21:12:15 python-dateutil==2.9.0.post0 21:12:15 python-discovery==1.6.0 21:12:15 python-heatclient==5.3.0 21:12:15 python-jenkins==1.8.3 21:12:15 python-keystoneclient==6.0.0 21:12:15 python-magnumclient==5.0.0 21:12:15 python-manilaclient==6.3.0 21:12:15 python-openstackclient==10.3.0 21:12:15 python-swiftclient==4.11.0 21:12:15 PyYAML==6.0.3 21:12:15 referencing==0.37.0 21:12:15 requests==2.34.2 21:12:15 requests-oauthlib==2.0.0 21:12:15 rfc3986==2.0.0 21:12:15 rich==15.0.0 21:12:15 rich-argparse==1.8.0 21:12:15 rpds-py==2026.6.3 21:12:15 rsa==4.9.1 21:12:15 ruamel.yaml==0.19.1 21:12:15 ruamel.yaml.clib==0.2.15 21:12:15 s3transfer==0.19.2 21:12:15 simplejson==4.1.2 21:12:15 six==1.17.0 21:12:15 smmap==5.0.3 21:12:15 soupsieve==2.9.2 21:12:15 stevedore==5.9.1 21:12:15 tabulate==0.10.0 21:12:15 toml==0.10.2 21:12:15 tomlkit==0.15.1 21:12:15 tqdm==4.70.0 21:12:15 typing_extensions==4.16.0 21:12:15 urllib3==1.26.20 21:12:15 virtualenv==21.7.9 21:12:15 wcwidth==0.8.3 21:12:15 websocket-client==1.9.2 21:12:15 wrapt==2.4.0 21:12:15 xdg==6.0.0 21:12:15 xmltodict==1.0.4 21:12:15 yarl==1.24.5 21:12:15 yq==4.1.2 21:12:15 [transportpce-tox-verify-chromium] $ /bin/sh /tmp/jenkins10839131966419871778.sh 21:12:15 ---> uv-install.sh 21:12:15 Installing uv/uvx (latest) using shell installer 21:12:15 2026-09-10 21:12:15 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71308/71308] -> "/tmp/uv-install-lcPa6j.sh" [1] 21:12:15 downloading uv 0.12.13 x86_64-unknown-linux-gnu 21:12:16 installing to /home/jenkins/.local/bin 21:12:16 uv 21:12:16 uvx 21:12:16 everything's installed! 21:12:16 21:12:16 To add $HOME/.local/bin to your PATH, either restart your shell or run: 21:12:16 21:12:16 source $HOME/.local/bin/env (sh, bash, zsh) 21:12:16 source $HOME/.local/bin/env.fish (fish) 21:12:16 Adding install location to PATH 21:12:16 ---> Validating uv/uvx install 21:12:16 uvx 0.12.13 (x86_64-unknown-linux-gnu) 21:12:16 [EnvInject] - Injecting environment variables from a build step. 21:12:16 [EnvInject] - Injecting as environment variables the properties content 21:12:16 PYTHON=python3 21:12:16 21:12:16 [EnvInject] - Variables injected successfully. 21:12:16 [transportpce-tox-verify-chromium] $ /bin/bash -l /tmp/jenkins11277340558765790265.sh 21:12:16 ---> tox-install.sh 21:12:16 + source /home/jenkins/lf-env.sh 21:12:16 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 21:12:16 ++ mktemp -d /tmp/venv-XXXX 21:12:16 + lf_venv=/tmp/venv-wPMa 21:12:16 + local venv_file=/tmp/.os_lf_venv 21:12:16 + local python=python3 21:12:16 + local options 21:12:16 + local set_path=true 21:12:16 + local install_args= 21:12:16 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 21:12:16 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 21:12:16 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 21:12:16 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 21:12:16 + true 21:12:16 + case $1 in 21:12:16 + venv_file=/tmp/.toxenv 21:12:16 + shift 2 21:12:16 + true 21:12:16 + case $1 in 21:12:16 + shift 21:12:16 + break 21:12:16 + case $python in 21:12:16 + local pkg_list= 21:12:16 + [[ -d /opt/pyenv ]] 21:12:16 + echo 'Setup pyenv:' 21:12:16 Setup pyenv: 21:12:16 + export PYENV_ROOT=/opt/pyenv 21:12:16 + PYENV_ROOT=/opt/pyenv 21:12:16 + export PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 21:12:16 + PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 21:12:16 + pyenv versions 21:12:16 system 21:12:16 3.8.20 21:12:16 3.9.20 21:12:16 3.10.15 21:12:16 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 21:12:16 + command -v pyenv 21:12:16 ++ pyenv init - --no-rehash 21:12:16 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 21:12:16 for i in ${!paths[@]}; do 21:12:16 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 21:12:16 fi; done; 21:12:16 echo "${paths[*]}"'\'')" 21:12:16 export PATH="/opt/pyenv/shims:${PATH}" 21:12:16 export PYENV_SHELL=bash 21:12:16 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 21:12:16 pyenv() { 21:12:16 local command 21:12:16 command="${1:-}" 21:12:16 if [ "$#" -gt 0 ]; then 21:12:16 shift 21:12:16 fi 21:12:16 21:12:16 case "$command" in 21:12:16 rehash|shell) 21:12:16 eval "$(pyenv "sh-$command" "$@")" 21:12:16 ;; 21:12:16 *) 21:12:16 command pyenv "$command" "$@" 21:12:16 ;; 21:12:16 esac 21:12:16 }' 21:12:16 +++ bash --norc -ec 'IFS=:; paths=($PATH); 21:12:16 for i in ${!paths[@]}; do 21:12:16 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 21:12:16 fi; done; 21:12:16 echo "${paths[*]}"' 21:12:16 ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 21:12:16 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 21:12:16 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 21:12:16 ++ export PYENV_SHELL=bash 21:12:16 ++ PYENV_SHELL=bash 21:12:16 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 21:12:16 +++ complete -F _pyenv pyenv 21:12:16 ++ lf-pyver python3 21:12:16 ++ local py_version_xy=python3 21:12:16 ++ local py_version_xyz= 21:12:16 ++ pyenv versions 21:12:16 ++ local command 21:12:16 ++ command=versions 21:12:16 ++ '[' 1 -gt 0 ']' 21:12:16 ++ shift 21:12:16 ++ case "$command" in 21:12:16 ++ command pyenv versions 21:12:16 ++ sed 's/^[ *]* //' 21:12:16 ++ awk '{ print $1 }' 21:12:16 ++ grep -E '^[0-9.]*[0-9]$' 21:12:16 ++ [[ ! -s /tmp/.pyenv_versions ]] 21:12:16 +++ grep '^3' /tmp/.pyenv_versions 21:12:16 +++ sort -V 21:12:16 +++ tail -n 1 21:12:16 ++ py_version_xyz=3.11.10 21:12:16 ++ [[ -z 3.11.10 ]] 21:12:16 ++ echo 3.11.10 21:12:16 ++ return 0 21:12:16 + pyenv local 3.11.10 21:12:16 + local command 21:12:16 + command=local 21:12:16 + '[' 2 -gt 0 ']' 21:12:16 + shift 21:12:16 + case "$command" in 21:12:16 + command pyenv local 3.11.10 21:12:16 + for arg in "$@" 21:12:16 + case $arg in 21:12:16 + pkg_list+='tox ' 21:12:16 + for arg in "$@" 21:12:16 + case $arg in 21:12:16 + pkg_list+='virtualenv ' 21:12:16 + for arg in "$@" 21:12:16 + case $arg in 21:12:16 + pkg_list+='urllib3~=1.26.15 ' 21:12:16 + [[ -f /tmp/.toxenv ]] 21:12:16 + [[ ! -f /tmp/.toxenv ]] 21:12:16 + [[ -n '' ]] 21:12:16 + python3 -m venv /tmp/venv-wPMa 21:12:20 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-wPMa' 21:12:20 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-wPMa 21:12:20 + echo /tmp/venv-wPMa 21:12:20 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 21:12:20 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 21:12:20 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 21:12:20 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 21:12:20 + local 'pip_opts=--upgrade --quiet' 21:12:20 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 21:12:20 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 21:12:20 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 21:12:20 + [[ -n '' ]] 21:12:20 + [[ -n '' ]] 21:12:20 + lf-venv-pip-install /tmp/venv-wPMa/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 21:12:20 + local venv_python=/tmp/venv-wPMa/bin/python3 21:12:20 + shift 21:12:20 + local upstream=https://pypi.org/simple 21:12:20 + /tmp/venv-wPMa/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 21:12:24 + return 0 21:12:24 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 21:12:24 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 21:12:24 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 21:12:24 + lf-venv-pip-install /tmp/venv-wPMa/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 21:12:24 + local venv_python=/tmp/venv-wPMa/bin/python3 21:12:24 + shift 21:12:24 + local upstream=https://pypi.org/simple 21:12:24 + /tmp/venv-wPMa/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 21:12:26 + return 0 21:12:26 + type python3 21:12:26 + true 21:12:26 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-wPMa/bin to PATH' 21:12:26 lf-activate-venv(): INFO: Adding /tmp/venv-wPMa/bin to PATH 21:12:26 + PATH=/tmp/venv-wPMa/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 21:12:26 + return 0 21:12:26 + python3 --version 21:12:26 Python 3.11.10 21:12:26 + python3 -m pip --version 21:12:26 pip 26.2.1 from /tmp/venv-wPMa/lib/python3.11/site-packages/pip (python 3.11) 21:12:26 + python3 -m pip freeze 21:12:27 cachetools==7.1.8 21:12:27 colorama==0.4.6 21:12:27 distlib==0.4.3 21:12:27 filelock==3.32.6 21:12:27 packaging==26.3 21:12:27 platformdirs==4.11.8 21:12:27 pluggy==1.6.0 21:12:27 pyproject-api==1.11.0 21:12:27 python-discovery==1.6.0 21:12:27 tomli_w==1.2.0 21:12:27 tox==4.61.4 21:12:27 typing_extensions==4.16.0 21:12:27 urllib3==1.26.20 21:12:27 virtualenv==21.7.9 21:12:27 [transportpce-tox-verify-chromium] $ /bin/sh -xe /tmp/jenkins10132192722857095454.sh 21:12:27 [EnvInject] - Injecting environment variables from a build step. 21:12:27 [EnvInject] - Injecting as environment variables the properties content 21:12:27 PARALLEL=True 21:12:27 21:12:27 [EnvInject] - Variables injected successfully. 21:12:27 [transportpce-tox-verify-chromium] $ /bin/bash -l /tmp/jenkins18253614387463448644.sh 21:12:27 ---> tox-run.sh 21:12:27 + PATH=/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 21:12:27 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-chromium/archives/tox 21:12:27 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-chromium/archives/docs 21:12:27 + mkdir -p /w/workspace/transportpce-tox-verify-chromium/archives/tox 21:12:27 + cd /w/workspace/transportpce-tox-verify-chromium/. 21:12:27 + source /home/jenkins/lf-env.sh 21:12:27 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 21:12:27 ++ mktemp -d /tmp/venv-XXXX 21:12:27 + lf_venv=/tmp/venv-YjYh 21:12:27 + local venv_file=/tmp/.os_lf_venv 21:12:27 + local python=python3 21:12:27 + local options 21:12:27 + local set_path=true 21:12:27 + local install_args= 21:12:27 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 21:12:27 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 21:12:27 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 21:12:27 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 21:12:27 + true 21:12:27 + case $1 in 21:12:27 + venv_file=/tmp/.toxenv 21:12:27 + shift 2 21:12:27 + true 21:12:27 + case $1 in 21:12:27 + shift 21:12:27 + break 21:12:27 + case $python in 21:12:27 + local pkg_list= 21:12:27 + [[ -d /opt/pyenv ]] 21:12:27 + echo 'Setup pyenv:' 21:12:27 Setup pyenv: 21:12:27 + export PYENV_ROOT=/opt/pyenv 21:12:27 + PYENV_ROOT=/opt/pyenv 21:12:27 + export PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 21:12:27 + PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 21:12:27 + pyenv versions 21:12:27 system 21:12:27 3.8.20 21:12:27 3.9.20 21:12:27 3.10.15 21:12:27 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 21:12:27 + command -v pyenv 21:12:27 ++ pyenv init - --no-rehash 21:12:27 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 21:12:27 for i in ${!paths[@]}; do 21:12:27 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 21:12:27 fi; done; 21:12:27 echo "${paths[*]}"'\'')" 21:12:27 export PATH="/opt/pyenv/shims:${PATH}" 21:12:27 export PYENV_SHELL=bash 21:12:27 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 21:12:27 pyenv() { 21:12:27 local command 21:12:27 command="${1:-}" 21:12:27 if [ "$#" -gt 0 ]; then 21:12:27 shift 21:12:27 fi 21:12:27 21:12:27 case "$command" in 21:12:27 rehash|shell) 21:12:27 eval "$(pyenv "sh-$command" "$@")" 21:12:27 ;; 21:12:27 *) 21:12:27 command pyenv "$command" "$@" 21:12:27 ;; 21:12:27 esac 21:12:27 }' 21:12:27 +++ bash --norc -ec 'IFS=:; paths=($PATH); 21:12:27 for i in ${!paths[@]}; do 21:12:27 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 21:12:27 fi; done; 21:12:27 echo "${paths[*]}"' 21:12:27 ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 21:12:27 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 21:12:27 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 21:12:27 ++ export PYENV_SHELL=bash 21:12:27 ++ PYENV_SHELL=bash 21:12:27 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 21:12:27 +++ complete -F _pyenv pyenv 21:12:27 ++ lf-pyver python3 21:12:27 ++ local py_version_xy=python3 21:12:27 ++ local py_version_xyz= 21:12:27 ++ pyenv versions 21:12:27 ++ local command 21:12:27 ++ command=versions 21:12:27 ++ '[' 1 -gt 0 ']' 21:12:27 ++ shift 21:12:27 ++ case "$command" in 21:12:27 ++ command pyenv versions 21:12:27 ++ sed 's/^[ *]* //' 21:12:27 ++ awk '{ print $1 }' 21:12:27 ++ grep -E '^[0-9.]*[0-9]$' 21:12:27 ++ [[ ! -s /tmp/.pyenv_versions ]] 21:12:27 +++ grep '^3' /tmp/.pyenv_versions 21:12:27 +++ sort -V 21:12:27 +++ tail -n 1 21:12:27 ++ py_version_xyz=3.11.10 21:12:27 ++ [[ -z 3.11.10 ]] 21:12:27 ++ echo 3.11.10 21:12:27 ++ return 0 21:12:27 + pyenv local 3.11.10 21:12:27 + local command 21:12:27 + command=local 21:12:27 + '[' 2 -gt 0 ']' 21:12:27 + shift 21:12:27 + case "$command" in 21:12:27 + command pyenv local 3.11.10 21:12:27 + for arg in "$@" 21:12:27 + case $arg in 21:12:27 + pkg_list+='tox ' 21:12:27 + for arg in "$@" 21:12:27 + case $arg in 21:12:27 + pkg_list+='virtualenv ' 21:12:27 + for arg in "$@" 21:12:27 + case $arg in 21:12:27 + pkg_list+='urllib3~=1.26.15 ' 21:12:27 + [[ -f /tmp/.toxenv ]] 21:12:27 ++ cat /tmp/.toxenv 21:12:27 + lf_venv=/tmp/venv-wPMa 21:12:27 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-wPMa from' file:/tmp/.toxenv 21:12:27 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-wPMa from file:/tmp/.toxenv 21:12:27 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 21:12:27 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 21:12:27 + local 'pip_opts=--upgrade --quiet' 21:12:27 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 21:12:27 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 21:12:27 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 21:12:27 + [[ -n '' ]] 21:12:27 + [[ -n '' ]] 21:12:27 + lf-venv-pip-install /tmp/venv-wPMa/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 21:12:27 + local venv_python=/tmp/venv-wPMa/bin/python3 21:12:27 + shift 21:12:27 + local upstream=https://pypi.org/simple 21:12:27 + /tmp/venv-wPMa/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 21:12:28 + return 0 21:12:28 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 21:12:28 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 21:12:28 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 21:12:28 + lf-venv-pip-install /tmp/venv-wPMa/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 21:12:28 + local venv_python=/tmp/venv-wPMa/bin/python3 21:12:28 + shift 21:12:28 + local upstream=https://pypi.org/simple 21:12:28 + /tmp/venv-wPMa/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 21:12:29 + return 0 21:12:29 + type python3 21:12:29 + true 21:12:29 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-wPMa/bin to PATH' 21:12:29 lf-activate-venv(): INFO: Adding /tmp/venv-wPMa/bin to PATH 21:12:29 + PATH=/tmp/venv-wPMa/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 21:12:29 + return 0 21:12:29 + [[ -d /opt/pyenv ]] 21:12:29 + echo '---> Setting up pyenv' 21:12:29 ---> Setting up pyenv 21:12:29 + export PYENV_ROOT=/opt/pyenv 21:12:29 + PYENV_ROOT=/opt/pyenv 21:12:29 + export PATH=/opt/pyenv/bin:/tmp/venv-wPMa/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 21:12:29 + PATH=/opt/pyenv/bin:/tmp/venv-wPMa/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 21:12:29 ++ pwd 21:12:29 + PYTHONPATH=/w/workspace/transportpce-tox-verify-chromium 21:12:29 + export PYTHONPATH 21:12:29 + export TOX_TESTENV_PASSENV=PYTHONPATH 21:12:29 + TOX_TESTENV_PASSENV=PYTHONPATH 21:12:29 + tox --version 21:12:29 4.61.4 from /tmp/venv-wPMa/lib/python3.11/site-packages/tox/__init__.py 21:12:29 + PARALLEL=True 21:12:29 + TOX_OPTIONS_LIST= 21:12:29 + [[ -n '' ]] 21:12:29 + case ${PARALLEL,,} in 21:12:29 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 21:12:29 + tox --parallel auto --parallel-live 21:12:29 + tee -a /w/workspace/transportpce-tox-verify-chromium/archives/tox/tox.log 21:12:31 buildcontroller: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:12:31 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 21:12:31 checkbashisms: freeze> python -m pip freeze --all 21:12:31 docs: install_deps> python -I -m pip install -r docs/requirements.txt 21:12:32 checkbashisms: pip==26.2.1,setuptools==84.0.0 21:12:32 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./fixCIcentOS8reposMirrors.sh 21:12:32 checkbashisms: commands[1] /w/workspace/transportpce-tox-verify-chromium/tests> sh -c 'command checkbashisms>/dev/null || sudo yum install -y devscripts-checkbashisms || sudo yum install -y devscripts-minimal || sudo yum install -y devscripts || sudo yum install -y https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/31/Everything/x86_64/os/Packages/d/devscripts-checkbashisms-2.19.6-2.fc31.x86_64.rpm || (echo "checkbashisms command not found - please install it (e.g. sudo apt-get install devscripts | yum install devscripts-minimal )" >&2 && exit 1)' 21:12:32 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-chromium/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 21:12:33 checkbashisms: OK ✔ in 3.06 seconds 21:12:33 pre-commit: install_deps> python -I -m pip install pre-commit 21:12:35 pre-commit: freeze> python -m pip freeze --all 21:12:36 pre-commit: cfgv==3.5.0,distlib==0.4.3,filelock==3.32.6,identify==2.6.19,nodeenv==1.10.0,pip==26.2.1,platformdirs==4.11.8,pre_commit==4.6.2,python-discovery==1.6.0,PyYAML==6.0.3,setuptools==84.0.0,virtualenv==21.7.9 21:12:36 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./fixCIcentOS8reposMirrors.sh 21:12:36 pre-commit: commands[1] /w/workspace/transportpce-tox-verify-chromium/tests> sh -c 'which cpan || sudo yum install -y perl-CPAN || (echo "cpan command not found - please install it (e.g. sudo apt-get install perl-modules | yum install perl-CPAN )" >&2 && exit 1)' 21:12:36 /usr/bin/cpan 21:12:36 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-chromium/tests> pre-commit run --all-files --show-diff-on-failure 21:12:36 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 21:12:36 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 21:12:37 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 21:12:38 buildcontroller: freeze> python -m pip freeze --all 21:12:38 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 21:12:38 buildcontroller: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 21:12:38 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./build_controller.sh 21:12:38 + update-java-alternatives -l 21:12:38 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 21:12:38 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 21:12:38 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 21:12:38 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 21:12:38 update-alternatives: error: no alternatives for jaotc 21:12:38 update-alternatives: error: no alternatives for rmic 21:12:38 [INFO] Initializing environment for https://github.com/hhatto/autopep8. 21:12:38 + java -version 21:12:38 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 21:12:39 + JAVA_VER=21 21:12:39 + echo 21 21:12:39 21 21:12:39 + javac -version 21:12:39 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 21:12:39 + JAVAC_VER=21 21:12:39 + echo 21 21:12:39 21 21:12:39 ok, java is 21 or newer 21:12:39 + [ 21 -ge 21 ] 21:12:39 + [ 21 -ge 21 ] 21:12:39 + echo ok, java is 21 or newer 21:12:39 + wget -nv https://dlcdn.apache.org/maven/maven-3/3.9.16/binaries/apache-maven-3.9.16-bin.tar.gz -P /tmp 21:12:39 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 21:12:39 2026-09-10 21:12:39 URL:https://dlcdn.apache.org/maven/maven-3/3.9.16/binaries/apache-maven-3.9.16-bin.tar.gz [9278065/9278065] -> "/tmp/apache-maven-3.9.16-bin.tar.gz" [1] 21:12:39 + sudo mkdir -p /opt 21:12:39 + sudo tar xf /tmp/apache-maven-3.9.16-bin.tar.gz -C /opt 21:12:39 + sudo ln -s /opt/apache-maven-3.9.16 /opt/maven 21:12:39 + sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn 21:12:39 + mvn --version 21:12:39 Apache Maven 3.9.16 (2bdd9fddda4b155ebf8000e807eb73fd829a51d5) 21:12:39 Maven home: /opt/maven 21:12:39 Java version: 21.0.12, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64 21:12:39 Default locale: en, platform encoding: UTF-8 21:12:39 OS name: "linux", version: "5.15.0-190-generic", arch: "amd64", family: "unix" 21:12:39 NOTE: Picked up JDK_JAVA_OPTIONS: 21:12:39 --add-opens=java.base/java.io=ALL-UNNAMED 21:12:39 --add-opens=java.base/java.lang=ALL-UNNAMED 21:12:39 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 21:12:39 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 21:12:39 --add-opens=java.base/java.net=ALL-UNNAMED 21:12:39 --add-opens=java.base/java.nio=ALL-UNNAMED 21:12:39 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 21:12:39 --add-opens=java.base/java.nio.file=ALL-UNNAMED 21:12:39 --add-opens=java.base/java.util=ALL-UNNAMED 21:12:39 --add-opens=java.base/java.util.jar=ALL-UNNAMED 21:12:39 --add-opens=java.base/java.util.stream=ALL-UNNAMED 21:12:39 --add-opens=java.base/java.util.zip=ALL-UNNAMED 21:12:39 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 21:12:39 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 21:12:39 -Xlog:disable 21:12:41 [INFO] Initializing environment for https://github.com/koalaman/shellcheck-precommit. 21:12:41 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier. 21:12:42 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@4.0.0-alpha.8. 21:12:42 [INFO] Initializing environment for https://github.com/adrienverge/yamllint. 21:12:43 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 21:12:43 [INFO] Once installed this environment will be reused. 21:12:43 [INFO] This may take a few minutes... 21:12:46 docs: freeze> python -m pip freeze --all 21:12:46 docs-linkcheck: freeze> python -m pip freeze --all 21:12:47 docs-linkcheck: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.1,deepmerge==3.0.1,docutils==0.22.4,idna==3.19,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.52.1,lfdocs_conf==0.11.0,MarkupSafe==3.0.3,minijinja==2.24.0,mistune==3.3.4,packaging==26.3,picobox==4.0.0,pip==26.2.1,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==3.0.1,roman-numerals==4.1.0,rpds-py==2026.6.3,setuptools==84.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.5.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.0.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.9.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.7.0 21:12:47 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-chromium/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-chromium/docs/_build/linkcheck 21:12:47 docs: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.1,deepmerge==3.0.1,docutils==0.22.4,idna==3.19,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.52.1,lfdocs_conf==0.11.0,MarkupSafe==3.0.3,minijinja==2.24.0,mistune==3.3.4,packaging==26.3,picobox==4.0.0,pip==26.2.1,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==3.0.1,roman-numerals==4.1.0,rpds-py==2026.6.3,setuptools==84.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.5.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.0.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.9.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.7.0 21:12:47 docs: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> sphinx-build -q -W --keep-going -b html -n -d /w/workspace/transportpce-tox-verify-chromium/.tox/docs/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-chromium/docs/_build/html 21:12:49 [ERROR] [ERROR] Some problems were encountered while processing the POMs: 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 49, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 57, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 54, column 17 21:12:49 [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.opendaylight.yangtools:binding-runtime-spi:jar -> duplicate declaration of version (?) @ line 149, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 48, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-6.1.0:jar is missing. @ line 56, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 50, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 58, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 78, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 50, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 54, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 62, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 44, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 48, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 55, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 59, column 17 21:12:49 [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar -> duplicate declaration of version (?) @ line 123, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 42, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 123, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 40, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 44, column 17 21:12:49 @ 21:12:49 [ERROR] The build could not read 11 projects -> [Help 1] 21:12:49 [ERROR] 21:12:49 [ERROR] The project org.opendaylight.transportpce:transportpce-api:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/api/pom.xml) has 2 errors 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 49, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 57, column 17 21:12:49 [ERROR] 21:12:49 [ERROR] The project org.opendaylight.transportpce:transportpce-common:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/common/pom.xml) has 1 error 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 54, column 17 21:12:49 [ERROR] 21:12:49 [ERROR] The project org.opendaylight.transportpce:test-common:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/test-common/pom.xml) has 2 errors 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 48, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-6.1.0:jar is missing. @ line 56, column 17 21:12:49 [ERROR] 21:12:49 [ERROR] The project org.opendaylight.transportpce:transportpce-renderer:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/renderer/pom.xml) has 2 errors 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 50, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 58, column 17 21:12:49 [ERROR] 21:12:49 [ERROR] The project org.opendaylight.transportpce:transportpce-networkmodel:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/networkmodel/pom.xml) has 1 error 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 78, column 17 21:12:49 [ERROR] 21:12:49 [ERROR] The project org.opendaylight.transportpce:transportpce-olm:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/olm/pom.xml) has 1 error 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 50, column 17 21:12:49 [ERROR] 21:12:49 [ERROR] The project org.opendaylight.transportpce:transportpce-pce:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/pce/pom.xml) has 2 errors 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 54, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 62, column 17 21:12:49 [ERROR] 21:12:49 [ERROR] The project org.opendaylight.transportpce:transportpce-servicehandler:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/servicehandler/pom.xml) has 2 errors 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 44, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 48, column 17 21:12:49 [ERROR] 21:12:49 [ERROR] The project org.opendaylight.transportpce:transportpce-tapi:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/tapi/pom.xml) has 2 errors 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 55, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 59, column 17 21:12:49 [ERROR] 21:12:49 [ERROR] The project org.opendaylight.transportpce:transportpce-nbinotifications:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/nbinotifications/pom.xml) has 2 errors 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 42, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 123, column 17 21:12:49 [ERROR] 21:12:49 [ERROR] The project org.opendaylight.transportpce:transportpce-dmaap-client:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/dmaap-client/pom.xml) has 2 errors 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 40, column 17 21:12:49 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 44, column 17 21:12:49 [ERROR] 21:12:49 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 21:12:49 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 21:12:49 [ERROR] 21:12:49 [ERROR] For more information about the errors and possible solutions, please read the following articles: 21:12:49 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException 21:12:49 buildcontroller: exit 1 (10.88 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./build_controller.sh pid=2738 21:12:49 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 21:12:49 [INFO] Once installed this environment will be reused. 21:12:49 [INFO] This may take a few minutes... 21:12:49 buildcontroller: FAIL ✖ in 19.33 seconds 21:12:49 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 21:12:49 docs: OK ✔ in 19.56 seconds 21:12:49 build_karaf_tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:12:51 docs-linkcheck: OK ✔ in 21.56 seconds 21:12:51 build_karaf_tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:12:52 pylint: freeze> python -m pip freeze --all 21:12:53 pylint: astroid==4.0.4,dill==0.4.1,isort==9.0.1,mccabe==0.7.0,mypy_extensions==1.1.0,pip==26.2.1,platformdirs==4.11.8,pylint==4.0.8,setuptools==84.0.0,tomlkit==0.15.1 21:12:53 pylint: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> find transportpce_tests/ -name '*.py' -exec pylint --fail-under=10 --max-line-length=120 --disable=missing-docstring,import-error --disable=fixme --disable=duplicate-code '--module-rgx=([a-z0-9_]+$)|([0-9.]{1,30}$)' '--method-rgx=(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$' '--variable-rgx=[a-zA-Z_][a-zA-Z0-9_]{1,30}$' '{}' + 21:12:54 [INFO] Installing environment for https://github.com/hhatto/autopep8. 21:12:54 [INFO] Once installed this environment will be reused. 21:12:54 [INFO] This may take a few minutes... 21:12:56 build_karaf_tests121: freeze> python -m pip freeze --all 21:12:56 build_karaf_tests121: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 21:12:56 build_karaf_tests121: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh 21:12:56 build karaf in karaf121 with ./karaf121.env 21:12:56 NOTE: Picked up JDK_JAVA_OPTIONS: 21:12:56 --add-opens=java.base/java.io=ALL-UNNAMED 21:12:56 --add-opens=java.base/java.lang=ALL-UNNAMED 21:12:56 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 21:12:56 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 21:12:56 --add-opens=java.base/java.net=ALL-UNNAMED 21:12:56 --add-opens=java.base/java.nio=ALL-UNNAMED 21:12:56 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 21:12:56 --add-opens=java.base/java.nio.file=ALL-UNNAMED 21:12:56 --add-opens=java.base/java.util=ALL-UNNAMED 21:12:56 --add-opens=java.base/java.util.jar=ALL-UNNAMED 21:12:56 --add-opens=java.base/java.util.stream=ALL-UNNAMED 21:12:56 --add-opens=java.base/java.util.zip=ALL-UNNAMED 21:12:56 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 21:12:56 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 21:12:56 -Xlog:disable 21:12:58 [INFO] Installing environment for https://github.com/perltidy/perltidy. 21:12:58 [INFO] Once installed this environment will be reused. 21:12:58 [INFO] This may take a few minutes... 21:12:58 build_karaf_tests221: freeze> python -m pip freeze --all 21:12:59 build_karaf_tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 21:12:59 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh 21:12:59 build karaf in karaf221 with ./karaf221.env 21:12:59 NOTE: Picked up JDK_JAVA_OPTIONS: 21:12:59 --add-opens=java.base/java.io=ALL-UNNAMED 21:12:59 --add-opens=java.base/java.lang=ALL-UNNAMED 21:12:59 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 21:12:59 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 21:12:59 --add-opens=java.base/java.net=ALL-UNNAMED 21:12:59 --add-opens=java.base/java.nio=ALL-UNNAMED 21:12:59 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 21:12:59 --add-opens=java.base/java.nio.file=ALL-UNNAMED 21:12:59 --add-opens=java.base/java.util=ALL-UNNAMED 21:12:59 --add-opens=java.base/java.util.jar=ALL-UNNAMED 21:12:59 --add-opens=java.base/java.util.stream=ALL-UNNAMED 21:12:59 --add-opens=java.base/java.util.zip=ALL-UNNAMED 21:12:59 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 21:12:59 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 21:12:59 -Xlog:disable 21:13:04 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:13.1.0-SNAPSHOT 21:13:04 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.0-SNAPSHOT (runtime) 21:13:04 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:13:04 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.0-SNAPSHOT (runtime) 21:13:04 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:13:04 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.0-SNAPSHOT (runtime) 21:13:04 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:13:04 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.0-SNAPSHOT (runtime) 21:13:04 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:13:04 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.0-SNAPSHOT (runtime) 21:13:04 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:13:04 [ERROR] -> [Help 1] 21:13:04 [ERROR] 21:13:04 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 21:13:04 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 21:13:04 [ERROR] 21:13:04 [ERROR] For more information about the errors and possible solutions, please read the following articles: 21:13:04 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 21:13:04 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 21:13:04 build_karaf_tests121: exit 127 (7.64 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh pid=3482 21:13:04 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:13.1.0-SNAPSHOT 21:13:04 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.0-SNAPSHOT (runtime) 21:13:04 [ERROR] org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:13:04 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.0-SNAPSHOT (runtime) 21:13:04 [ERROR] org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:13:04 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.0-SNAPSHOT (runtime) 21:13:04 [ERROR] org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:13:04 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.0-SNAPSHOT (runtime) 21:13:04 [ERROR] org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:13:04 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.0-SNAPSHOT (runtime) 21:13:04 [ERROR] org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:13:04 [ERROR] -> [Help 1] 21:13:04 [ERROR] 21:13:04 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 21:13:04 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 21:13:04 [ERROR] 21:13:04 [ERROR] For more information about the errors and possible solutions, please read the following articles: 21:13:04 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 21:13:04 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 21:13:04 build_karaf_tests121: FAIL ✖ in 14.55 seconds 21:13:04 build_karaf_tests221: exit 127 (5.37 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh pid=3560 21:13:04 build_karaf_tests221: FAIL ✖ in 12.71 seconds 21:13:04 build_karaf_tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:13:04 build_karaf_tests190: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:13:08 [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier. 21:13:08 [INFO] Once installed this environment will be reused. 21:13:08 [INFO] This may take a few minutes... 21:13:10 build_karaf_tests190: freeze> python -m pip freeze --all 21:13:10 build_karaf_tests71: freeze> python -m pip freeze --all 21:13:10 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 21:13:10 build_karaf_tests190: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh 21:13:10 build karaf in karafoc with ./karafoc.env 21:13:10 build_karaf_tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 21:13:10 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh 21:13:10 build karaf in karaf71 with ./karaf71.env 21:13:10 NOTE: Picked up JDK_JAVA_OPTIONS: 21:13:10 --add-opens=java.base/java.io=ALL-UNNAMED 21:13:10 --add-opens=java.base/java.lang=ALL-UNNAMED 21:13:10 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 21:13:10 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 21:13:10 --add-opens=java.base/java.net=ALL-UNNAMED 21:13:10 --add-opens=java.base/java.nio=ALL-UNNAMED 21:13:10 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 21:13:10 --add-opens=java.base/java.nio.file=ALL-UNNAMED 21:13:10 --add-opens=java.base/java.util=ALL-UNNAMED 21:13:10 --add-opens=java.base/java.util.jar=ALL-UNNAMED 21:13:10 --add-opens=java.base/java.util.stream=ALL-UNNAMED 21:13:10 --add-opens=java.base/java.util.zip=ALL-UNNAMED 21:13:10 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 21:13:10 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 21:13:10 -Xlog:disable 21:13:11 NOTE: Picked up JDK_JAVA_OPTIONS: 21:13:11 --add-opens=java.base/java.io=ALL-UNNAMED 21:13:11 --add-opens=java.base/java.lang=ALL-UNNAMED 21:13:11 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 21:13:11 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 21:13:11 --add-opens=java.base/java.net=ALL-UNNAMED 21:13:11 --add-opens=java.base/java.nio=ALL-UNNAMED 21:13:11 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 21:13:11 --add-opens=java.base/java.nio.file=ALL-UNNAMED 21:13:11 --add-opens=java.base/java.util=ALL-UNNAMED 21:13:11 --add-opens=java.base/java.util.jar=ALL-UNNAMED 21:13:11 --add-opens=java.base/java.util.stream=ALL-UNNAMED 21:13:11 --add-opens=java.base/java.util.zip=ALL-UNNAMED 21:13:11 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 21:13:11 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 21:13:11 -Xlog:disable 21:13:12 [INFO] Installing environment for https://github.com/adrienverge/yamllint. 21:13:12 [INFO] Once installed this environment will be reused. 21:13:12 [INFO] This may take a few minutes... 21:13:16 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:13.1.0-SNAPSHOT 21:13:16 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.0-SNAPSHOT (runtime) 21:13:16 [ERROR] org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:13:16 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.0-SNAPSHOT (runtime) 21:13:16 [ERROR] org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:13:16 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.0-SNAPSHOT (runtime) 21:13:16 [ERROR] org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:13:16 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.0-SNAPSHOT (runtime) 21:13:16 [ERROR] org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:13:16 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.0-SNAPSHOT (runtime) 21:13:16 [ERROR] org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:13:16 [ERROR] -> [Help 1] 21:13:16 [ERROR] 21:13:16 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 21:13:16 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 21:13:16 [ERROR] 21:13:16 [ERROR] For more information about the errors and possible solutions, please read the following articles: 21:13:16 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 21:13:16 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 21:13:16 build_karaf_tests190: exit 127 (5.31 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh pid=3860 21:13:16 build_karaf_tests190: FAIL ✖ in 11.67 seconds 21:13:16 buildlighty: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:13:16 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:13.1.0-SNAPSHOT 21:13:16 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.0-SNAPSHOT (runtime) 21:13:16 [ERROR] org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:13:16 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.0-SNAPSHOT (runtime) 21:13:16 [ERROR] org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:13:16 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.0-SNAPSHOT (runtime) 21:13:16 [ERROR] org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:13:16 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.0-SNAPSHOT (runtime) 21:13:16 [ERROR] org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:13:16 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.0-SNAPSHOT (runtime) 21:13:16 [ERROR] org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:13:16 [ERROR] -> [Help 1] 21:13:16 [ERROR] 21:13:16 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 21:13:16 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 21:13:16 [ERROR] 21:13:16 [ERROR] For more information about the errors and possible solutions, please read the following articles: 21:13:16 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 21:13:16 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 21:13:16 build_karaf_tests71: exit 127 (5.56 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh pid=3899 21:13:16 build_karaf_tests71: FAIL ✖ in 12.12 seconds 21:13:16 sims: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:13:17 21:13:17 ------------------------------------ 21:13:17 Your code has been rated at 10.00/10 21:13:17 21:13:18 trim trailing whitespace.................................................Passed 21:13:18 fix end of files.........................................................Passed 21:13:18 check for added large files..............................................Passed 21:13:18 check for merge conflicts................................................Passed 21:13:19 check for case conflicts.................................................Passed 21:13:19 check json...............................................................Passed 21:13:19 mixed line ending........................................................Passed 21:13:19 Tabs remover.............................................................Passed 21:13:19 autopep8.................................................................pylint: OK ✔ in 30.2 seconds 21:13:19 testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:13:22 Passed 21:13:22 perltidy.................................................................Passed 21:13:23 ShellCheck v0.11.0.......................................................buildlighty: freeze> python -m pip freeze --all 21:13:24 buildlighty: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 21:13:24 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-chromium/lighty> ./build.sh 21:13:24 sims: freeze> python -m pip freeze --all 21:13:24 NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED 21:13:24 sims: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 21:13:24 sims: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./install_lightynode.sh 21:13:24 Using lighynode version 22.1.0.6 21:13:24 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 21:13:28 Passed 21:13:28 prettier.................................................................Passed 21:13:29 yamllint.................................................................Passed 21:13:30 sims: OK ✔ in 11.08 seconds 21:13:30 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-chromium/tests> pre-commit run gitlint-ci --hook-stage manual 21:13:30 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 21:13:30 [INFO] Once installed this environment will be reused. 21:13:30 [INFO] This may take a few minutes... 21:13:35 [ERROR] Failed to execute goal on project tpce: Could not resolve dependencies for project io.lighty.controllers:tpce:jar:13.1.0-SNAPSHOT 21:13:35 [ERROR] dependency: org.opendaylight.transportpce:transportpce-api:jar:13.1.0-SNAPSHOT (compile) 21:13:35 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-api:jar:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:13:35 [ERROR] dependency: org.opendaylight.transportpce:transportpce-common:jar:13.1.0-SNAPSHOT (compile) 21:13:35 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-common:jar:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:13:35 [ERROR] dependency: org.opendaylight.transportpce:transportpce-networkmodel:jar:13.1.0-SNAPSHOT (compile) 21:13:35 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-networkmodel:jar:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:13:35 [ERROR] dependency: org.opendaylight.transportpce:transportpce-pce:jar:13.1.0-SNAPSHOT (compile) 21:13:35 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-pce:jar:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:13:35 [ERROR] dependency: org.opendaylight.transportpce:transportpce-olm:jar:13.1.0-SNAPSHOT (compile) 21:13:35 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-olm:jar:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:13:35 [ERROR] dependency: org.opendaylight.transportpce:transportpce-servicehandler:jar:13.1.0-SNAPSHOT (compile) 21:13:35 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-servicehandler:jar:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:13:35 [ERROR] dependency: org.opendaylight.transportpce:transportpce-tapi:jar:13.1.0-SNAPSHOT (compile) 21:13:35 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-tapi:jar:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:13:35 [ERROR] dependency: org.opendaylight.transportpce:transportpce-nbinotifications:jar:13.1.0-SNAPSHOT (compile) 21:13:35 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-nbinotifications:jar:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:13:35 [ERROR] -> [Help 1] 21:13:35 [ERROR] 21:13:35 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 21:13:35 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 21:13:35 [ERROR] 21:13:35 [ERROR] For more information about the errors and possible solutions, please read the following articles: 21:13:35 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 21:13:35 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 21:13:35 buildlighty: exit 9 (10.80 seconds) /w/workspace/transportpce-tox-verify-chromium/lighty> ./build.sh pid=4283 21:13:39 gitlint..................................................................Passed 21:14:07 buildlighty: FAIL ✖ in 19.01 seconds 21:14:07 pre-commit: OK ✔ in 1 minute 6.17 seconds 21:14:07 testsPCE: freeze> python -m pip freeze --all 21:14:07 testsPCE: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,click==8.5.0,contourpy==1.3.3,cryptography==3.3.2,cycler==0.12.1,dict2xml==1.7.8,Flask==2.1.3,Flask-Injector==0.14.0,fonttools==4.65.0,gnpy4tpce==2.4.7,idna==3.19,iniconfig==2.3.0,injector==0.24.0,invoke==3.0.3,itsdangerous==2.2.0,Jinja2==3.1.6,kiwisolver==1.5.1,lxml==6.1.3,MarkupSafe==3.0.3,matplotlib==3.11.1,netconf-client==3.6.0,networkx==2.8.8,numpy==1.26.4,packaging==26.3,pandas==1.5.3,paramiko==5.0.0,pbr==5.11.1,pillow==12.3.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pyparsing==3.3.2,pytest==9.1.1,python-dateutil==2.9.0.post0,pytz==2026.3.post1,requests==2.34.2,scipy==1.17.1,setuptools==50.3.2,six==1.17.0,urllib3==2.7.0,Werkzeug==2.0.3,xlrd==1.2.0 21:14:07 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh pce 21:14:07 pytest -q transportpce_tests/pce/test01_pce.py 21:16:08 EEEEEEEEEEEEEEEEEEEE [100%] 21:16:11 ==================================== ERRORS ==================================== 21:16:11 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 21:16:11 21:16:11 cls = 21:16:11 21:16:11 @classmethod 21:16:11 def setUpClass(cls): 21:16:11 # pylint: disable=bare-except 21:16:11 sample_files_parsed = False 21:16:11 time.sleep(20) 21:16:11 try: 21:16:11 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 21:16:11 "..", "..", "sample_configs", "honeynode-topo.json") 21:16:11 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 21:16:11 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 21:16:11 21:16:11 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 21:16:11 "..", "..", "sample_configs", "NW-simple-topology.json") 21:16:11 21:16:11 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 21:16:11 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 21:16:11 21:16:11 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 21:16:11 "..", "..", "sample_configs", "NW-for-test-5-4.json") 21:16:11 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 21:16:11 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 21:16:11 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 21:16:11 "..", "..", "sample_configs", "pce_portmapping_121.json") 21:16:11 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 21:16:11 cls.port_mapping_data = port_mapping.read() 21:16:11 sample_files_parsed = True 21:16:11 except PermissionError as err: 21:16:11 print("Permission Error when trying to read sample files\n", err) 21:16:11 sys.exit(2) 21:16:11 except FileNotFoundError as err: 21:16:11 print("File Not found Error when trying to read sample files\n", err) 21:16:11 sys.exit(2) 21:16:11 except: 21:16:11 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 21:16:11 sys.exit(2) 21:16:11 finally: 21:16:11 if sample_files_parsed: 21:16:11 print("sample files content loaded") 21:16:11 21:16:11 > cls.processes = test_utils.start_tpce() 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 21:16:11 transportpce_tests/pce/test01_pce.py:93: 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 21:16:11 def start_tpce(): 21:16:11 if 'NO_ODL_STARTUP' in os.environ: 21:16:11 print('No OpenDaylight instance to start!') 21:16:11 return [] 21:16:11 print('starting OpenDaylight...') 21:16:11 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 21:16:11 process = start_lighty() 21:16:11 else: 21:16:11 process = start_karaf() 21:16:11 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 21:16:11 print('OpenDaylight started !') 21:16:11 else: 21:16:11 print('OpenDaylight failed to start !') 21:16:11 shutdown_process(process) 21:16:11 for pid in process_list: 21:16:11 shutdown_process(pid) 21:16:11 > sys.exit(1) 21:16:11 E SystemExit: 1 21:16:11 21:16:11 transportpce_tests/common/test_utils.py:232: SystemExit 21:16:11 ---------------------------- Captured stdout setup ----------------------------- 21:16:11 sample files content loaded 21:16:11 starting OpenDaylight... 21:16:11 starting KARAF (karaf) TransportPCE build... 21:16:11 Pattern not found after 100 seconds! OpenDaylight failed to start ! 21:16:11 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 21:16:11 21:16:11 cls = 21:16:11 func = . at 0x7f08cbbbb2e0> 21:16:11 when = 'setup' 21:16:11 reraise = (, ) 21:16:11 21:16:11 @classmethod 21:16:11 def from_call( 21:16:11 cls, 21:16:11 func: Callable[[], TResult], 21:16:11 when: Literal["collect", "setup", "call", "teardown"], 21:16:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:16:11 ) -> CallInfo[TResult]: 21:16:11 """Call func, wrapping the result in a CallInfo. 21:16:11 21:16:11 :param func: 21:16:11 The function to call. Called without arguments. 21:16:11 :type func: Callable[[], _pytest.runner.TResult] 21:16:11 :param when: 21:16:11 The phase in which the function is called. 21:16:11 :param reraise: 21:16:11 Exception or exceptions that shall propagate if raised by the 21:16:11 function, instead of being wrapped in the CallInfo. 21:16:11 """ 21:16:11 excinfo = None 21:16:11 instant = timing.Instant() 21:16:11 try: 21:16:11 > result: TResult | None = func() 21:16:11 ^^^^^^ 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:16:11 lambda: runtest_hook(item=item, **kwds), 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:16:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:16:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:16:11 yield 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:16:11 return (yield) 21:16:11 ^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:16:11 item.session._setupstate.setup(item) 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:16:11 col.setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:16:11 super().setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:16:11 self._request._fillfixtures() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:16:11 item.funcargs[argname] = self.getfixturevalue(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:16:11 fixturedef = self._get_active_fixturedef(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:16:11 fixturedef.execute(request=subrequest) 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 21:16:11 self = 21:16:11 request = > 21:16:11 21:16:11 def execute(self, request: SubRequest) -> FixtureValue: 21:16:11 """Return the value of this fixture, executing it if not cached.""" 21:16:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:16:11 # This needs to be done before checking if we have a cached value, since 21:16:11 # if a dependent fixture has their cache invalidated, e.g. due to 21:16:11 # parametrization, they finalize themselves and fixtures depending on it 21:16:11 # (which will likely include this fixture) setting `self.cached_result = None`. 21:16:11 # See #4871 21:16:11 requested_fixtures_that_should_finalize_us = [] 21:16:11 for argname in self.argnames: 21:16:11 fixturedef = request._get_active_fixturedef(argname) 21:16:11 # Saves requested fixtures in a list so we later can add our finalizer 21:16:11 # to them, ensuring that if a requested fixture gets torn down we get torn 21:16:11 # down first. This is generally handled by SetupState, but still currently 21:16:11 # needed when this fixture is not parametrized but depends on a parametrized 21:16:11 # fixture. 21:16:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:16:11 21:16:11 # Check for (and return) cached value/exception. 21:16:11 if self.cached_result is not None: 21:16:11 request_cache_key = self.cache_key(request) 21:16:11 cache_key = self.cached_result[1] 21:16:11 try: 21:16:11 # Attempt to make a normal == check: this might fail for objects 21:16:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:16:11 cache_hit = bool(request_cache_key == cache_key) 21:16:11 except (ValueError, RuntimeError): 21:16:11 # If the comparison raises, use 'is' as fallback. 21:16:11 cache_hit = request_cache_key is cache_key 21:16:11 21:16:11 if cache_hit: 21:16:11 if self.cached_result[2] is not None: 21:16:11 exc, exc_tb = self.cached_result[2] 21:16:11 raise exc.with_traceback(exc_tb) 21:16:11 else: 21:16:11 return self.cached_result[0] 21:16:11 # We have a previous but differently parametrized fixture instance 21:16:11 # so we need to tear it down before creating a new one. 21:16:11 self.finish(request) 21:16:11 assert self.cached_result is None 21:16:11 21:16:11 # Add finalizer to requested fixtures we saved previously. 21:16:11 # We make sure to do this after checking for cached value to avoid 21:16:11 # adding our finalizer multiple times. (#12135) 21:16:11 finalizer = functools.partial(self.finish, request=request) 21:16:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:16:11 parent_fixture.addfinalizer(finalizer) 21:16:11 21:16:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:16:11 # which is executed last. 21:16:11 > assert not self._finalizers 21:16:11 ^^^^^^^^^^^^^^^^^^^^ 21:16:11 E AssertionError 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:16:11 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 21:16:11 21:16:11 cls = 21:16:11 func = . at 0x7f08cbbcb4c0> 21:16:11 when = 'setup' 21:16:11 reraise = (, ) 21:16:11 21:16:11 @classmethod 21:16:11 def from_call( 21:16:11 cls, 21:16:11 func: Callable[[], TResult], 21:16:11 when: Literal["collect", "setup", "call", "teardown"], 21:16:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:16:11 ) -> CallInfo[TResult]: 21:16:11 """Call func, wrapping the result in a CallInfo. 21:16:11 21:16:11 :param func: 21:16:11 The function to call. Called without arguments. 21:16:11 :type func: Callable[[], _pytest.runner.TResult] 21:16:11 :param when: 21:16:11 The phase in which the function is called. 21:16:11 :param reraise: 21:16:11 Exception or exceptions that shall propagate if raised by the 21:16:11 function, instead of being wrapped in the CallInfo. 21:16:11 """ 21:16:11 excinfo = None 21:16:11 instant = timing.Instant() 21:16:11 try: 21:16:11 > result: TResult | None = func() 21:16:11 ^^^^^^ 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:16:11 lambda: runtest_hook(item=item, **kwds), 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:16:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:16:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:16:11 yield 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:16:11 return (yield) 21:16:11 ^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:16:11 item.session._setupstate.setup(item) 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:16:11 col.setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:16:11 super().setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:16:11 self._request._fillfixtures() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:16:11 item.funcargs[argname] = self.getfixturevalue(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:16:11 fixturedef = self._get_active_fixturedef(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:16:11 fixturedef.execute(request=subrequest) 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 21:16:11 self = 21:16:11 request = > 21:16:11 21:16:11 def execute(self, request: SubRequest) -> FixtureValue: 21:16:11 """Return the value of this fixture, executing it if not cached.""" 21:16:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:16:11 # This needs to be done before checking if we have a cached value, since 21:16:11 # if a dependent fixture has their cache invalidated, e.g. due to 21:16:11 # parametrization, they finalize themselves and fixtures depending on it 21:16:11 # (which will likely include this fixture) setting `self.cached_result = None`. 21:16:11 # See #4871 21:16:11 requested_fixtures_that_should_finalize_us = [] 21:16:11 for argname in self.argnames: 21:16:11 fixturedef = request._get_active_fixturedef(argname) 21:16:11 # Saves requested fixtures in a list so we later can add our finalizer 21:16:11 # to them, ensuring that if a requested fixture gets torn down we get torn 21:16:11 # down first. This is generally handled by SetupState, but still currently 21:16:11 # needed when this fixture is not parametrized but depends on a parametrized 21:16:11 # fixture. 21:16:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:16:11 21:16:11 # Check for (and return) cached value/exception. 21:16:11 if self.cached_result is not None: 21:16:11 request_cache_key = self.cache_key(request) 21:16:11 cache_key = self.cached_result[1] 21:16:11 try: 21:16:11 # Attempt to make a normal == check: this might fail for objects 21:16:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:16:11 cache_hit = bool(request_cache_key == cache_key) 21:16:11 except (ValueError, RuntimeError): 21:16:11 # If the comparison raises, use 'is' as fallback. 21:16:11 cache_hit = request_cache_key is cache_key 21:16:11 21:16:11 if cache_hit: 21:16:11 if self.cached_result[2] is not None: 21:16:11 exc, exc_tb = self.cached_result[2] 21:16:11 raise exc.with_traceback(exc_tb) 21:16:11 else: 21:16:11 return self.cached_result[0] 21:16:11 # We have a previous but differently parametrized fixture instance 21:16:11 # so we need to tear it down before creating a new one. 21:16:11 self.finish(request) 21:16:11 assert self.cached_result is None 21:16:11 21:16:11 # Add finalizer to requested fixtures we saved previously. 21:16:11 # We make sure to do this after checking for cached value to avoid 21:16:11 # adding our finalizer multiple times. (#12135) 21:16:11 finalizer = functools.partial(self.finish, request=request) 21:16:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:16:11 parent_fixture.addfinalizer(finalizer) 21:16:11 21:16:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:16:11 # which is executed last. 21:16:11 > assert not self._finalizers 21:16:11 ^^^^^^^^^^^^^^^^^^^^ 21:16:11 E AssertionError 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:16:11 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 21:16:11 21:16:11 cls = 21:16:11 func = . at 0x7f08cbb8bf60> 21:16:11 when = 'setup' 21:16:11 reraise = (, ) 21:16:11 21:16:11 @classmethod 21:16:11 def from_call( 21:16:11 cls, 21:16:11 func: Callable[[], TResult], 21:16:11 when: Literal["collect", "setup", "call", "teardown"], 21:16:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:16:11 ) -> CallInfo[TResult]: 21:16:11 """Call func, wrapping the result in a CallInfo. 21:16:11 21:16:11 :param func: 21:16:11 The function to call. Called without arguments. 21:16:11 :type func: Callable[[], _pytest.runner.TResult] 21:16:11 :param when: 21:16:11 The phase in which the function is called. 21:16:11 :param reraise: 21:16:11 Exception or exceptions that shall propagate if raised by the 21:16:11 function, instead of being wrapped in the CallInfo. 21:16:11 """ 21:16:11 excinfo = None 21:16:11 instant = timing.Instant() 21:16:11 try: 21:16:11 > result: TResult | None = func() 21:16:11 ^^^^^^ 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:16:11 lambda: runtest_hook(item=item, **kwds), 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:16:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:16:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:16:11 yield 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:16:11 return (yield) 21:16:11 ^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:16:11 item.session._setupstate.setup(item) 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:16:11 col.setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:16:11 super().setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:16:11 self._request._fillfixtures() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:16:11 item.funcargs[argname] = self.getfixturevalue(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:16:11 fixturedef = self._get_active_fixturedef(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:16:11 fixturedef.execute(request=subrequest) 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 21:16:11 self = 21:16:11 request = > 21:16:11 21:16:11 def execute(self, request: SubRequest) -> FixtureValue: 21:16:11 """Return the value of this fixture, executing it if not cached.""" 21:16:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:16:11 # This needs to be done before checking if we have a cached value, since 21:16:11 # if a dependent fixture has their cache invalidated, e.g. due to 21:16:11 # parametrization, they finalize themselves and fixtures depending on it 21:16:11 # (which will likely include this fixture) setting `self.cached_result = None`. 21:16:11 # See #4871 21:16:11 requested_fixtures_that_should_finalize_us = [] 21:16:11 for argname in self.argnames: 21:16:11 fixturedef = request._get_active_fixturedef(argname) 21:16:11 # Saves requested fixtures in a list so we later can add our finalizer 21:16:11 # to them, ensuring that if a requested fixture gets torn down we get torn 21:16:11 # down first. This is generally handled by SetupState, but still currently 21:16:11 # needed when this fixture is not parametrized but depends on a parametrized 21:16:11 # fixture. 21:16:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:16:11 21:16:11 # Check for (and return) cached value/exception. 21:16:11 if self.cached_result is not None: 21:16:11 request_cache_key = self.cache_key(request) 21:16:11 cache_key = self.cached_result[1] 21:16:11 try: 21:16:11 # Attempt to make a normal == check: this might fail for objects 21:16:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:16:11 cache_hit = bool(request_cache_key == cache_key) 21:16:11 except (ValueError, RuntimeError): 21:16:11 # If the comparison raises, use 'is' as fallback. 21:16:11 cache_hit = request_cache_key is cache_key 21:16:11 21:16:11 if cache_hit: 21:16:11 if self.cached_result[2] is not None: 21:16:11 exc, exc_tb = self.cached_result[2] 21:16:11 raise exc.with_traceback(exc_tb) 21:16:11 else: 21:16:11 return self.cached_result[0] 21:16:11 # We have a previous but differently parametrized fixture instance 21:16:11 # so we need to tear it down before creating a new one. 21:16:11 self.finish(request) 21:16:11 assert self.cached_result is None 21:16:11 21:16:11 # Add finalizer to requested fixtures we saved previously. 21:16:11 # We make sure to do this after checking for cached value to avoid 21:16:11 # adding our finalizer multiple times. (#12135) 21:16:11 finalizer = functools.partial(self.finish, request=request) 21:16:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:16:11 parent_fixture.addfinalizer(finalizer) 21:16:11 21:16:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:16:11 # which is executed last. 21:16:11 > assert not self._finalizers 21:16:11 ^^^^^^^^^^^^^^^^^^^^ 21:16:11 E AssertionError 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:16:11 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 21:16:11 21:16:11 cls = 21:16:11 func = . at 0x7f08cbbbb2e0> 21:16:11 when = 'setup' 21:16:11 reraise = (, ) 21:16:11 21:16:11 @classmethod 21:16:11 def from_call( 21:16:11 cls, 21:16:11 func: Callable[[], TResult], 21:16:11 when: Literal["collect", "setup", "call", "teardown"], 21:16:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:16:11 ) -> CallInfo[TResult]: 21:16:11 """Call func, wrapping the result in a CallInfo. 21:16:11 21:16:11 :param func: 21:16:11 The function to call. Called without arguments. 21:16:11 :type func: Callable[[], _pytest.runner.TResult] 21:16:11 :param when: 21:16:11 The phase in which the function is called. 21:16:11 :param reraise: 21:16:11 Exception or exceptions that shall propagate if raised by the 21:16:11 function, instead of being wrapped in the CallInfo. 21:16:11 """ 21:16:11 excinfo = None 21:16:11 instant = timing.Instant() 21:16:11 try: 21:16:11 > result: TResult | None = func() 21:16:11 ^^^^^^ 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:16:11 lambda: runtest_hook(item=item, **kwds), 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:16:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:16:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:16:11 yield 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:16:11 return (yield) 21:16:11 ^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:16:11 item.session._setupstate.setup(item) 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:16:11 col.setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:16:11 super().setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:16:11 self._request._fillfixtures() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:16:11 item.funcargs[argname] = self.getfixturevalue(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:16:11 fixturedef = self._get_active_fixturedef(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:16:11 fixturedef.execute(request=subrequest) 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 21:16:11 self = 21:16:11 request = > 21:16:11 21:16:11 def execute(self, request: SubRequest) -> FixtureValue: 21:16:11 """Return the value of this fixture, executing it if not cached.""" 21:16:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:16:11 # This needs to be done before checking if we have a cached value, since 21:16:11 # if a dependent fixture has their cache invalidated, e.g. due to 21:16:11 # parametrization, they finalize themselves and fixtures depending on it 21:16:11 # (which will likely include this fixture) setting `self.cached_result = None`. 21:16:11 # See #4871 21:16:11 requested_fixtures_that_should_finalize_us = [] 21:16:11 for argname in self.argnames: 21:16:11 fixturedef = request._get_active_fixturedef(argname) 21:16:11 # Saves requested fixtures in a list so we later can add our finalizer 21:16:11 # to them, ensuring that if a requested fixture gets torn down we get torn 21:16:11 # down first. This is generally handled by SetupState, but still currently 21:16:11 # needed when this fixture is not parametrized but depends on a parametrized 21:16:11 # fixture. 21:16:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:16:11 21:16:11 # Check for (and return) cached value/exception. 21:16:11 if self.cached_result is not None: 21:16:11 request_cache_key = self.cache_key(request) 21:16:11 cache_key = self.cached_result[1] 21:16:11 try: 21:16:11 # Attempt to make a normal == check: this might fail for objects 21:16:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:16:11 cache_hit = bool(request_cache_key == cache_key) 21:16:11 except (ValueError, RuntimeError): 21:16:11 # If the comparison raises, use 'is' as fallback. 21:16:11 cache_hit = request_cache_key is cache_key 21:16:11 21:16:11 if cache_hit: 21:16:11 if self.cached_result[2] is not None: 21:16:11 exc, exc_tb = self.cached_result[2] 21:16:11 raise exc.with_traceback(exc_tb) 21:16:11 else: 21:16:11 return self.cached_result[0] 21:16:11 # We have a previous but differently parametrized fixture instance 21:16:11 # so we need to tear it down before creating a new one. 21:16:11 self.finish(request) 21:16:11 assert self.cached_result is None 21:16:11 21:16:11 # Add finalizer to requested fixtures we saved previously. 21:16:11 # We make sure to do this after checking for cached value to avoid 21:16:11 # adding our finalizer multiple times. (#12135) 21:16:11 finalizer = functools.partial(self.finish, request=request) 21:16:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:16:11 parent_fixture.addfinalizer(finalizer) 21:16:11 21:16:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:16:11 # which is executed last. 21:16:11 > assert not self._finalizers 21:16:11 ^^^^^^^^^^^^^^^^^^^^ 21:16:11 E AssertionError 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:16:11 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 21:16:11 21:16:11 cls = 21:16:11 func = . at 0x7f08cdfa5120> 21:16:11 when = 'setup' 21:16:11 reraise = (, ) 21:16:11 21:16:11 @classmethod 21:16:11 def from_call( 21:16:11 cls, 21:16:11 func: Callable[[], TResult], 21:16:11 when: Literal["collect", "setup", "call", "teardown"], 21:16:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:16:11 ) -> CallInfo[TResult]: 21:16:11 """Call func, wrapping the result in a CallInfo. 21:16:11 21:16:11 :param func: 21:16:11 The function to call. Called without arguments. 21:16:11 :type func: Callable[[], _pytest.runner.TResult] 21:16:11 :param when: 21:16:11 The phase in which the function is called. 21:16:11 :param reraise: 21:16:11 Exception or exceptions that shall propagate if raised by the 21:16:11 function, instead of being wrapped in the CallInfo. 21:16:11 """ 21:16:11 excinfo = None 21:16:11 instant = timing.Instant() 21:16:11 try: 21:16:11 > result: TResult | None = func() 21:16:11 ^^^^^^ 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:16:11 lambda: runtest_hook(item=item, **kwds), 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:16:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:16:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:16:11 yield 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:16:11 return (yield) 21:16:11 ^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:16:11 item.session._setupstate.setup(item) 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:16:11 col.setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:16:11 super().setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:16:11 self._request._fillfixtures() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:16:11 item.funcargs[argname] = self.getfixturevalue(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:16:11 fixturedef = self._get_active_fixturedef(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:16:11 fixturedef.execute(request=subrequest) 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 21:16:11 self = 21:16:11 request = > 21:16:11 21:16:11 def execute(self, request: SubRequest) -> FixtureValue: 21:16:11 """Return the value of this fixture, executing it if not cached.""" 21:16:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:16:11 # This needs to be done before checking if we have a cached value, since 21:16:11 # if a dependent fixture has their cache invalidated, e.g. due to 21:16:11 # parametrization, they finalize themselves and fixtures depending on it 21:16:11 # (which will likely include this fixture) setting `self.cached_result = None`. 21:16:11 # See #4871 21:16:11 requested_fixtures_that_should_finalize_us = [] 21:16:11 for argname in self.argnames: 21:16:11 fixturedef = request._get_active_fixturedef(argname) 21:16:11 # Saves requested fixtures in a list so we later can add our finalizer 21:16:11 # to them, ensuring that if a requested fixture gets torn down we get torn 21:16:11 # down first. This is generally handled by SetupState, but still currently 21:16:11 # needed when this fixture is not parametrized but depends on a parametrized 21:16:11 # fixture. 21:16:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:16:11 21:16:11 # Check for (and return) cached value/exception. 21:16:11 if self.cached_result is not None: 21:16:11 request_cache_key = self.cache_key(request) 21:16:11 cache_key = self.cached_result[1] 21:16:11 try: 21:16:11 # Attempt to make a normal == check: this might fail for objects 21:16:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:16:11 cache_hit = bool(request_cache_key == cache_key) 21:16:11 except (ValueError, RuntimeError): 21:16:11 # If the comparison raises, use 'is' as fallback. 21:16:11 cache_hit = request_cache_key is cache_key 21:16:11 21:16:11 if cache_hit: 21:16:11 if self.cached_result[2] is not None: 21:16:11 exc, exc_tb = self.cached_result[2] 21:16:11 raise exc.with_traceback(exc_tb) 21:16:11 else: 21:16:11 return self.cached_result[0] 21:16:11 # We have a previous but differently parametrized fixture instance 21:16:11 # so we need to tear it down before creating a new one. 21:16:11 self.finish(request) 21:16:11 assert self.cached_result is None 21:16:11 21:16:11 # Add finalizer to requested fixtures we saved previously. 21:16:11 # We make sure to do this after checking for cached value to avoid 21:16:11 # adding our finalizer multiple times. (#12135) 21:16:11 finalizer = functools.partial(self.finish, request=request) 21:16:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:16:11 parent_fixture.addfinalizer(finalizer) 21:16:11 21:16:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:16:11 # which is executed last. 21:16:11 > assert not self._finalizers 21:16:11 ^^^^^^^^^^^^^^^^^^^^ 21:16:11 E AssertionError 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:16:11 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 21:16:11 21:16:11 cls = 21:16:11 func = . at 0x7f08cbbbb2e0> 21:16:11 when = 'setup' 21:16:11 reraise = (, ) 21:16:11 21:16:11 @classmethod 21:16:11 def from_call( 21:16:11 cls, 21:16:11 func: Callable[[], TResult], 21:16:11 when: Literal["collect", "setup", "call", "teardown"], 21:16:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:16:11 ) -> CallInfo[TResult]: 21:16:11 """Call func, wrapping the result in a CallInfo. 21:16:11 21:16:11 :param func: 21:16:11 The function to call. Called without arguments. 21:16:11 :type func: Callable[[], _pytest.runner.TResult] 21:16:11 :param when: 21:16:11 The phase in which the function is called. 21:16:11 :param reraise: 21:16:11 Exception or exceptions that shall propagate if raised by the 21:16:11 function, instead of being wrapped in the CallInfo. 21:16:11 """ 21:16:11 excinfo = None 21:16:11 instant = timing.Instant() 21:16:11 try: 21:16:11 > result: TResult | None = func() 21:16:11 ^^^^^^ 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:16:11 lambda: runtest_hook(item=item, **kwds), 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:16:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:16:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:16:11 yield 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:16:11 return (yield) 21:16:11 ^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:16:11 item.session._setupstate.setup(item) 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:16:11 col.setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:16:11 super().setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:16:11 self._request._fillfixtures() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:16:11 item.funcargs[argname] = self.getfixturevalue(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:16:11 fixturedef = self._get_active_fixturedef(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:16:11 fixturedef.execute(request=subrequest) 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 21:16:11 self = 21:16:11 request = > 21:16:11 21:16:11 def execute(self, request: SubRequest) -> FixtureValue: 21:16:11 """Return the value of this fixture, executing it if not cached.""" 21:16:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:16:11 # This needs to be done before checking if we have a cached value, since 21:16:11 # if a dependent fixture has their cache invalidated, e.g. due to 21:16:11 # parametrization, they finalize themselves and fixtures depending on it 21:16:11 # (which will likely include this fixture) setting `self.cached_result = None`. 21:16:11 # See #4871 21:16:11 requested_fixtures_that_should_finalize_us = [] 21:16:11 for argname in self.argnames: 21:16:11 fixturedef = request._get_active_fixturedef(argname) 21:16:11 # Saves requested fixtures in a list so we later can add our finalizer 21:16:11 # to them, ensuring that if a requested fixture gets torn down we get torn 21:16:11 # down first. This is generally handled by SetupState, but still currently 21:16:11 # needed when this fixture is not parametrized but depends on a parametrized 21:16:11 # fixture. 21:16:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:16:11 21:16:11 # Check for (and return) cached value/exception. 21:16:11 if self.cached_result is not None: 21:16:11 request_cache_key = self.cache_key(request) 21:16:11 cache_key = self.cached_result[1] 21:16:11 try: 21:16:11 # Attempt to make a normal == check: this might fail for objects 21:16:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:16:11 cache_hit = bool(request_cache_key == cache_key) 21:16:11 except (ValueError, RuntimeError): 21:16:11 # If the comparison raises, use 'is' as fallback. 21:16:11 cache_hit = request_cache_key is cache_key 21:16:11 21:16:11 if cache_hit: 21:16:11 if self.cached_result[2] is not None: 21:16:11 exc, exc_tb = self.cached_result[2] 21:16:11 raise exc.with_traceback(exc_tb) 21:16:11 else: 21:16:11 return self.cached_result[0] 21:16:11 # We have a previous but differently parametrized fixture instance 21:16:11 # so we need to tear it down before creating a new one. 21:16:11 self.finish(request) 21:16:11 assert self.cached_result is None 21:16:11 21:16:11 # Add finalizer to requested fixtures we saved previously. 21:16:11 # We make sure to do this after checking for cached value to avoid 21:16:11 # adding our finalizer multiple times. (#12135) 21:16:11 finalizer = functools.partial(self.finish, request=request) 21:16:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:16:11 parent_fixture.addfinalizer(finalizer) 21:16:11 21:16:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:16:11 # which is executed last. 21:16:11 > assert not self._finalizers 21:16:11 ^^^^^^^^^^^^^^^^^^^^ 21:16:11 E AssertionError 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:16:11 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 21:16:11 21:16:11 cls = 21:16:11 func = . at 0x7f08cbbc9d00> 21:16:11 when = 'setup' 21:16:11 reraise = (, ) 21:16:11 21:16:11 @classmethod 21:16:11 def from_call( 21:16:11 cls, 21:16:11 func: Callable[[], TResult], 21:16:11 when: Literal["collect", "setup", "call", "teardown"], 21:16:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:16:11 ) -> CallInfo[TResult]: 21:16:11 """Call func, wrapping the result in a CallInfo. 21:16:11 21:16:11 :param func: 21:16:11 The function to call. Called without arguments. 21:16:11 :type func: Callable[[], _pytest.runner.TResult] 21:16:11 :param when: 21:16:11 The phase in which the function is called. 21:16:11 :param reraise: 21:16:11 Exception or exceptions that shall propagate if raised by the 21:16:11 function, instead of being wrapped in the CallInfo. 21:16:11 """ 21:16:11 excinfo = None 21:16:11 instant = timing.Instant() 21:16:11 try: 21:16:11 > result: TResult | None = func() 21:16:11 ^^^^^^ 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:16:11 lambda: runtest_hook(item=item, **kwds), 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:16:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:16:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:16:11 yield 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:16:11 return (yield) 21:16:11 ^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:16:11 item.session._setupstate.setup(item) 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:16:11 col.setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:16:11 super().setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:16:11 self._request._fillfixtures() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:16:11 item.funcargs[argname] = self.getfixturevalue(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:16:11 fixturedef = self._get_active_fixturedef(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:16:11 fixturedef.execute(request=subrequest) 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 21:16:11 self = 21:16:11 request = > 21:16:11 21:16:11 def execute(self, request: SubRequest) -> FixtureValue: 21:16:11 """Return the value of this fixture, executing it if not cached.""" 21:16:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:16:11 # This needs to be done before checking if we have a cached value, since 21:16:11 # if a dependent fixture has their cache invalidated, e.g. due to 21:16:11 # parametrization, they finalize themselves and fixtures depending on it 21:16:11 # (which will likely include this fixture) setting `self.cached_result = None`. 21:16:11 # See #4871 21:16:11 requested_fixtures_that_should_finalize_us = [] 21:16:11 for argname in self.argnames: 21:16:11 fixturedef = request._get_active_fixturedef(argname) 21:16:11 # Saves requested fixtures in a list so we later can add our finalizer 21:16:11 # to them, ensuring that if a requested fixture gets torn down we get torn 21:16:11 # down first. This is generally handled by SetupState, but still currently 21:16:11 # needed when this fixture is not parametrized but depends on a parametrized 21:16:11 # fixture. 21:16:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:16:11 21:16:11 # Check for (and return) cached value/exception. 21:16:11 if self.cached_result is not None: 21:16:11 request_cache_key = self.cache_key(request) 21:16:11 cache_key = self.cached_result[1] 21:16:11 try: 21:16:11 # Attempt to make a normal == check: this might fail for objects 21:16:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:16:11 cache_hit = bool(request_cache_key == cache_key) 21:16:11 except (ValueError, RuntimeError): 21:16:11 # If the comparison raises, use 'is' as fallback. 21:16:11 cache_hit = request_cache_key is cache_key 21:16:11 21:16:11 if cache_hit: 21:16:11 if self.cached_result[2] is not None: 21:16:11 exc, exc_tb = self.cached_result[2] 21:16:11 raise exc.with_traceback(exc_tb) 21:16:11 else: 21:16:11 return self.cached_result[0] 21:16:11 # We have a previous but differently parametrized fixture instance 21:16:11 # so we need to tear it down before creating a new one. 21:16:11 self.finish(request) 21:16:11 assert self.cached_result is None 21:16:11 21:16:11 # Add finalizer to requested fixtures we saved previously. 21:16:11 # We make sure to do this after checking for cached value to avoid 21:16:11 # adding our finalizer multiple times. (#12135) 21:16:11 finalizer = functools.partial(self.finish, request=request) 21:16:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:16:11 parent_fixture.addfinalizer(finalizer) 21:16:11 21:16:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:16:11 # which is executed last. 21:16:11 > assert not self._finalizers 21:16:11 ^^^^^^^^^^^^^^^^^^^^ 21:16:11 E AssertionError 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:16:11 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 21:16:11 21:16:11 cls = 21:16:11 func = . at 0x7f08cbbcba60> 21:16:11 when = 'setup' 21:16:11 reraise = (, ) 21:16:11 21:16:11 @classmethod 21:16:11 def from_call( 21:16:11 cls, 21:16:11 func: Callable[[], TResult], 21:16:11 when: Literal["collect", "setup", "call", "teardown"], 21:16:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:16:11 ) -> CallInfo[TResult]: 21:16:11 """Call func, wrapping the result in a CallInfo. 21:16:11 21:16:11 :param func: 21:16:11 The function to call. Called without arguments. 21:16:11 :type func: Callable[[], _pytest.runner.TResult] 21:16:11 :param when: 21:16:11 The phase in which the function is called. 21:16:11 :param reraise: 21:16:11 Exception or exceptions that shall propagate if raised by the 21:16:11 function, instead of being wrapped in the CallInfo. 21:16:11 """ 21:16:11 excinfo = None 21:16:11 instant = timing.Instant() 21:16:11 try: 21:16:11 > result: TResult | None = func() 21:16:11 ^^^^^^ 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:16:11 lambda: runtest_hook(item=item, **kwds), 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:16:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:16:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:16:11 yield 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:16:11 return (yield) 21:16:11 ^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:16:11 item.session._setupstate.setup(item) 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:16:11 col.setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:16:11 super().setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:16:11 self._request._fillfixtures() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:16:11 item.funcargs[argname] = self.getfixturevalue(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:16:11 fixturedef = self._get_active_fixturedef(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:16:11 fixturedef.execute(request=subrequest) 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 21:16:11 self = 21:16:11 request = > 21:16:11 21:16:11 def execute(self, request: SubRequest) -> FixtureValue: 21:16:11 """Return the value of this fixture, executing it if not cached.""" 21:16:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:16:11 # This needs to be done before checking if we have a cached value, since 21:16:11 # if a dependent fixture has their cache invalidated, e.g. due to 21:16:11 # parametrization, they finalize themselves and fixtures depending on it 21:16:11 # (which will likely include this fixture) setting `self.cached_result = None`. 21:16:11 # See #4871 21:16:11 requested_fixtures_that_should_finalize_us = [] 21:16:11 for argname in self.argnames: 21:16:11 fixturedef = request._get_active_fixturedef(argname) 21:16:11 # Saves requested fixtures in a list so we later can add our finalizer 21:16:11 # to them, ensuring that if a requested fixture gets torn down we get torn 21:16:11 # down first. This is generally handled by SetupState, but still currently 21:16:11 # needed when this fixture is not parametrized but depends on a parametrized 21:16:11 # fixture. 21:16:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:16:11 21:16:11 # Check for (and return) cached value/exception. 21:16:11 if self.cached_result is not None: 21:16:11 request_cache_key = self.cache_key(request) 21:16:11 cache_key = self.cached_result[1] 21:16:11 try: 21:16:11 # Attempt to make a normal == check: this might fail for objects 21:16:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:16:11 cache_hit = bool(request_cache_key == cache_key) 21:16:11 except (ValueError, RuntimeError): 21:16:11 # If the comparison raises, use 'is' as fallback. 21:16:11 cache_hit = request_cache_key is cache_key 21:16:11 21:16:11 if cache_hit: 21:16:11 if self.cached_result[2] is not None: 21:16:11 exc, exc_tb = self.cached_result[2] 21:16:11 raise exc.with_traceback(exc_tb) 21:16:11 else: 21:16:11 return self.cached_result[0] 21:16:11 # We have a previous but differently parametrized fixture instance 21:16:11 # so we need to tear it down before creating a new one. 21:16:11 self.finish(request) 21:16:11 assert self.cached_result is None 21:16:11 21:16:11 # Add finalizer to requested fixtures we saved previously. 21:16:11 # We make sure to do this after checking for cached value to avoid 21:16:11 # adding our finalizer multiple times. (#12135) 21:16:11 finalizer = functools.partial(self.finish, request=request) 21:16:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:16:11 parent_fixture.addfinalizer(finalizer) 21:16:11 21:16:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:16:11 # which is executed last. 21:16:11 > assert not self._finalizers 21:16:11 ^^^^^^^^^^^^^^^^^^^^ 21:16:11 E AssertionError 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:16:11 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 21:16:11 21:16:11 cls = 21:16:11 func = . at 0x7f08cbb8bf60> 21:16:11 when = 'setup' 21:16:11 reraise = (, ) 21:16:11 21:16:11 @classmethod 21:16:11 def from_call( 21:16:11 cls, 21:16:11 func: Callable[[], TResult], 21:16:11 when: Literal["collect", "setup", "call", "teardown"], 21:16:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:16:11 ) -> CallInfo[TResult]: 21:16:11 """Call func, wrapping the result in a CallInfo. 21:16:11 21:16:11 :param func: 21:16:11 The function to call. Called without arguments. 21:16:11 :type func: Callable[[], _pytest.runner.TResult] 21:16:11 :param when: 21:16:11 The phase in which the function is called. 21:16:11 :param reraise: 21:16:11 Exception or exceptions that shall propagate if raised by the 21:16:11 function, instead of being wrapped in the CallInfo. 21:16:11 """ 21:16:11 excinfo = None 21:16:11 instant = timing.Instant() 21:16:11 try: 21:16:11 > result: TResult | None = func() 21:16:11 ^^^^^^ 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:16:11 lambda: runtest_hook(item=item, **kwds), 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:16:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:16:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:16:11 yield 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:16:11 return (yield) 21:16:11 ^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:16:11 item.session._setupstate.setup(item) 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:16:11 col.setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:16:11 super().setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:16:11 self._request._fillfixtures() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:16:11 item.funcargs[argname] = self.getfixturevalue(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:16:11 fixturedef = self._get_active_fixturedef(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:16:11 fixturedef.execute(request=subrequest) 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 21:16:11 self = 21:16:11 request = > 21:16:11 21:16:11 def execute(self, request: SubRequest) -> FixtureValue: 21:16:11 """Return the value of this fixture, executing it if not cached.""" 21:16:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:16:11 # This needs to be done before checking if we have a cached value, since 21:16:11 # if a dependent fixture has their cache invalidated, e.g. due to 21:16:11 # parametrization, they finalize themselves and fixtures depending on it 21:16:11 # (which will likely include this fixture) setting `self.cached_result = None`. 21:16:11 # See #4871 21:16:11 requested_fixtures_that_should_finalize_us = [] 21:16:11 for argname in self.argnames: 21:16:11 fixturedef = request._get_active_fixturedef(argname) 21:16:11 # Saves requested fixtures in a list so we later can add our finalizer 21:16:11 # to them, ensuring that if a requested fixture gets torn down we get torn 21:16:11 # down first. This is generally handled by SetupState, but still currently 21:16:11 # needed when this fixture is not parametrized but depends on a parametrized 21:16:11 # fixture. 21:16:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:16:11 21:16:11 # Check for (and return) cached value/exception. 21:16:11 if self.cached_result is not None: 21:16:11 request_cache_key = self.cache_key(request) 21:16:11 cache_key = self.cached_result[1] 21:16:11 try: 21:16:11 # Attempt to make a normal == check: this might fail for objects 21:16:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:16:11 cache_hit = bool(request_cache_key == cache_key) 21:16:11 except (ValueError, RuntimeError): 21:16:11 # If the comparison raises, use 'is' as fallback. 21:16:11 cache_hit = request_cache_key is cache_key 21:16:11 21:16:11 if cache_hit: 21:16:11 if self.cached_result[2] is not None: 21:16:11 exc, exc_tb = self.cached_result[2] 21:16:11 raise exc.with_traceback(exc_tb) 21:16:11 else: 21:16:11 return self.cached_result[0] 21:16:11 # We have a previous but differently parametrized fixture instance 21:16:11 # so we need to tear it down before creating a new one. 21:16:11 self.finish(request) 21:16:11 assert self.cached_result is None 21:16:11 21:16:11 # Add finalizer to requested fixtures we saved previously. 21:16:11 # We make sure to do this after checking for cached value to avoid 21:16:11 # adding our finalizer multiple times. (#12135) 21:16:11 finalizer = functools.partial(self.finish, request=request) 21:16:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:16:11 parent_fixture.addfinalizer(finalizer) 21:16:11 21:16:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:16:11 # which is executed last. 21:16:11 > assert not self._finalizers 21:16:11 ^^^^^^^^^^^^^^^^^^^^ 21:16:11 E AssertionError 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:16:11 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 21:16:11 21:16:11 cls = 21:16:11 func = . at 0x7f08cbbcbb00> 21:16:11 when = 'setup' 21:16:11 reraise = (, ) 21:16:11 21:16:11 @classmethod 21:16:11 def from_call( 21:16:11 cls, 21:16:11 func: Callable[[], TResult], 21:16:11 when: Literal["collect", "setup", "call", "teardown"], 21:16:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:16:11 ) -> CallInfo[TResult]: 21:16:11 """Call func, wrapping the result in a CallInfo. 21:16:11 21:16:11 :param func: 21:16:11 The function to call. Called without arguments. 21:16:11 :type func: Callable[[], _pytest.runner.TResult] 21:16:11 :param when: 21:16:11 The phase in which the function is called. 21:16:11 :param reraise: 21:16:11 Exception or exceptions that shall propagate if raised by the 21:16:11 function, instead of being wrapped in the CallInfo. 21:16:11 """ 21:16:11 excinfo = None 21:16:11 instant = timing.Instant() 21:16:11 try: 21:16:11 > result: TResult | None = func() 21:16:11 ^^^^^^ 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:16:11 lambda: runtest_hook(item=item, **kwds), 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:16:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:16:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:16:11 yield 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:16:11 return (yield) 21:16:11 ^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:16:11 item.session._setupstate.setup(item) 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:16:11 col.setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:16:11 super().setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:16:11 self._request._fillfixtures() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:16:11 item.funcargs[argname] = self.getfixturevalue(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:16:11 fixturedef = self._get_active_fixturedef(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:16:11 fixturedef.execute(request=subrequest) 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 21:16:11 self = 21:16:11 request = > 21:16:11 21:16:11 def execute(self, request: SubRequest) -> FixtureValue: 21:16:11 """Return the value of this fixture, executing it if not cached.""" 21:16:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:16:11 # This needs to be done before checking if we have a cached value, since 21:16:11 # if a dependent fixture has their cache invalidated, e.g. due to 21:16:11 # parametrization, they finalize themselves and fixtures depending on it 21:16:11 # (which will likely include this fixture) setting `self.cached_result = None`. 21:16:11 # See #4871 21:16:11 requested_fixtures_that_should_finalize_us = [] 21:16:11 for argname in self.argnames: 21:16:11 fixturedef = request._get_active_fixturedef(argname) 21:16:11 # Saves requested fixtures in a list so we later can add our finalizer 21:16:11 # to them, ensuring that if a requested fixture gets torn down we get torn 21:16:11 # down first. This is generally handled by SetupState, but still currently 21:16:11 # needed when this fixture is not parametrized but depends on a parametrized 21:16:11 # fixture. 21:16:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:16:11 21:16:11 # Check for (and return) cached value/exception. 21:16:11 if self.cached_result is not None: 21:16:11 request_cache_key = self.cache_key(request) 21:16:11 cache_key = self.cached_result[1] 21:16:11 try: 21:16:11 # Attempt to make a normal == check: this might fail for objects 21:16:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:16:11 cache_hit = bool(request_cache_key == cache_key) 21:16:11 except (ValueError, RuntimeError): 21:16:11 # If the comparison raises, use 'is' as fallback. 21:16:11 cache_hit = request_cache_key is cache_key 21:16:11 21:16:11 if cache_hit: 21:16:11 if self.cached_result[2] is not None: 21:16:11 exc, exc_tb = self.cached_result[2] 21:16:11 raise exc.with_traceback(exc_tb) 21:16:11 else: 21:16:11 return self.cached_result[0] 21:16:11 # We have a previous but differently parametrized fixture instance 21:16:11 # so we need to tear it down before creating a new one. 21:16:11 self.finish(request) 21:16:11 assert self.cached_result is None 21:16:11 21:16:11 # Add finalizer to requested fixtures we saved previously. 21:16:11 # We make sure to do this after checking for cached value to avoid 21:16:11 # adding our finalizer multiple times. (#12135) 21:16:11 finalizer = functools.partial(self.finish, request=request) 21:16:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:16:11 parent_fixture.addfinalizer(finalizer) 21:16:11 21:16:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:16:11 # which is executed last. 21:16:11 > assert not self._finalizers 21:16:11 ^^^^^^^^^^^^^^^^^^^^ 21:16:11 E AssertionError 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:16:11 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 21:16:11 21:16:11 cls = 21:16:11 func = . at 0x7f08cbbcb380> 21:16:11 when = 'setup' 21:16:11 reraise = (, ) 21:16:11 21:16:11 @classmethod 21:16:11 def from_call( 21:16:11 cls, 21:16:11 func: Callable[[], TResult], 21:16:11 when: Literal["collect", "setup", "call", "teardown"], 21:16:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:16:11 ) -> CallInfo[TResult]: 21:16:11 """Call func, wrapping the result in a CallInfo. 21:16:11 21:16:11 :param func: 21:16:11 The function to call. Called without arguments. 21:16:11 :type func: Callable[[], _pytest.runner.TResult] 21:16:11 :param when: 21:16:11 The phase in which the function is called. 21:16:11 :param reraise: 21:16:11 Exception or exceptions that shall propagate if raised by the 21:16:11 function, instead of being wrapped in the CallInfo. 21:16:11 """ 21:16:11 excinfo = None 21:16:11 instant = timing.Instant() 21:16:11 try: 21:16:11 > result: TResult | None = func() 21:16:11 ^^^^^^ 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:16:11 lambda: runtest_hook(item=item, **kwds), 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:16:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:16:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:16:11 yield 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:16:11 return (yield) 21:16:11 ^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:16:11 item.session._setupstate.setup(item) 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:16:11 col.setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:16:11 super().setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:16:11 self._request._fillfixtures() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:16:11 item.funcargs[argname] = self.getfixturevalue(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:16:11 fixturedef = self._get_active_fixturedef(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:16:11 fixturedef.execute(request=subrequest) 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 21:16:11 self = 21:16:11 request = > 21:16:11 21:16:11 def execute(self, request: SubRequest) -> FixtureValue: 21:16:11 """Return the value of this fixture, executing it if not cached.""" 21:16:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:16:11 # This needs to be done before checking if we have a cached value, since 21:16:11 # if a dependent fixture has their cache invalidated, e.g. due to 21:16:11 # parametrization, they finalize themselves and fixtures depending on it 21:16:11 # (which will likely include this fixture) setting `self.cached_result = None`. 21:16:11 # See #4871 21:16:11 requested_fixtures_that_should_finalize_us = [] 21:16:11 for argname in self.argnames: 21:16:11 fixturedef = request._get_active_fixturedef(argname) 21:16:11 # Saves requested fixtures in a list so we later can add our finalizer 21:16:11 # to them, ensuring that if a requested fixture gets torn down we get torn 21:16:11 # down first. This is generally handled by SetupState, but still currently 21:16:11 # needed when this fixture is not parametrized but depends on a parametrized 21:16:11 # fixture. 21:16:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:16:11 21:16:11 # Check for (and return) cached value/exception. 21:16:11 if self.cached_result is not None: 21:16:11 request_cache_key = self.cache_key(request) 21:16:11 cache_key = self.cached_result[1] 21:16:11 try: 21:16:11 # Attempt to make a normal == check: this might fail for objects 21:16:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:16:11 cache_hit = bool(request_cache_key == cache_key) 21:16:11 except (ValueError, RuntimeError): 21:16:11 # If the comparison raises, use 'is' as fallback. 21:16:11 cache_hit = request_cache_key is cache_key 21:16:11 21:16:11 if cache_hit: 21:16:11 if self.cached_result[2] is not None: 21:16:11 exc, exc_tb = self.cached_result[2] 21:16:11 raise exc.with_traceback(exc_tb) 21:16:11 else: 21:16:11 return self.cached_result[0] 21:16:11 # We have a previous but differently parametrized fixture instance 21:16:11 # so we need to tear it down before creating a new one. 21:16:11 self.finish(request) 21:16:11 assert self.cached_result is None 21:16:11 21:16:11 # Add finalizer to requested fixtures we saved previously. 21:16:11 # We make sure to do this after checking for cached value to avoid 21:16:11 # adding our finalizer multiple times. (#12135) 21:16:11 finalizer = functools.partial(self.finish, request=request) 21:16:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:16:11 parent_fixture.addfinalizer(finalizer) 21:16:11 21:16:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:16:11 # which is executed last. 21:16:11 > assert not self._finalizers 21:16:11 ^^^^^^^^^^^^^^^^^^^^ 21:16:11 E AssertionError 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:16:11 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 21:16:11 21:16:11 cls = 21:16:11 func = . at 0x7f08cbb8bf60> 21:16:11 when = 'setup' 21:16:11 reraise = (, ) 21:16:11 21:16:11 @classmethod 21:16:11 def from_call( 21:16:11 cls, 21:16:11 func: Callable[[], TResult], 21:16:11 when: Literal["collect", "setup", "call", "teardown"], 21:16:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:16:11 ) -> CallInfo[TResult]: 21:16:11 """Call func, wrapping the result in a CallInfo. 21:16:11 21:16:11 :param func: 21:16:11 The function to call. Called without arguments. 21:16:11 :type func: Callable[[], _pytest.runner.TResult] 21:16:11 :param when: 21:16:11 The phase in which the function is called. 21:16:11 :param reraise: 21:16:11 Exception or exceptions that shall propagate if raised by the 21:16:11 function, instead of being wrapped in the CallInfo. 21:16:11 """ 21:16:11 excinfo = None 21:16:11 instant = timing.Instant() 21:16:11 try: 21:16:11 > result: TResult | None = func() 21:16:11 ^^^^^^ 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:16:11 lambda: runtest_hook(item=item, **kwds), 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:16:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:16:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:16:11 yield 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:16:11 return (yield) 21:16:11 ^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:16:11 item.session._setupstate.setup(item) 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:16:11 col.setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:16:11 super().setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:16:11 self._request._fillfixtures() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:16:11 item.funcargs[argname] = self.getfixturevalue(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:16:11 fixturedef = self._get_active_fixturedef(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:16:11 fixturedef.execute(request=subrequest) 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 21:16:11 self = 21:16:11 request = > 21:16:11 21:16:11 def execute(self, request: SubRequest) -> FixtureValue: 21:16:11 """Return the value of this fixture, executing it if not cached.""" 21:16:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:16:11 # This needs to be done before checking if we have a cached value, since 21:16:11 # if a dependent fixture has their cache invalidated, e.g. due to 21:16:11 # parametrization, they finalize themselves and fixtures depending on it 21:16:11 # (which will likely include this fixture) setting `self.cached_result = None`. 21:16:11 # See #4871 21:16:11 requested_fixtures_that_should_finalize_us = [] 21:16:11 for argname in self.argnames: 21:16:11 fixturedef = request._get_active_fixturedef(argname) 21:16:11 # Saves requested fixtures in a list so we later can add our finalizer 21:16:11 # to them, ensuring that if a requested fixture gets torn down we get torn 21:16:11 # down first. This is generally handled by SetupState, but still currently 21:16:11 # needed when this fixture is not parametrized but depends on a parametrized 21:16:11 # fixture. 21:16:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:16:11 21:16:11 # Check for (and return) cached value/exception. 21:16:11 if self.cached_result is not None: 21:16:11 request_cache_key = self.cache_key(request) 21:16:11 cache_key = self.cached_result[1] 21:16:11 try: 21:16:11 # Attempt to make a normal == check: this might fail for objects 21:16:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:16:11 cache_hit = bool(request_cache_key == cache_key) 21:16:11 except (ValueError, RuntimeError): 21:16:11 # If the comparison raises, use 'is' as fallback. 21:16:11 cache_hit = request_cache_key is cache_key 21:16:11 21:16:11 if cache_hit: 21:16:11 if self.cached_result[2] is not None: 21:16:11 exc, exc_tb = self.cached_result[2] 21:16:11 raise exc.with_traceback(exc_tb) 21:16:11 else: 21:16:11 return self.cached_result[0] 21:16:11 # We have a previous but differently parametrized fixture instance 21:16:11 # so we need to tear it down before creating a new one. 21:16:11 self.finish(request) 21:16:11 assert self.cached_result is None 21:16:11 21:16:11 # Add finalizer to requested fixtures we saved previously. 21:16:11 # We make sure to do this after checking for cached value to avoid 21:16:11 # adding our finalizer multiple times. (#12135) 21:16:11 finalizer = functools.partial(self.finish, request=request) 21:16:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:16:11 parent_fixture.addfinalizer(finalizer) 21:16:11 21:16:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:16:11 # which is executed last. 21:16:11 > assert not self._finalizers 21:16:11 ^^^^^^^^^^^^^^^^^^^^ 21:16:11 E AssertionError 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:16:11 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 21:16:11 21:16:11 cls = 21:16:11 func = . at 0x7f08cbbcafc0> 21:16:11 when = 'setup' 21:16:11 reraise = (, ) 21:16:11 21:16:11 @classmethod 21:16:11 def from_call( 21:16:11 cls, 21:16:11 func: Callable[[], TResult], 21:16:11 when: Literal["collect", "setup", "call", "teardown"], 21:16:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:16:11 ) -> CallInfo[TResult]: 21:16:11 """Call func, wrapping the result in a CallInfo. 21:16:11 21:16:11 :param func: 21:16:11 The function to call. Called without arguments. 21:16:11 :type func: Callable[[], _pytest.runner.TResult] 21:16:11 :param when: 21:16:11 The phase in which the function is called. 21:16:11 :param reraise: 21:16:11 Exception or exceptions that shall propagate if raised by the 21:16:11 function, instead of being wrapped in the CallInfo. 21:16:11 """ 21:16:11 excinfo = None 21:16:11 instant = timing.Instant() 21:16:11 try: 21:16:11 > result: TResult | None = func() 21:16:11 ^^^^^^ 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:16:11 lambda: runtest_hook(item=item, **kwds), 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:16:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:16:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:16:11 yield 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:16:11 return (yield) 21:16:11 ^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:16:11 item.session._setupstate.setup(item) 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:16:11 col.setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:16:11 super().setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:16:11 self._request._fillfixtures() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:16:11 item.funcargs[argname] = self.getfixturevalue(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:16:11 fixturedef = self._get_active_fixturedef(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:16:11 fixturedef.execute(request=subrequest) 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 21:16:11 self = 21:16:11 request = > 21:16:11 21:16:11 def execute(self, request: SubRequest) -> FixtureValue: 21:16:11 """Return the value of this fixture, executing it if not cached.""" 21:16:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:16:11 # This needs to be done before checking if we have a cached value, since 21:16:11 # if a dependent fixture has their cache invalidated, e.g. due to 21:16:11 # parametrization, they finalize themselves and fixtures depending on it 21:16:11 # (which will likely include this fixture) setting `self.cached_result = None`. 21:16:11 # See #4871 21:16:11 requested_fixtures_that_should_finalize_us = [] 21:16:11 for argname in self.argnames: 21:16:11 fixturedef = request._get_active_fixturedef(argname) 21:16:11 # Saves requested fixtures in a list so we later can add our finalizer 21:16:11 # to them, ensuring that if a requested fixture gets torn down we get torn 21:16:11 # down first. This is generally handled by SetupState, but still currently 21:16:11 # needed when this fixture is not parametrized but depends on a parametrized 21:16:11 # fixture. 21:16:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:16:11 21:16:11 # Check for (and return) cached value/exception. 21:16:11 if self.cached_result is not None: 21:16:11 request_cache_key = self.cache_key(request) 21:16:11 cache_key = self.cached_result[1] 21:16:11 try: 21:16:11 # Attempt to make a normal == check: this might fail for objects 21:16:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:16:11 cache_hit = bool(request_cache_key == cache_key) 21:16:11 except (ValueError, RuntimeError): 21:16:11 # If the comparison raises, use 'is' as fallback. 21:16:11 cache_hit = request_cache_key is cache_key 21:16:11 21:16:11 if cache_hit: 21:16:11 if self.cached_result[2] is not None: 21:16:11 exc, exc_tb = self.cached_result[2] 21:16:11 raise exc.with_traceback(exc_tb) 21:16:11 else: 21:16:11 return self.cached_result[0] 21:16:11 # We have a previous but differently parametrized fixture instance 21:16:11 # so we need to tear it down before creating a new one. 21:16:11 self.finish(request) 21:16:11 assert self.cached_result is None 21:16:11 21:16:11 # Add finalizer to requested fixtures we saved previously. 21:16:11 # We make sure to do this after checking for cached value to avoid 21:16:11 # adding our finalizer multiple times. (#12135) 21:16:11 finalizer = functools.partial(self.finish, request=request) 21:16:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:16:11 parent_fixture.addfinalizer(finalizer) 21:16:11 21:16:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:16:11 # which is executed last. 21:16:11 > assert not self._finalizers 21:16:11 ^^^^^^^^^^^^^^^^^^^^ 21:16:11 E AssertionError 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:16:11 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 21:16:11 21:16:11 cls = 21:16:11 func = . at 0x7f08cbbc9da0> 21:16:11 when = 'setup' 21:16:11 reraise = (, ) 21:16:11 21:16:11 @classmethod 21:16:11 def from_call( 21:16:11 cls, 21:16:11 func: Callable[[], TResult], 21:16:11 when: Literal["collect", "setup", "call", "teardown"], 21:16:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:16:11 ) -> CallInfo[TResult]: 21:16:11 """Call func, wrapping the result in a CallInfo. 21:16:11 21:16:11 :param func: 21:16:11 The function to call. Called without arguments. 21:16:11 :type func: Callable[[], _pytest.runner.TResult] 21:16:11 :param when: 21:16:11 The phase in which the function is called. 21:16:11 :param reraise: 21:16:11 Exception or exceptions that shall propagate if raised by the 21:16:11 function, instead of being wrapped in the CallInfo. 21:16:11 """ 21:16:11 excinfo = None 21:16:11 instant = timing.Instant() 21:16:11 try: 21:16:11 > result: TResult | None = func() 21:16:11 ^^^^^^ 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:16:11 lambda: runtest_hook(item=item, **kwds), 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:16:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:16:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:16:11 yield 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:16:11 return (yield) 21:16:11 ^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:16:11 item.session._setupstate.setup(item) 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:16:11 col.setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:16:11 super().setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:16:11 self._request._fillfixtures() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:16:11 item.funcargs[argname] = self.getfixturevalue(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:16:11 fixturedef = self._get_active_fixturedef(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:16:11 fixturedef.execute(request=subrequest) 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 21:16:11 self = 21:16:11 request = > 21:16:11 21:16:11 def execute(self, request: SubRequest) -> FixtureValue: 21:16:11 """Return the value of this fixture, executing it if not cached.""" 21:16:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:16:11 # This needs to be done before checking if we have a cached value, since 21:16:11 # if a dependent fixture has their cache invalidated, e.g. due to 21:16:11 # parametrization, they finalize themselves and fixtures depending on it 21:16:11 # (which will likely include this fixture) setting `self.cached_result = None`. 21:16:11 # See #4871 21:16:11 requested_fixtures_that_should_finalize_us = [] 21:16:11 for argname in self.argnames: 21:16:11 fixturedef = request._get_active_fixturedef(argname) 21:16:11 # Saves requested fixtures in a list so we later can add our finalizer 21:16:11 # to them, ensuring that if a requested fixture gets torn down we get torn 21:16:11 # down first. This is generally handled by SetupState, but still currently 21:16:11 # needed when this fixture is not parametrized but depends on a parametrized 21:16:11 # fixture. 21:16:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:16:11 21:16:11 # Check for (and return) cached value/exception. 21:16:11 if self.cached_result is not None: 21:16:11 request_cache_key = self.cache_key(request) 21:16:11 cache_key = self.cached_result[1] 21:16:11 try: 21:16:11 # Attempt to make a normal == check: this might fail for objects 21:16:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:16:11 cache_hit = bool(request_cache_key == cache_key) 21:16:11 except (ValueError, RuntimeError): 21:16:11 # If the comparison raises, use 'is' as fallback. 21:16:11 cache_hit = request_cache_key is cache_key 21:16:11 21:16:11 if cache_hit: 21:16:11 if self.cached_result[2] is not None: 21:16:11 exc, exc_tb = self.cached_result[2] 21:16:11 raise exc.with_traceback(exc_tb) 21:16:11 else: 21:16:11 return self.cached_result[0] 21:16:11 # We have a previous but differently parametrized fixture instance 21:16:11 # so we need to tear it down before creating a new one. 21:16:11 self.finish(request) 21:16:11 assert self.cached_result is None 21:16:11 21:16:11 # Add finalizer to requested fixtures we saved previously. 21:16:11 # We make sure to do this after checking for cached value to avoid 21:16:11 # adding our finalizer multiple times. (#12135) 21:16:11 finalizer = functools.partial(self.finish, request=request) 21:16:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:16:11 parent_fixture.addfinalizer(finalizer) 21:16:11 21:16:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:16:11 # which is executed last. 21:16:11 > assert not self._finalizers 21:16:11 ^^^^^^^^^^^^^^^^^^^^ 21:16:11 E AssertionError 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:16:11 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 21:16:11 21:16:11 cls = 21:16:11 func = . at 0x7f08cbbcbd80> 21:16:11 when = 'setup' 21:16:11 reraise = (, ) 21:16:11 21:16:11 @classmethod 21:16:11 def from_call( 21:16:11 cls, 21:16:11 func: Callable[[], TResult], 21:16:11 when: Literal["collect", "setup", "call", "teardown"], 21:16:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:16:11 ) -> CallInfo[TResult]: 21:16:11 """Call func, wrapping the result in a CallInfo. 21:16:11 21:16:11 :param func: 21:16:11 The function to call. Called without arguments. 21:16:11 :type func: Callable[[], _pytest.runner.TResult] 21:16:11 :param when: 21:16:11 The phase in which the function is called. 21:16:11 :param reraise: 21:16:11 Exception or exceptions that shall propagate if raised by the 21:16:11 function, instead of being wrapped in the CallInfo. 21:16:11 """ 21:16:11 excinfo = None 21:16:11 instant = timing.Instant() 21:16:11 try: 21:16:11 > result: TResult | None = func() 21:16:11 ^^^^^^ 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:16:11 lambda: runtest_hook(item=item, **kwds), 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:16:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:16:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:16:11 yield 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:16:11 return (yield) 21:16:11 ^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:16:11 item.session._setupstate.setup(item) 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:16:11 col.setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:16:11 super().setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:16:11 self._request._fillfixtures() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:16:11 item.funcargs[argname] = self.getfixturevalue(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:16:11 fixturedef = self._get_active_fixturedef(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:16:11 fixturedef.execute(request=subrequest) 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 21:16:11 self = 21:16:11 request = > 21:16:11 21:16:11 def execute(self, request: SubRequest) -> FixtureValue: 21:16:11 """Return the value of this fixture, executing it if not cached.""" 21:16:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:16:11 # This needs to be done before checking if we have a cached value, since 21:16:11 # if a dependent fixture has their cache invalidated, e.g. due to 21:16:11 # parametrization, they finalize themselves and fixtures depending on it 21:16:11 # (which will likely include this fixture) setting `self.cached_result = None`. 21:16:11 # See #4871 21:16:11 requested_fixtures_that_should_finalize_us = [] 21:16:11 for argname in self.argnames: 21:16:11 fixturedef = request._get_active_fixturedef(argname) 21:16:11 # Saves requested fixtures in a list so we later can add our finalizer 21:16:11 # to them, ensuring that if a requested fixture gets torn down we get torn 21:16:11 # down first. This is generally handled by SetupState, but still currently 21:16:11 # needed when this fixture is not parametrized but depends on a parametrized 21:16:11 # fixture. 21:16:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:16:11 21:16:11 # Check for (and return) cached value/exception. 21:16:11 if self.cached_result is not None: 21:16:11 request_cache_key = self.cache_key(request) 21:16:11 cache_key = self.cached_result[1] 21:16:11 try: 21:16:11 # Attempt to make a normal == check: this might fail for objects 21:16:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:16:11 cache_hit = bool(request_cache_key == cache_key) 21:16:11 except (ValueError, RuntimeError): 21:16:11 # If the comparison raises, use 'is' as fallback. 21:16:11 cache_hit = request_cache_key is cache_key 21:16:11 21:16:11 if cache_hit: 21:16:11 if self.cached_result[2] is not None: 21:16:11 exc, exc_tb = self.cached_result[2] 21:16:11 raise exc.with_traceback(exc_tb) 21:16:11 else: 21:16:11 return self.cached_result[0] 21:16:11 # We have a previous but differently parametrized fixture instance 21:16:11 # so we need to tear it down before creating a new one. 21:16:11 self.finish(request) 21:16:11 assert self.cached_result is None 21:16:11 21:16:11 # Add finalizer to requested fixtures we saved previously. 21:16:11 # We make sure to do this after checking for cached value to avoid 21:16:11 # adding our finalizer multiple times. (#12135) 21:16:11 finalizer = functools.partial(self.finish, request=request) 21:16:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:16:11 parent_fixture.addfinalizer(finalizer) 21:16:11 21:16:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:16:11 # which is executed last. 21:16:11 > assert not self._finalizers 21:16:11 ^^^^^^^^^^^^^^^^^^^^ 21:16:11 E AssertionError 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:16:11 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 21:16:11 21:16:11 cls = 21:16:11 func = . at 0x7f08cbbcbb00> 21:16:11 when = 'setup' 21:16:11 reraise = (, ) 21:16:11 21:16:11 @classmethod 21:16:11 def from_call( 21:16:11 cls, 21:16:11 func: Callable[[], TResult], 21:16:11 when: Literal["collect", "setup", "call", "teardown"], 21:16:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:16:11 ) -> CallInfo[TResult]: 21:16:11 """Call func, wrapping the result in a CallInfo. 21:16:11 21:16:11 :param func: 21:16:11 The function to call. Called without arguments. 21:16:11 :type func: Callable[[], _pytest.runner.TResult] 21:16:11 :param when: 21:16:11 The phase in which the function is called. 21:16:11 :param reraise: 21:16:11 Exception or exceptions that shall propagate if raised by the 21:16:11 function, instead of being wrapped in the CallInfo. 21:16:11 """ 21:16:11 excinfo = None 21:16:11 instant = timing.Instant() 21:16:11 try: 21:16:11 > result: TResult | None = func() 21:16:11 ^^^^^^ 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:16:11 lambda: runtest_hook(item=item, **kwds), 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:16:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:16:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:16:11 yield 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:16:11 return (yield) 21:16:11 ^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:16:11 item.session._setupstate.setup(item) 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:16:11 col.setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:16:11 super().setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:16:11 self._request._fillfixtures() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:16:11 item.funcargs[argname] = self.getfixturevalue(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:16:11 fixturedef = self._get_active_fixturedef(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:16:11 fixturedef.execute(request=subrequest) 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 21:16:11 self = 21:16:11 request = > 21:16:11 21:16:11 def execute(self, request: SubRequest) -> FixtureValue: 21:16:11 """Return the value of this fixture, executing it if not cached.""" 21:16:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:16:11 # This needs to be done before checking if we have a cached value, since 21:16:11 # if a dependent fixture has their cache invalidated, e.g. due to 21:16:11 # parametrization, they finalize themselves and fixtures depending on it 21:16:11 # (which will likely include this fixture) setting `self.cached_result = None`. 21:16:11 # See #4871 21:16:11 requested_fixtures_that_should_finalize_us = [] 21:16:11 for argname in self.argnames: 21:16:11 fixturedef = request._get_active_fixturedef(argname) 21:16:11 # Saves requested fixtures in a list so we later can add our finalizer 21:16:11 # to them, ensuring that if a requested fixture gets torn down we get torn 21:16:11 # down first. This is generally handled by SetupState, but still currently 21:16:11 # needed when this fixture is not parametrized but depends on a parametrized 21:16:11 # fixture. 21:16:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:16:11 21:16:11 # Check for (and return) cached value/exception. 21:16:11 if self.cached_result is not None: 21:16:11 request_cache_key = self.cache_key(request) 21:16:11 cache_key = self.cached_result[1] 21:16:11 try: 21:16:11 # Attempt to make a normal == check: this might fail for objects 21:16:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:16:11 cache_hit = bool(request_cache_key == cache_key) 21:16:11 except (ValueError, RuntimeError): 21:16:11 # If the comparison raises, use 'is' as fallback. 21:16:11 cache_hit = request_cache_key is cache_key 21:16:11 21:16:11 if cache_hit: 21:16:11 if self.cached_result[2] is not None: 21:16:11 exc, exc_tb = self.cached_result[2] 21:16:11 raise exc.with_traceback(exc_tb) 21:16:11 else: 21:16:11 return self.cached_result[0] 21:16:11 # We have a previous but differently parametrized fixture instance 21:16:11 # so we need to tear it down before creating a new one. 21:16:11 self.finish(request) 21:16:11 assert self.cached_result is None 21:16:11 21:16:11 # Add finalizer to requested fixtures we saved previously. 21:16:11 # We make sure to do this after checking for cached value to avoid 21:16:11 # adding our finalizer multiple times. (#12135) 21:16:11 finalizer = functools.partial(self.finish, request=request) 21:16:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:16:11 parent_fixture.addfinalizer(finalizer) 21:16:11 21:16:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:16:11 # which is executed last. 21:16:11 > assert not self._finalizers 21:16:11 ^^^^^^^^^^^^^^^^^^^^ 21:16:11 E AssertionError 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:16:11 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 21:16:11 21:16:11 cls = 21:16:11 func = . at 0x7f08cbb8be20> 21:16:11 when = 'setup' 21:16:11 reraise = (, ) 21:16:11 21:16:11 @classmethod 21:16:11 def from_call( 21:16:11 cls, 21:16:11 func: Callable[[], TResult], 21:16:11 when: Literal["collect", "setup", "call", "teardown"], 21:16:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:16:11 ) -> CallInfo[TResult]: 21:16:11 """Call func, wrapping the result in a CallInfo. 21:16:11 21:16:11 :param func: 21:16:11 The function to call. Called without arguments. 21:16:11 :type func: Callable[[], _pytest.runner.TResult] 21:16:11 :param when: 21:16:11 The phase in which the function is called. 21:16:11 :param reraise: 21:16:11 Exception or exceptions that shall propagate if raised by the 21:16:11 function, instead of being wrapped in the CallInfo. 21:16:11 """ 21:16:11 excinfo = None 21:16:11 instant = timing.Instant() 21:16:11 try: 21:16:11 > result: TResult | None = func() 21:16:11 ^^^^^^ 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:16:11 lambda: runtest_hook(item=item, **kwds), 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:16:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:16:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:16:11 yield 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:16:11 return (yield) 21:16:11 ^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:16:11 item.session._setupstate.setup(item) 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:16:11 col.setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:16:11 super().setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:16:11 self._request._fillfixtures() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:16:11 item.funcargs[argname] = self.getfixturevalue(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:16:11 fixturedef = self._get_active_fixturedef(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:16:11 fixturedef.execute(request=subrequest) 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 21:16:11 self = 21:16:11 request = > 21:16:11 21:16:11 def execute(self, request: SubRequest) -> FixtureValue: 21:16:11 """Return the value of this fixture, executing it if not cached.""" 21:16:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:16:11 # This needs to be done before checking if we have a cached value, since 21:16:11 # if a dependent fixture has their cache invalidated, e.g. due to 21:16:11 # parametrization, they finalize themselves and fixtures depending on it 21:16:11 # (which will likely include this fixture) setting `self.cached_result = None`. 21:16:11 # See #4871 21:16:11 requested_fixtures_that_should_finalize_us = [] 21:16:11 for argname in self.argnames: 21:16:11 fixturedef = request._get_active_fixturedef(argname) 21:16:11 # Saves requested fixtures in a list so we later can add our finalizer 21:16:11 # to them, ensuring that if a requested fixture gets torn down we get torn 21:16:11 # down first. This is generally handled by SetupState, but still currently 21:16:11 # needed when this fixture is not parametrized but depends on a parametrized 21:16:11 # fixture. 21:16:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:16:11 21:16:11 # Check for (and return) cached value/exception. 21:16:11 if self.cached_result is not None: 21:16:11 request_cache_key = self.cache_key(request) 21:16:11 cache_key = self.cached_result[1] 21:16:11 try: 21:16:11 # Attempt to make a normal == check: this might fail for objects 21:16:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:16:11 cache_hit = bool(request_cache_key == cache_key) 21:16:11 except (ValueError, RuntimeError): 21:16:11 # If the comparison raises, use 'is' as fallback. 21:16:11 cache_hit = request_cache_key is cache_key 21:16:11 21:16:11 if cache_hit: 21:16:11 if self.cached_result[2] is not None: 21:16:11 exc, exc_tb = self.cached_result[2] 21:16:11 raise exc.with_traceback(exc_tb) 21:16:11 else: 21:16:11 return self.cached_result[0] 21:16:11 # We have a previous but differently parametrized fixture instance 21:16:11 # so we need to tear it down before creating a new one. 21:16:11 self.finish(request) 21:16:11 assert self.cached_result is None 21:16:11 21:16:11 # Add finalizer to requested fixtures we saved previously. 21:16:11 # We make sure to do this after checking for cached value to avoid 21:16:11 # adding our finalizer multiple times. (#12135) 21:16:11 finalizer = functools.partial(self.finish, request=request) 21:16:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:16:11 parent_fixture.addfinalizer(finalizer) 21:16:11 21:16:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:16:11 # which is executed last. 21:16:11 > assert not self._finalizers 21:16:11 ^^^^^^^^^^^^^^^^^^^^ 21:16:11 E AssertionError 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:16:11 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 21:16:11 21:16:11 cls = 21:16:11 func = . at 0x7f08cbb8bce0> 21:16:11 when = 'setup' 21:16:11 reraise = (, ) 21:16:11 21:16:11 @classmethod 21:16:11 def from_call( 21:16:11 cls, 21:16:11 func: Callable[[], TResult], 21:16:11 when: Literal["collect", "setup", "call", "teardown"], 21:16:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:16:11 ) -> CallInfo[TResult]: 21:16:11 """Call func, wrapping the result in a CallInfo. 21:16:11 21:16:11 :param func: 21:16:11 The function to call. Called without arguments. 21:16:11 :type func: Callable[[], _pytest.runner.TResult] 21:16:11 :param when: 21:16:11 The phase in which the function is called. 21:16:11 :param reraise: 21:16:11 Exception or exceptions that shall propagate if raised by the 21:16:11 function, instead of being wrapped in the CallInfo. 21:16:11 """ 21:16:11 excinfo = None 21:16:11 instant = timing.Instant() 21:16:11 try: 21:16:11 > result: TResult | None = func() 21:16:11 ^^^^^^ 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:16:11 lambda: runtest_hook(item=item, **kwds), 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:16:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:16:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:16:11 yield 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:16:11 return (yield) 21:16:11 ^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:16:11 item.session._setupstate.setup(item) 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:16:11 col.setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:16:11 super().setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:16:11 self._request._fillfixtures() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:16:11 item.funcargs[argname] = self.getfixturevalue(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:16:11 fixturedef = self._get_active_fixturedef(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:16:11 fixturedef.execute(request=subrequest) 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 21:16:11 self = 21:16:11 request = > 21:16:11 21:16:11 def execute(self, request: SubRequest) -> FixtureValue: 21:16:11 """Return the value of this fixture, executing it if not cached.""" 21:16:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:16:11 # This needs to be done before checking if we have a cached value, since 21:16:11 # if a dependent fixture has their cache invalidated, e.g. due to 21:16:11 # parametrization, they finalize themselves and fixtures depending on it 21:16:11 # (which will likely include this fixture) setting `self.cached_result = None`. 21:16:11 # See #4871 21:16:11 requested_fixtures_that_should_finalize_us = [] 21:16:11 for argname in self.argnames: 21:16:11 fixturedef = request._get_active_fixturedef(argname) 21:16:11 # Saves requested fixtures in a list so we later can add our finalizer 21:16:11 # to them, ensuring that if a requested fixture gets torn down we get torn 21:16:11 # down first. This is generally handled by SetupState, but still currently 21:16:11 # needed when this fixture is not parametrized but depends on a parametrized 21:16:11 # fixture. 21:16:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:16:11 21:16:11 # Check for (and return) cached value/exception. 21:16:11 if self.cached_result is not None: 21:16:11 request_cache_key = self.cache_key(request) 21:16:11 cache_key = self.cached_result[1] 21:16:11 try: 21:16:11 # Attempt to make a normal == check: this might fail for objects 21:16:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:16:11 cache_hit = bool(request_cache_key == cache_key) 21:16:11 except (ValueError, RuntimeError): 21:16:11 # If the comparison raises, use 'is' as fallback. 21:16:11 cache_hit = request_cache_key is cache_key 21:16:11 21:16:11 if cache_hit: 21:16:11 if self.cached_result[2] is not None: 21:16:11 exc, exc_tb = self.cached_result[2] 21:16:11 raise exc.with_traceback(exc_tb) 21:16:11 else: 21:16:11 return self.cached_result[0] 21:16:11 # We have a previous but differently parametrized fixture instance 21:16:11 # so we need to tear it down before creating a new one. 21:16:11 self.finish(request) 21:16:11 assert self.cached_result is None 21:16:11 21:16:11 # Add finalizer to requested fixtures we saved previously. 21:16:11 # We make sure to do this after checking for cached value to avoid 21:16:11 # adding our finalizer multiple times. (#12135) 21:16:11 finalizer = functools.partial(self.finish, request=request) 21:16:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:16:11 parent_fixture.addfinalizer(finalizer) 21:16:11 21:16:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:16:11 # which is executed last. 21:16:11 > assert not self._finalizers 21:16:11 ^^^^^^^^^^^^^^^^^^^^ 21:16:11 E AssertionError 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:16:11 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 21:16:11 21:16:11 cls = 21:16:11 func = . at 0x7f08cbbcbc40> 21:16:11 when = 'setup' 21:16:11 reraise = (, ) 21:16:11 21:16:11 @classmethod 21:16:11 def from_call( 21:16:11 cls, 21:16:11 func: Callable[[], TResult], 21:16:11 when: Literal["collect", "setup", "call", "teardown"], 21:16:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:16:11 ) -> CallInfo[TResult]: 21:16:11 """Call func, wrapping the result in a CallInfo. 21:16:11 21:16:11 :param func: 21:16:11 The function to call. Called without arguments. 21:16:11 :type func: Callable[[], _pytest.runner.TResult] 21:16:11 :param when: 21:16:11 The phase in which the function is called. 21:16:11 :param reraise: 21:16:11 Exception or exceptions that shall propagate if raised by the 21:16:11 function, instead of being wrapped in the CallInfo. 21:16:11 """ 21:16:11 excinfo = None 21:16:11 instant = timing.Instant() 21:16:11 try: 21:16:11 > result: TResult | None = func() 21:16:11 ^^^^^^ 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:16:11 lambda: runtest_hook(item=item, **kwds), 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:16:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:16:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:16:11 yield 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:16:11 return (yield) 21:16:11 ^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:16:11 item.session._setupstate.setup(item) 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:16:11 col.setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:16:11 super().setup() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:16:11 self._request._fillfixtures() 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:16:11 item.funcargs[argname] = self.getfixturevalue(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:16:11 fixturedef = self._get_active_fixturedef(argname) 21:16:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:16:11 fixturedef.execute(request=subrequest) 21:16:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:16:11 21:16:11 self = 21:16:11 request = > 21:16:11 21:16:11 def execute(self, request: SubRequest) -> FixtureValue: 21:16:11 """Return the value of this fixture, executing it if not cached.""" 21:16:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:16:11 # This needs to be done before checking if we have a cached value, since 21:16:11 # if a dependent fixture has their cache invalidated, e.g. due to 21:16:11 # parametrization, they finalize themselves and fixtures depending on it 21:16:11 # (which will likely include this fixture) setting `self.cached_result = None`. 21:16:11 # See #4871 21:16:11 requested_fixtures_that_should_finalize_us = [] 21:16:11 for argname in self.argnames: 21:16:11 fixturedef = request._get_active_fixturedef(argname) 21:16:11 # Saves requested fixtures in a list so we later can add our finalizer 21:16:11 # to them, ensuring that if a requested fixture gets torn down we get torn 21:16:11 # down first. This is generally handled by SetupState, but still currently 21:16:11 # needed when this fixture is not parametrized but depends on a parametrized 21:16:11 # fixture. 21:16:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:16:11 21:16:11 # Check for (and return) cached value/exception. 21:16:11 if self.cached_result is not None: 21:16:11 request_cache_key = self.cache_key(request) 21:16:11 cache_key = self.cached_result[1] 21:16:11 try: 21:16:11 # Attempt to make a normal == check: this might fail for objects 21:16:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:16:11 cache_hit = bool(request_cache_key == cache_key) 21:16:11 except (ValueError, RuntimeError): 21:16:11 # If the comparison raises, use 'is' as fallback. 21:16:11 cache_hit = request_cache_key is cache_key 21:16:11 21:16:11 if cache_hit: 21:16:11 if self.cached_result[2] is not None: 21:16:11 exc, exc_tb = self.cached_result[2] 21:16:11 raise exc.with_traceback(exc_tb) 21:16:11 else: 21:16:11 return self.cached_result[0] 21:16:11 # We have a previous but differently parametrized fixture instance 21:16:11 # so we need to tear it down before creating a new one. 21:16:11 self.finish(request) 21:16:11 assert self.cached_result is None 21:16:11 21:16:11 # Add finalizer to requested fixtures we saved previously. 21:16:11 # We make sure to do this after checking for cached value to avoid 21:16:11 # adding our finalizer multiple times. (#12135) 21:16:11 finalizer = functools.partial(self.finish, request=request) 21:16:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:16:11 parent_fixture.addfinalizer(finalizer) 21:16:11 21:16:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:16:11 # which is executed last. 21:16:11 > assert not self._finalizers 21:16:11 ^^^^^^^^^^^^^^^^^^^^ 21:16:11 E AssertionError 21:16:11 21:16:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:16:11 =========================== short test summary info ============================ 21:16:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 21:16:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 21:16:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 21:16:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 21:16:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 21:16:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 21:16:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 21:16:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 21:16:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 21:16:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 21:16:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 21:16:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 21:16:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 21:16:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 21:16:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 21:16:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 21:16:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 21:16:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 21:16:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 21:16:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 21:16:11 20 errors in 123.78s (0:02:03) 21:16:12 testsPCE: exit 1 (124.07 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh pce pid=4687 21:16:12 testsPCE: FAIL ✖ in 2 minutes 52.29 seconds 21:16:12 tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:16:12 tests_tapi: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:16:12 tests190: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:16:20 tests121: freeze> python -m pip freeze --all 21:16:20 tests_tapi: freeze> python -m pip freeze --all 21:16:20 tests190: freeze> python -m pip freeze --all 21:16:20 tests121: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 21:16:20 tests121: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 1.2.1 21:16:20 using environment variables from ./karaf121.env 21:16:20 tests_tapi: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 21:16:20 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh tapi 21:16:20 using environment variables from ./karaf221.env 21:16:20 pytest -q transportpce_tests/1.2.1/test01_portmapping.py 21:16:20 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 21:16:20 tests190: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 21:16:20 tests190: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh oc 21:16:20 using environment variables from ./karafoc.env 21:16:20 pytest -q transportpce_tests/oc/test01_portmapping.py 21:18:01 EEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 21:18:02 ==================================== ERRORS ==================================== 21:18:02 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 21:18:02 21:18:02 cls = 21:18:02 21:18:02 @classmethod 21:18:02 def setUpClass(cls): 21:18:02 > cls.processes = test_utils.start_tpce() 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 21:18:02 transportpce_tests/oc/test01_portmapping.py:29: 21:18:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:02 21:18:02 def start_tpce(): 21:18:02 if 'NO_ODL_STARTUP' in os.environ: 21:18:02 print('No OpenDaylight instance to start!') 21:18:02 return [] 21:18:02 print('starting OpenDaylight...') 21:18:02 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 21:18:02 process = start_lighty() 21:18:02 else: 21:18:02 process = start_karaf() 21:18:02 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 21:18:02 print('OpenDaylight started !') 21:18:02 else: 21:18:02 print('OpenDaylight failed to start !') 21:18:02 shutdown_process(process) 21:18:02 for pid in process_list: 21:18:02 shutdown_process(pid) 21:18:02 > sys.exit(1) 21:18:02 E SystemExit: 1 21:18:02 21:18:02 transportpce_tests/common/test_utils.py:232: SystemExit 21:18:02 ---------------------------- Captured stdout setup ----------------------------- 21:18:02 starting OpenDaylight... 21:18:02 starting KARAF (karafoc) TransportPCE build... 21:18:02 Pattern not found after 100 seconds! OpenDaylight failed to start ! 21:18:02 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catlog_input_insertion _ 21:18:02 21:18:02 cls = 21:18:02 func = . at 0x7f6ffe6c0f40> 21:18:02 when = 'setup' 21:18:02 reraise = (, ) 21:18:02 21:18:02 @classmethod 21:18:02 def from_call( 21:18:02 cls, 21:18:02 func: Callable[[], TResult], 21:18:02 when: Literal["collect", "setup", "call", "teardown"], 21:18:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:02 ) -> CallInfo[TResult]: 21:18:02 """Call func, wrapping the result in a CallInfo. 21:18:02 21:18:02 :param func: 21:18:02 The function to call. Called without arguments. 21:18:02 :type func: Callable[[], _pytest.runner.TResult] 21:18:02 :param when: 21:18:02 The phase in which the function is called. 21:18:02 :param reraise: 21:18:02 Exception or exceptions that shall propagate if raised by the 21:18:02 function, instead of being wrapped in the CallInfo. 21:18:02 """ 21:18:02 excinfo = None 21:18:02 instant = timing.Instant() 21:18:02 try: 21:18:02 > result: TResult | None = func() 21:18:02 ^^^^^^ 21:18:02 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:02 lambda: runtest_hook(item=item, **kwds), 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:02 yield 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:02 return (yield) 21:18:02 ^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:02 item.session._setupstate.setup(item) 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:02 col.setup() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:02 super().setup() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:02 self._request._fillfixtures() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:02 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:02 fixturedef = self._get_active_fixturedef(argname) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:02 fixturedef.execute(request=subrequest) 21:18:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:02 21:18:02 self = 21:18:02 request = > 21:18:02 21:18:02 def execute(self, request: SubRequest) -> FixtureValue: 21:18:02 """Return the value of this fixture, executing it if not cached.""" 21:18:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:02 # This needs to be done before checking if we have a cached value, since 21:18:02 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:02 # parametrization, they finalize themselves and fixtures depending on it 21:18:02 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:02 # See #4871 21:18:02 requested_fixtures_that_should_finalize_us = [] 21:18:02 for argname in self.argnames: 21:18:02 fixturedef = request._get_active_fixturedef(argname) 21:18:02 # Saves requested fixtures in a list so we later can add our finalizer 21:18:02 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:02 # down first. This is generally handled by SetupState, but still currently 21:18:02 # needed when this fixture is not parametrized but depends on a parametrized 21:18:02 # fixture. 21:18:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:02 21:18:02 # Check for (and return) cached value/exception. 21:18:02 if self.cached_result is not None: 21:18:02 request_cache_key = self.cache_key(request) 21:18:02 cache_key = self.cached_result[1] 21:18:02 try: 21:18:02 # Attempt to make a normal == check: this might fail for objects 21:18:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:02 cache_hit = bool(request_cache_key == cache_key) 21:18:02 except (ValueError, RuntimeError): 21:18:02 # If the comparison raises, use 'is' as fallback. 21:18:02 cache_hit = request_cache_key is cache_key 21:18:02 21:18:02 if cache_hit: 21:18:02 if self.cached_result[2] is not None: 21:18:02 exc, exc_tb = self.cached_result[2] 21:18:02 raise exc.with_traceback(exc_tb) 21:18:02 else: 21:18:02 return self.cached_result[0] 21:18:02 # We have a previous but differently parametrized fixture instance 21:18:02 # so we need to tear it down before creating a new one. 21:18:02 self.finish(request) 21:18:02 assert self.cached_result is None 21:18:02 21:18:02 # Add finalizer to requested fixtures we saved previously. 21:18:02 # We make sure to do this after checking for cached value to avoid 21:18:02 # adding our finalizer multiple times. (#12135) 21:18:02 finalizer = functools.partial(self.finish, request=request) 21:18:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:02 parent_fixture.addfinalizer(finalizer) 21:18:02 21:18:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:02 # which is executed last. 21:18:02 > assert not self._finalizers 21:18:02 ^^^^^^^^^^^^^^^^^^^^ 21:18:02 E AssertionError 21:18:02 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:02 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 21:18:02 21:18:02 cls = 21:18:02 func = . at 0x7f6ffe6e3600> 21:18:02 when = 'setup' 21:18:02 reraise = (, ) 21:18:02 21:18:02 @classmethod 21:18:02 def from_call( 21:18:02 cls, 21:18:02 func: Callable[[], TResult], 21:18:02 when: Literal["collect", "setup", "call", "teardown"], 21:18:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:02 ) -> CallInfo[TResult]: 21:18:02 """Call func, wrapping the result in a CallInfo. 21:18:02 21:18:02 :param func: 21:18:02 The function to call. Called without arguments. 21:18:02 :type func: Callable[[], _pytest.runner.TResult] 21:18:02 :param when: 21:18:02 The phase in which the function is called. 21:18:02 :param reraise: 21:18:02 Exception or exceptions that shall propagate if raised by the 21:18:02 function, instead of being wrapped in the CallInfo. 21:18:02 """ 21:18:02 excinfo = None 21:18:02 instant = timing.Instant() 21:18:02 try: 21:18:02 > result: TResult | None = func() 21:18:02 ^^^^^^ 21:18:02 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:02 lambda: runtest_hook(item=item, **kwds), 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:02 yield 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:02 return (yield) 21:18:02 ^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:02 item.session._setupstate.setup(item) 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:02 col.setup() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:02 super().setup() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:02 self._request._fillfixtures() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:02 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:02 fixturedef = self._get_active_fixturedef(argname) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:02 fixturedef.execute(request=subrequest) 21:18:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:02 21:18:02 self = 21:18:02 request = > 21:18:02 21:18:02 def execute(self, request: SubRequest) -> FixtureValue: 21:18:02 """Return the value of this fixture, executing it if not cached.""" 21:18:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:02 # This needs to be done before checking if we have a cached value, since 21:18:02 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:02 # parametrization, they finalize themselves and fixtures depending on it 21:18:02 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:02 # See #4871 21:18:02 requested_fixtures_that_should_finalize_us = [] 21:18:02 for argname in self.argnames: 21:18:02 fixturedef = request._get_active_fixturedef(argname) 21:18:02 # Saves requested fixtures in a list so we later can add our finalizer 21:18:02 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:02 # down first. This is generally handled by SetupState, but still currently 21:18:02 # needed when this fixture is not parametrized but depends on a parametrized 21:18:02 # fixture. 21:18:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:02 21:18:02 # Check for (and return) cached value/exception. 21:18:02 if self.cached_result is not None: 21:18:02 request_cache_key = self.cache_key(request) 21:18:02 cache_key = self.cached_result[1] 21:18:02 try: 21:18:02 # Attempt to make a normal == check: this might fail for objects 21:18:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:02 cache_hit = bool(request_cache_key == cache_key) 21:18:02 except (ValueError, RuntimeError): 21:18:02 # If the comparison raises, use 'is' as fallback. 21:18:02 cache_hit = request_cache_key is cache_key 21:18:02 21:18:02 if cache_hit: 21:18:02 if self.cached_result[2] is not None: 21:18:02 exc, exc_tb = self.cached_result[2] 21:18:02 raise exc.with_traceback(exc_tb) 21:18:02 else: 21:18:02 return self.cached_result[0] 21:18:02 # We have a previous but differently parametrized fixture instance 21:18:02 # so we need to tear it down before creating a new one. 21:18:02 self.finish(request) 21:18:02 assert self.cached_result is None 21:18:02 21:18:02 # Add finalizer to requested fixtures we saved previously. 21:18:02 # We make sure to do this after checking for cached value to avoid 21:18:02 # adding our finalizer multiple times. (#12135) 21:18:02 finalizer = functools.partial(self.finish, request=request) 21:18:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:02 parent_fixture.addfinalizer(finalizer) 21:18:02 21:18:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:02 # which is executed last. 21:18:02 > assert not self._finalizers 21:18:02 ^^^^^^^^^^^^^^^^^^^^ 21:18:02 E AssertionError 21:18:02 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:02 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 21:18:02 21:18:02 cls = 21:18:02 func = . at 0x7f6ffedcf1a0> 21:18:02 when = 'setup' 21:18:02 reraise = (, ) 21:18:02 21:18:02 @classmethod 21:18:02 def from_call( 21:18:02 cls, 21:18:02 func: Callable[[], TResult], 21:18:02 when: Literal["collect", "setup", "call", "teardown"], 21:18:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:02 ) -> CallInfo[TResult]: 21:18:02 """Call func, wrapping the result in a CallInfo. 21:18:02 21:18:02 :param func: 21:18:02 The function to call. Called without arguments. 21:18:02 :type func: Callable[[], _pytest.runner.TResult] 21:18:02 :param when: 21:18:02 The phase in which the function is called. 21:18:02 :param reraise: 21:18:02 Exception or exceptions that shall propagate if raised by the 21:18:02 function, instead of being wrapped in the CallInfo. 21:18:02 """ 21:18:02 excinfo = None 21:18:02 instant = timing.Instant() 21:18:02 try: 21:18:02 > result: TResult | None = func() 21:18:02 ^^^^^^ 21:18:02 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:02 lambda: runtest_hook(item=item, **kwds), 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:02 yield 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:02 return (yield) 21:18:02 ^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:02 item.session._setupstate.setup(item) 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:02 col.setup() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:02 super().setup() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:02 self._request._fillfixtures() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:02 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:02 fixturedef = self._get_active_fixturedef(argname) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:02 fixturedef.execute(request=subrequest) 21:18:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:02 21:18:02 self = 21:18:02 request = > 21:18:02 21:18:02 def execute(self, request: SubRequest) -> FixtureValue: 21:18:02 """Return the value of this fixture, executing it if not cached.""" 21:18:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:02 # This needs to be done before checking if we have a cached value, since 21:18:02 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:02 # parametrization, they finalize themselves and fixtures depending on it 21:18:02 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:02 # See #4871 21:18:02 requested_fixtures_that_should_finalize_us = [] 21:18:02 for argname in self.argnames: 21:18:02 fixturedef = request._get_active_fixturedef(argname) 21:18:02 # Saves requested fixtures in a list so we later can add our finalizer 21:18:02 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:02 # down first. This is generally handled by SetupState, but still currently 21:18:02 # needed when this fixture is not parametrized but depends on a parametrized 21:18:02 # fixture. 21:18:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:02 21:18:02 # Check for (and return) cached value/exception. 21:18:02 if self.cached_result is not None: 21:18:02 request_cache_key = self.cache_key(request) 21:18:02 cache_key = self.cached_result[1] 21:18:02 try: 21:18:02 # Attempt to make a normal == check: this might fail for objects 21:18:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:02 cache_hit = bool(request_cache_key == cache_key) 21:18:02 except (ValueError, RuntimeError): 21:18:02 # If the comparison raises, use 'is' as fallback. 21:18:02 cache_hit = request_cache_key is cache_key 21:18:02 21:18:02 if cache_hit: 21:18:02 if self.cached_result[2] is not None: 21:18:02 exc, exc_tb = self.cached_result[2] 21:18:02 raise exc.with_traceback(exc_tb) 21:18:02 else: 21:18:02 return self.cached_result[0] 21:18:02 # We have a previous but differently parametrized fixture instance 21:18:02 # so we need to tear it down before creating a new one. 21:18:02 self.finish(request) 21:18:02 assert self.cached_result is None 21:18:02 21:18:02 # Add finalizer to requested fixtures we saved previously. 21:18:02 # We make sure to do this after checking for cached value to avoid 21:18:02 # adding our finalizer multiple times. (#12135) 21:18:02 finalizer = functools.partial(self.finish, request=request) 21:18:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:02 parent_fixture.addfinalizer(finalizer) 21:18:02 21:18:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:02 # which is executed last. 21:18:02 > assert not self._finalizers 21:18:02 ^^^^^^^^^^^^^^^^^^^^ 21:18:02 E AssertionError 21:18:02 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:02 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 21:18:02 21:18:02 cls = 21:18:02 func = . at 0x7f6ffe6c1080> 21:18:02 when = 'setup' 21:18:02 reraise = (, ) 21:18:02 21:18:02 @classmethod 21:18:02 def from_call( 21:18:02 cls, 21:18:02 func: Callable[[], TResult], 21:18:02 when: Literal["collect", "setup", "call", "teardown"], 21:18:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:02 ) -> CallInfo[TResult]: 21:18:02 """Call func, wrapping the result in a CallInfo. 21:18:02 21:18:02 :param func: 21:18:02 The function to call. Called without arguments. 21:18:02 :type func: Callable[[], _pytest.runner.TResult] 21:18:02 :param when: 21:18:02 The phase in which the function is called. 21:18:02 :param reraise: 21:18:02 Exception or exceptions that shall propagate if raised by the 21:18:02 function, instead of being wrapped in the CallInfo. 21:18:02 """ 21:18:02 excinfo = None 21:18:02 instant = timing.Instant() 21:18:02 try: 21:18:02 > result: TResult | None = func() 21:18:02 ^^^^^^ 21:18:02 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:02 lambda: runtest_hook(item=item, **kwds), 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:02 yield 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:02 return (yield) 21:18:02 ^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:02 item.session._setupstate.setup(item) 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:02 col.setup() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:02 super().setup() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:02 self._request._fillfixtures() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:02 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:02 fixturedef = self._get_active_fixturedef(argname) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:02 fixturedef.execute(request=subrequest) 21:18:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:02 21:18:02 self = 21:18:02 request = > 21:18:02 21:18:02 def execute(self, request: SubRequest) -> FixtureValue: 21:18:02 """Return the value of this fixture, executing it if not cached.""" 21:18:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:02 # This needs to be done before checking if we have a cached value, since 21:18:02 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:02 # parametrization, they finalize themselves and fixtures depending on it 21:18:02 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:02 # See #4871 21:18:02 requested_fixtures_that_should_finalize_us = [] 21:18:02 for argname in self.argnames: 21:18:02 fixturedef = request._get_active_fixturedef(argname) 21:18:02 # Saves requested fixtures in a list so we later can add our finalizer 21:18:02 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:02 # down first. This is generally handled by SetupState, but still currently 21:18:02 # needed when this fixture is not parametrized but depends on a parametrized 21:18:02 # fixture. 21:18:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:02 21:18:02 # Check for (and return) cached value/exception. 21:18:02 if self.cached_result is not None: 21:18:02 request_cache_key = self.cache_key(request) 21:18:02 cache_key = self.cached_result[1] 21:18:02 try: 21:18:02 # Attempt to make a normal == check: this might fail for objects 21:18:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:02 cache_hit = bool(request_cache_key == cache_key) 21:18:02 except (ValueError, RuntimeError): 21:18:02 # If the comparison raises, use 'is' as fallback. 21:18:02 cache_hit = request_cache_key is cache_key 21:18:02 21:18:02 if cache_hit: 21:18:02 if self.cached_result[2] is not None: 21:18:02 exc, exc_tb = self.cached_result[2] 21:18:02 raise exc.with_traceback(exc_tb) 21:18:02 else: 21:18:02 return self.cached_result[0] 21:18:02 # We have a previous but differently parametrized fixture instance 21:18:02 # so we need to tear it down before creating a new one. 21:18:02 self.finish(request) 21:18:02 assert self.cached_result is None 21:18:02 21:18:02 # Add finalizer to requested fixtures we saved previously. 21:18:02 # We make sure to do this after checking for cached value to avoid 21:18:02 # adding our finalizer multiple times. (#12135) 21:18:02 finalizer = functools.partial(self.finish, request=request) 21:18:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:02 parent_fixture.addfinalizer(finalizer) 21:18:02 21:18:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:02 # which is executed last. 21:18:02 > assert not self._finalizers 21:18:02 ^^^^^^^^^^^^^^^^^^^^ 21:18:02 E AssertionError 21:18:02 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:02 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 21:18:02 21:18:02 cls = 21:18:02 func = . at 0x7f6fffe82f20> 21:18:02 when = 'setup' 21:18:02 reraise = (, ) 21:18:02 21:18:02 @classmethod 21:18:02 def from_call( 21:18:02 cls, 21:18:02 func: Callable[[], TResult], 21:18:02 when: Literal["collect", "setup", "call", "teardown"], 21:18:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:02 ) -> CallInfo[TResult]: 21:18:02 """Call func, wrapping the result in a CallInfo. 21:18:02 21:18:02 :param func: 21:18:02 The function to call. Called without arguments. 21:18:02 :type func: Callable[[], _pytest.runner.TResult] 21:18:02 :param when: 21:18:02 The phase in which the function is called. 21:18:02 :param reraise: 21:18:02 Exception or exceptions that shall propagate if raised by the 21:18:02 function, instead of being wrapped in the CallInfo. 21:18:02 """ 21:18:02 excinfo = None 21:18:02 instant = timing.Instant() 21:18:02 try: 21:18:02 > result: TResult | None = func() 21:18:02 ^^^^^^ 21:18:02 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:02 lambda: runtest_hook(item=item, **kwds), 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:02 yield 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:02 return (yield) 21:18:02 ^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:02 item.session._setupstate.setup(item) 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:02 col.setup() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:02 super().setup() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:02 self._request._fillfixtures() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:02 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:02 fixturedef = self._get_active_fixturedef(argname) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:02 fixturedef.execute(request=subrequest) 21:18:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:02 21:18:02 self = 21:18:02 request = > 21:18:02 21:18:02 def execute(self, request: SubRequest) -> FixtureValue: 21:18:02 """Return the value of this fixture, executing it if not cached.""" 21:18:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:02 # This needs to be done before checking if we have a cached value, since 21:18:02 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:02 # parametrization, they finalize themselves and fixtures depending on it 21:18:02 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:02 # See #4871 21:18:02 requested_fixtures_that_should_finalize_us = [] 21:18:02 for argname in self.argnames: 21:18:02 fixturedef = request._get_active_fixturedef(argname) 21:18:02 # Saves requested fixtures in a list so we later can add our finalizer 21:18:02 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:02 # down first. This is generally handled by SetupState, but still currently 21:18:02 # needed when this fixture is not parametrized but depends on a parametrized 21:18:02 # fixture. 21:18:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:02 21:18:02 # Check for (and return) cached value/exception. 21:18:02 if self.cached_result is not None: 21:18:02 request_cache_key = self.cache_key(request) 21:18:02 cache_key = self.cached_result[1] 21:18:02 try: 21:18:02 # Attempt to make a normal == check: this might fail for objects 21:18:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:02 cache_hit = bool(request_cache_key == cache_key) 21:18:02 except (ValueError, RuntimeError): 21:18:02 # If the comparison raises, use 'is' as fallback. 21:18:02 cache_hit = request_cache_key is cache_key 21:18:02 21:18:02 if cache_hit: 21:18:02 if self.cached_result[2] is not None: 21:18:02 exc, exc_tb = self.cached_result[2] 21:18:02 raise exc.with_traceback(exc_tb) 21:18:02 else: 21:18:02 return self.cached_result[0] 21:18:02 # We have a previous but differently parametrized fixture instance 21:18:02 # so we need to tear it down before creating a new one. 21:18:02 self.finish(request) 21:18:02 assert self.cached_result is None 21:18:02 21:18:02 # Add finalizer to requested fixtures we saved previously. 21:18:02 # We make sure to do this after checking for cached value to avoid 21:18:02 # adding our finalizer multiple times. (#12135) 21:18:02 finalizer = functools.partial(self.finish, request=request) 21:18:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:02 parent_fixture.addfinalizer(finalizer) 21:18:02 21:18:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:02 # which is executed last. 21:18:02 > assert not self._finalizers 21:18:02 ^^^^^^^^^^^^^^^^^^^^ 21:18:02 E AssertionError 21:18:02 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:02 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 21:18:02 21:18:02 cls = 21:18:02 func = . at 0x7f6ffedcf1a0> 21:18:02 when = 'setup' 21:18:02 reraise = (, ) 21:18:02 21:18:02 @classmethod 21:18:02 def from_call( 21:18:02 cls, 21:18:02 func: Callable[[], TResult], 21:18:02 when: Literal["collect", "setup", "call", "teardown"], 21:18:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:02 ) -> CallInfo[TResult]: 21:18:02 """Call func, wrapping the result in a CallInfo. 21:18:02 21:18:02 :param func: 21:18:02 The function to call. Called without arguments. 21:18:02 :type func: Callable[[], _pytest.runner.TResult] 21:18:02 :param when: 21:18:02 The phase in which the function is called. 21:18:02 :param reraise: 21:18:02 Exception or exceptions that shall propagate if raised by the 21:18:02 function, instead of being wrapped in the CallInfo. 21:18:02 """ 21:18:02 excinfo = None 21:18:02 instant = timing.Instant() 21:18:02 try: 21:18:02 > result: TResult | None = func() 21:18:02 ^^^^^^ 21:18:02 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:02 lambda: runtest_hook(item=item, **kwds), 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:02 yield 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:02 return (yield) 21:18:02 ^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:02 item.session._setupstate.setup(item) 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:02 col.setup() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:02 super().setup() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:02 self._request._fillfixtures() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:02 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:02 fixturedef = self._get_active_fixturedef(argname) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:02 fixturedef.execute(request=subrequest) 21:18:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:02 21:18:02 self = 21:18:02 request = > 21:18:02 21:18:02 def execute(self, request: SubRequest) -> FixtureValue: 21:18:02 """Return the value of this fixture, executing it if not cached.""" 21:18:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:02 # This needs to be done before checking if we have a cached value, since 21:18:02 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:02 # parametrization, they finalize themselves and fixtures depending on it 21:18:02 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:02 # See #4871 21:18:02 requested_fixtures_that_should_finalize_us = [] 21:18:02 for argname in self.argnames: 21:18:02 fixturedef = request._get_active_fixturedef(argname) 21:18:02 # Saves requested fixtures in a list so we later can add our finalizer 21:18:02 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:02 # down first. This is generally handled by SetupState, but still currently 21:18:02 # needed when this fixture is not parametrized but depends on a parametrized 21:18:02 # fixture. 21:18:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:02 21:18:02 # Check for (and return) cached value/exception. 21:18:02 if self.cached_result is not None: 21:18:02 request_cache_key = self.cache_key(request) 21:18:02 cache_key = self.cached_result[1] 21:18:02 try: 21:18:02 # Attempt to make a normal == check: this might fail for objects 21:18:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:02 cache_hit = bool(request_cache_key == cache_key) 21:18:02 except (ValueError, RuntimeError): 21:18:02 # If the comparison raises, use 'is' as fallback. 21:18:02 cache_hit = request_cache_key is cache_key 21:18:02 21:18:02 if cache_hit: 21:18:02 if self.cached_result[2] is not None: 21:18:02 exc, exc_tb = self.cached_result[2] 21:18:02 raise exc.with_traceback(exc_tb) 21:18:02 else: 21:18:02 return self.cached_result[0] 21:18:02 # We have a previous but differently parametrized fixture instance 21:18:02 # so we need to tear it down before creating a new one. 21:18:02 self.finish(request) 21:18:02 assert self.cached_result is None 21:18:02 21:18:02 # Add finalizer to requested fixtures we saved previously. 21:18:02 # We make sure to do this after checking for cached value to avoid 21:18:02 # adding our finalizer multiple times. (#12135) 21:18:02 finalizer = functools.partial(self.finish, request=request) 21:18:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:02 parent_fixture.addfinalizer(finalizer) 21:18:02 21:18:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:02 # which is executed last. 21:18:02 > assert not self._finalizers 21:18:02 ^^^^^^^^^^^^^^^^^^^^ 21:18:02 E AssertionError 21:18:02 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:02 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 21:18:02 21:18:02 cls = 21:18:02 func = . at 0x7f6ffe6c0fe0> 21:18:02 when = 'setup' 21:18:02 reraise = (, ) 21:18:02 21:18:02 @classmethod 21:18:02 def from_call( 21:18:02 cls, 21:18:02 func: Callable[[], TResult], 21:18:02 when: Literal["collect", "setup", "call", "teardown"], 21:18:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:02 ) -> CallInfo[TResult]: 21:18:02 """Call func, wrapping the result in a CallInfo. 21:18:02 21:18:02 :param func: 21:18:02 The function to call. Called without arguments. 21:18:02 :type func: Callable[[], _pytest.runner.TResult] 21:18:02 :param when: 21:18:02 The phase in which the function is called. 21:18:02 :param reraise: 21:18:02 Exception or exceptions that shall propagate if raised by the 21:18:02 function, instead of being wrapped in the CallInfo. 21:18:02 """ 21:18:02 excinfo = None 21:18:02 instant = timing.Instant() 21:18:02 try: 21:18:02 > result: TResult | None = func() 21:18:02 ^^^^^^ 21:18:02 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:02 lambda: runtest_hook(item=item, **kwds), 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:02 yield 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:02 return (yield) 21:18:02 ^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:02 item.session._setupstate.setup(item) 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:02 col.setup() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:02 super().setup() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:02 self._request._fillfixtures() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:02 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:02 fixturedef = self._get_active_fixturedef(argname) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:02 fixturedef.execute(request=subrequest) 21:18:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:02 21:18:02 self = 21:18:02 request = > 21:18:02 21:18:02 def execute(self, request: SubRequest) -> FixtureValue: 21:18:02 """Return the value of this fixture, executing it if not cached.""" 21:18:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:02 # This needs to be done before checking if we have a cached value, since 21:18:02 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:02 # parametrization, they finalize themselves and fixtures depending on it 21:18:02 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:02 # See #4871 21:18:02 requested_fixtures_that_should_finalize_us = [] 21:18:02 for argname in self.argnames: 21:18:02 fixturedef = request._get_active_fixturedef(argname) 21:18:02 # Saves requested fixtures in a list so we later can add our finalizer 21:18:02 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:02 # down first. This is generally handled by SetupState, but still currently 21:18:02 # needed when this fixture is not parametrized but depends on a parametrized 21:18:02 # fixture. 21:18:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:02 21:18:02 # Check for (and return) cached value/exception. 21:18:02 if self.cached_result is not None: 21:18:02 request_cache_key = self.cache_key(request) 21:18:02 cache_key = self.cached_result[1] 21:18:02 try: 21:18:02 # Attempt to make a normal == check: this might fail for objects 21:18:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:02 cache_hit = bool(request_cache_key == cache_key) 21:18:02 except (ValueError, RuntimeError): 21:18:02 # If the comparison raises, use 'is' as fallback. 21:18:02 cache_hit = request_cache_key is cache_key 21:18:02 21:18:02 if cache_hit: 21:18:02 if self.cached_result[2] is not None: 21:18:02 exc, exc_tb = self.cached_result[2] 21:18:02 raise exc.with_traceback(exc_tb) 21:18:02 else: 21:18:02 return self.cached_result[0] 21:18:02 # We have a previous but differently parametrized fixture instance 21:18:02 # so we need to tear it down before creating a new one. 21:18:02 self.finish(request) 21:18:02 assert self.cached_result is None 21:18:02 21:18:02 # Add finalizer to requested fixtures we saved previously. 21:18:02 # We make sure to do this after checking for cached value to avoid 21:18:02 # adding our finalizer multiple times. (#12135) 21:18:02 finalizer = functools.partial(self.finish, request=request) 21:18:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:02 parent_fixture.addfinalizer(finalizer) 21:18:02 21:18:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:02 # which is executed last. 21:18:02 > assert not self._finalizers 21:18:02 ^^^^^^^^^^^^^^^^^^^^ 21:18:02 E AssertionError 21:18:02 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:02 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 21:18:02 21:18:02 cls = 21:18:02 func = . at 0x7f6ffe6e3ec0> 21:18:02 when = 'setup' 21:18:02 reraise = (, ) 21:18:02 21:18:02 @classmethod 21:18:02 def from_call( 21:18:02 cls, 21:18:02 func: Callable[[], TResult], 21:18:02 when: Literal["collect", "setup", "call", "teardown"], 21:18:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:02 ) -> CallInfo[TResult]: 21:18:02 """Call func, wrapping the result in a CallInfo. 21:18:02 21:18:02 :param func: 21:18:02 The function to call. Called without arguments. 21:18:02 :type func: Callable[[], _pytest.runner.TResult] 21:18:02 :param when: 21:18:02 The phase in which the function is called. 21:18:02 :param reraise: 21:18:02 Exception or exceptions that shall propagate if raised by the 21:18:02 function, instead of being wrapped in the CallInfo. 21:18:02 """ 21:18:02 excinfo = None 21:18:02 instant = timing.Instant() 21:18:02 try: 21:18:02 > result: TResult | None = func() 21:18:02 ^^^^^^ 21:18:02 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:02 lambda: runtest_hook(item=item, **kwds), 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:02 yield 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:02 return (yield) 21:18:02 ^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:02 item.session._setupstate.setup(item) 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:02 col.setup() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:02 super().setup() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:02 self._request._fillfixtures() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:02 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:02 fixturedef = self._get_active_fixturedef(argname) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:02 fixturedef.execute(request=subrequest) 21:18:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:02 21:18:02 self = 21:18:02 request = > 21:18:02 21:18:02 def execute(self, request: SubRequest) -> FixtureValue: 21:18:02 """Return the value of this fixture, executing it if not cached.""" 21:18:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:02 # This needs to be done before checking if we have a cached value, since 21:18:02 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:02 # parametrization, they finalize themselves and fixtures depending on it 21:18:02 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:02 # See #4871 21:18:02 requested_fixtures_that_should_finalize_us = [] 21:18:02 for argname in self.argnames: 21:18:02 fixturedef = request._get_active_fixturedef(argname) 21:18:02 # Saves requested fixtures in a list so we later can add our finalizer 21:18:02 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:02 # down first. This is generally handled by SetupState, but still currently 21:18:02 # needed when this fixture is not parametrized but depends on a parametrized 21:18:02 # fixture. 21:18:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:02 21:18:02 # Check for (and return) cached value/exception. 21:18:02 if self.cached_result is not None: 21:18:02 request_cache_key = self.cache_key(request) 21:18:02 cache_key = self.cached_result[1] 21:18:02 try: 21:18:02 # Attempt to make a normal == check: this might fail for objects 21:18:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:02 cache_hit = bool(request_cache_key == cache_key) 21:18:02 except (ValueError, RuntimeError): 21:18:02 # If the comparison raises, use 'is' as fallback. 21:18:02 cache_hit = request_cache_key is cache_key 21:18:02 21:18:02 if cache_hit: 21:18:02 if self.cached_result[2] is not None: 21:18:02 exc, exc_tb = self.cached_result[2] 21:18:02 raise exc.with_traceback(exc_tb) 21:18:02 else: 21:18:02 return self.cached_result[0] 21:18:02 # We have a previous but differently parametrized fixture instance 21:18:02 # so we need to tear it down before creating a new one. 21:18:02 self.finish(request) 21:18:02 assert self.cached_result is None 21:18:02 21:18:02 # Add finalizer to requested fixtures we saved previously. 21:18:02 # We make sure to do this after checking for cached value to avoid 21:18:02 # adding our finalizer multiple times. (#12135) 21:18:02 finalizer = functools.partial(self.finish, request=request) 21:18:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:02 parent_fixture.addfinalizer(finalizer) 21:18:02 21:18:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:02 # which is executed last. 21:18:02 > assert not self._finalizers 21:18:02 ^^^^^^^^^^^^^^^^^^^^ 21:18:02 E AssertionError 21:18:02 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:02 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 21:18:02 21:18:02 cls = 21:18:02 func = . at 0x7f6ffedcf1a0> 21:18:02 when = 'setup' 21:18:02 reraise = (, ) 21:18:02 21:18:02 @classmethod 21:18:02 def from_call( 21:18:02 cls, 21:18:02 func: Callable[[], TResult], 21:18:02 when: Literal["collect", "setup", "call", "teardown"], 21:18:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:02 ) -> CallInfo[TResult]: 21:18:02 """Call func, wrapping the result in a CallInfo. 21:18:02 21:18:02 :param func: 21:18:02 The function to call. Called without arguments. 21:18:02 :type func: Callable[[], _pytest.runner.TResult] 21:18:02 :param when: 21:18:02 The phase in which the function is called. 21:18:02 :param reraise: 21:18:02 Exception or exceptions that shall propagate if raised by the 21:18:02 function, instead of being wrapped in the CallInfo. 21:18:02 """ 21:18:02 excinfo = None 21:18:02 instant = timing.Instant() 21:18:02 try: 21:18:02 > result: TResult | None = func() 21:18:02 ^^^^^^ 21:18:02 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:02 lambda: runtest_hook(item=item, **kwds), 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:02 yield 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:02 return (yield) 21:18:02 ^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:02 item.session._setupstate.setup(item) 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:02 col.setup() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:02 super().setup() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:02 self._request._fillfixtures() 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:02 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:02 fixturedef = self._get_active_fixturedef(argname) 21:18:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:02 fixturedef.execute(request=subrequest) 21:18:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:02 21:18:02 self = 21:18:02 request = > 21:18:02 21:18:02 E def execute(self, request: SubRequest) -> FixtureValue: 21:18:02 """Return the value of this fixture, executing it if not cached.""" 21:18:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:02 # This needs to be done before checking if we have a cached value, since 21:18:02 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:02 # parametrization, they finalize themselves and fixtures depending on it 21:18:02 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:02 # See #4871 21:18:02 requested_fixtures_that_should_finalize_us = [] 21:18:02 for argname in self.argnames: 21:18:02 fixturedef = request._get_active_fixturedef(argname) 21:18:02 # Saves requested fixtures in a list so we later can add our finalizer 21:18:02 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:02 # down first. This is generally handled by SetupState, but still currently 21:18:02 # needed when this fixture is not parametrized but depends on a parametrized 21:18:02 # fixture. 21:18:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:02 21:18:02 # Check for (and return) cached value/exception. 21:18:02 if self.cached_result is not None: 21:18:02 request_cache_key = self.cache_key(request) 21:18:02 cache_key = self.cached_result[1] 21:18:02 try: 21:18:02 # Attempt to make a normal == check: this might fail for objects 21:18:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:02 cache_hit = bool(request_cache_key == cache_key) 21:18:02 except (ValueError, RuntimeError): 21:18:02 # If the comparison raises, use 'is' as fallback. 21:18:02 cache_hit = request_cache_key is cache_key 21:18:02 21:18:02 if cache_hit: 21:18:02 if self.cached_result[2] is not None: 21:18:02 exc, exc_tb = self.cached_result[2] 21:18:02 raise exc.with_traceback(exc_tb) 21:18:02 else: 21:18:02 return self.cached_result[0] 21:18:02 # We have a previous but differently parametrized fixture instance 21:18:02 # so we need to tear it down before creating a new one. 21:18:02 self.finish(request) 21:18:02 assert self.cached_result is None 21:18:02 21:18:02 # Add finalizer to requested fixtures we saved previously. 21:18:02 # We make sure to do this after checking for cached value to avoid 21:18:02 # adding our finalizer multiple times. (#12135) 21:18:02 finalizer = functools.partial(self.finish, request=request) 21:18:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:02 parent_fixture.addfinalizer(finalizer) 21:18:02 21:18:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:02 # which is executed last. 21:18:02 > assert not self._finalizers 21:18:02 ^^^^^^^^^^^^^^^^^^^^ 21:18:02 E AssertionError 21:18:02 21:18:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:02 =========================== short test summary info ============================ 21:18:02 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 21:18:02 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catlog_input_insertion 21:18:02 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 21:18:02 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 21:18:02 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 21:18:02 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 21:18:02 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 21:18:02 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 21:18:02 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 21:18:02 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 21:18:02 10 errors in 101.98s (0:01:41) 21:18:02 tests190: exit 1 (102.25 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh oc pid=4814 21:18:02 EEtests190: FAIL ✖ in 1 minute 50.71 seconds 21:18:02 tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:18:02 EEEEEEEEEEEEEEEEEEE [100%] 21:18:04 ==================================== ERRORS ==================================== 21:18:04 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 21:18:04 21:18:04 cls = 21:18:04 21:18:04 @classmethod 21:18:04 def setUpClass(cls): 21:18:04 > cls.processes = test_utils.start_tpce() 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 21:18:04 transportpce_tests/1.2.1/test01_portmapping.py:33: 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 21:18:04 def start_tpce(): 21:18:04 if 'NO_ODL_STARTUP' in os.environ: 21:18:04 print('No OpenDaylight instance to start!') 21:18:04 return [] 21:18:04 print('starting OpenDaylight...') 21:18:04 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 21:18:04 process = start_lighty() 21:18:04 else: 21:18:04 process = start_karaf() 21:18:04 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 21:18:04 print('OpenDaylight started !') 21:18:04 else: 21:18:04 print('OpenDaylight failed to start !') 21:18:04 shutdown_process(process) 21:18:04 for pid in process_list: 21:18:04 shutdown_process(pid) 21:18:04 > sys.exit(1) 21:18:04 E SystemExit: 1 21:18:04 21:18:04 transportpce_tests/common/test_utils.py:232: SystemExit 21:18:04 ---------------------------- Captured stdout setup ----------------------------- 21:18:04 starting OpenDaylight... 21:18:04 starting KARAF (karaf121) TransportPCE build... 21:18:04 Pattern not found after 100 seconds! OpenDaylight failed to start ! 21:18:04 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 21:18:04 21:18:04 cls = 21:18:04 func = . at 0x7f729f875760> 21:18:04 when = 'setup' 21:18:04 reraise = (, ) 21:18:04 21:18:04 @classmethod 21:18:04 def from_call( 21:18:04 cls, 21:18:04 func: Callable[[], TResult], 21:18:04 when: Literal["collect", "setup", "call", "teardown"], 21:18:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:04 ) -> CallInfo[TResult]: 21:18:04 """Call func, wrapping the result in a CallInfo. 21:18:04 21:18:04 :param func: 21:18:04 The function to call. Called without arguments. 21:18:04 :type func: Callable[[], _pytest.runner.TResult] 21:18:04 :param when: 21:18:04 The phase in which the function is called. 21:18:04 :param reraise: 21:18:04 Exception or exceptions that shall propagate if raised by the 21:18:04 function, instead of being wrapped in the CallInfo. 21:18:04 """ 21:18:04 excinfo = None 21:18:04 instant = timing.Instant() 21:18:04 try: 21:18:04 > result: TResult | None = func() 21:18:04 ^^^^^^ 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:04 lambda: runtest_hook(item=item, **kwds), 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:04 yield 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:04 return (yield) 21:18:04 ^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:04 item.session._setupstate.setup(item) 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:04 col.setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:04 super().setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:04 self._request._fillfixtures() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:04 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:04 fixturedef = self._get_active_fixturedef(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:04 fixturedef.execute(request=subrequest) 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 21:18:04 self = 21:18:04 request = > 21:18:04 21:18:04 def execute(self, request: SubRequest) -> FixtureValue: 21:18:04 """Return the value of this fixture, executing it if not cached.""" 21:18:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:04 # This needs to be done before checking if we have a cached value, since 21:18:04 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:04 # parametrization, they finalize themselves and fixtures depending on it 21:18:04 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:04 # See #4871 21:18:04 requested_fixtures_that_should_finalize_us = [] 21:18:04 for argname in self.argnames: 21:18:04 fixturedef = request._get_active_fixturedef(argname) 21:18:04 # Saves requested fixtures in a list so we later can add our finalizer 21:18:04 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:04 # down first. This is generally handled by SetupState, but still currently 21:18:04 # needed when this fixture is not parametrized but depends on a parametrized 21:18:04 # fixture. 21:18:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:04 21:18:04 # Check for (and return) cached value/exception. 21:18:04 if self.cached_result is not None: 21:18:04 request_cache_key = self.cache_key(request) 21:18:04 cache_key = self.cached_result[1] 21:18:04 try: 21:18:04 # Attempt to make a normal == check: this might fail for objects 21:18:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:04 cache_hit = bool(request_cache_key == cache_key) 21:18:04 except (ValueError, RuntimeError): 21:18:04 # If the comparison raises, use 'is' as fallback. 21:18:04 cache_hit = request_cache_key is cache_key 21:18:04 21:18:04 if cache_hit: 21:18:04 if self.cached_result[2] is not None: 21:18:04 exc, exc_tb = self.cached_result[2] 21:18:04 raise exc.with_traceback(exc_tb) 21:18:04 else: 21:18:04 return self.cached_result[0] 21:18:04 # We have a previous but differently parametrized fixture instance 21:18:04 # so we need to tear it down before creating a new one. 21:18:04 self.finish(request) 21:18:04 assert self.cached_result is None 21:18:04 21:18:04 # Add finalizer to requested fixtures we saved previously. 21:18:04 # We make sure to do this after checking for cached value to avoid 21:18:04 # adding our finalizer multiple times. (#12135) 21:18:04 finalizer = functools.partial(self.finish, request=request) 21:18:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:04 parent_fixture.addfinalizer(finalizer) 21:18:04 21:18:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:04 # which is executed last. 21:18:04 > assert not self._finalizers 21:18:04 ^^^^^^^^^^^^^^^^^^^^ 21:18:04 E AssertionError 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:04 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 21:18:04 21:18:04 cls = 21:18:04 func = . at 0x7f729f8a7560> 21:18:04 when = 'setup' 21:18:04 reraise = (, ) 21:18:04 21:18:04 @classmethod 21:18:04 def from_call( 21:18:04 cls, 21:18:04 func: Callable[[], TResult], 21:18:04 when: Literal["collect", "setup", "call", "teardown"], 21:18:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:04 ) -> CallInfo[TResult]: 21:18:04 """Call func, wrapping the result in a CallInfo. 21:18:04 21:18:04 :param func: 21:18:04 The function to call. Called without arguments. 21:18:04 :type func: Callable[[], _pytest.runner.TResult] 21:18:04 :param when: 21:18:04 The phase in which the function is called. 21:18:04 :param reraise: 21:18:04 Exception or exceptions that shall propagate if raised by the 21:18:04 function, instead of being wrapped in the CallInfo. 21:18:04 """ 21:18:04 excinfo = None 21:18:04 instant = timing.Instant() 21:18:04 try: 21:18:04 > result: TResult | None = func() 21:18:04 ^^^^^^ 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:04 lambda: runtest_hook(item=item, **kwds), 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:04 yield 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:04 return (yield) 21:18:04 ^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:04 item.session._setupstate.setup(item) 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:04 col.setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:04 super().setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:04 self._request._fillfixtures() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:04 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:04 fixturedef = self._get_active_fixturedef(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:04 fixturedef.execute(request=subrequest) 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 21:18:04 self = 21:18:04 request = > 21:18:04 21:18:04 def execute(self, request: SubRequest) -> FixtureValue: 21:18:04 """Return the value of this fixture, executing it if not cached.""" 21:18:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:04 # This needs to be done before checking if we have a cached value, since 21:18:04 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:04 # parametrization, they finalize themselves and fixtures depending on it 21:18:04 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:04 # See #4871 21:18:04 requested_fixtures_that_should_finalize_us = [] 21:18:04 for argname in self.argnames: 21:18:04 fixturedef = request._get_active_fixturedef(argname) 21:18:04 # Saves requested fixtures in a list so we later can add our finalizer 21:18:04 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:04 # down first. This is generally handled by SetupState, but still currently 21:18:04 # needed when this fixture is not parametrized but depends on a parametrized 21:18:04 # fixture. 21:18:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:04 21:18:04 # Check for (and return) cached value/exception. 21:18:04 if self.cached_result is not None: 21:18:04 request_cache_key = self.cache_key(request) 21:18:04 cache_key = self.cached_result[1] 21:18:04 try: 21:18:04 # Attempt to make a normal == check: this might fail for objects 21:18:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:04 cache_hit = bool(request_cache_key == cache_key) 21:18:04 except (ValueError, RuntimeError): 21:18:04 # If the comparison raises, use 'is' as fallback. 21:18:04 cache_hit = request_cache_key is cache_key 21:18:04 21:18:04 if cache_hit: 21:18:04 if self.cached_result[2] is not None: 21:18:04 exc, exc_tb = self.cached_result[2] 21:18:04 raise exc.with_traceback(exc_tb) 21:18:04 else: 21:18:04 return self.cached_result[0] 21:18:04 # We have a previous but differently parametrized fixture instance 21:18:04 # so we need to tear it down before creating a new one. 21:18:04 self.finish(request) 21:18:04 assert self.cached_result is None 21:18:04 21:18:04 # Add finalizer to requested fixtures we saved previously. 21:18:04 # We make sure to do this after checking for cached value to avoid 21:18:04 # adding our finalizer multiple times. (#12135) 21:18:04 finalizer = functools.partial(self.finish, request=request) 21:18:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:04 parent_fixture.addfinalizer(finalizer) 21:18:04 21:18:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:04 # which is executed last. 21:18:04 > assert not self._finalizers 21:18:04 ^^^^^^^^^^^^^^^^^^^^ 21:18:04 E AssertionError 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:04 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 21:18:04 21:18:04 cls = 21:18:04 func = . at 0x7f72a29fb740> 21:18:04 when = 'setup' 21:18:04 reraise = (, ) 21:18:04 21:18:04 @classmethod 21:18:04 def from_call( 21:18:04 cls, 21:18:04 func: Callable[[], TResult], 21:18:04 when: Literal["collect", "setup", "call", "teardown"], 21:18:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:04 ) -> CallInfo[TResult]: 21:18:04 """Call func, wrapping the result in a CallInfo. 21:18:04 21:18:04 :param func: 21:18:04 The function to call. Called without arguments. 21:18:04 :type func: Callable[[], _pytest.runner.TResult] 21:18:04 :param when: 21:18:04 The phase in which the function is called. 21:18:04 :param reraise: 21:18:04 Exception or exceptions that shall propagate if raised by the 21:18:04 function, instead of being wrapped in the CallInfo. 21:18:04 """ 21:18:04 excinfo = None 21:18:04 instant = timing.Instant() 21:18:04 try: 21:18:04 > result: TResult | None = func() 21:18:04 ^^^^^^ 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:04 lambda: runtest_hook(item=item, **kwds), 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:04 yield 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:04 return (yield) 21:18:04 ^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:04 item.session._setupstate.setup(item) 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:04 col.setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:04 super().setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:04 self._request._fillfixtures() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:04 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:04 fixturedef = self._get_active_fixturedef(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:04 fixturedef.execute(request=subrequest) 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 21:18:04 self = 21:18:04 request = > 21:18:04 21:18:04 def execute(self, request: SubRequest) -> FixtureValue: 21:18:04 """Return the value of this fixture, executing it if not cached.""" 21:18:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:04 # This needs to be done before checking if we have a cached value, since 21:18:04 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:04 # parametrization, they finalize themselves and fixtures depending on it 21:18:04 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:04 # See #4871 21:18:04 requested_fixtures_that_should_finalize_us = [] 21:18:04 for argname in self.argnames: 21:18:04 fixturedef = request._get_active_fixturedef(argname) 21:18:04 # Saves requested fixtures in a list so we later can add our finalizer 21:18:04 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:04 # down first. This is generally handled by SetupState, but still currently 21:18:04 # needed when this fixture is not parametrized but depends on a parametrized 21:18:04 # fixture. 21:18:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:04 21:18:04 # Check for (and return) cached value/exception. 21:18:04 if self.cached_result is not None: 21:18:04 request_cache_key = self.cache_key(request) 21:18:04 cache_key = self.cached_result[1] 21:18:04 try: 21:18:04 # Attempt to make a normal == check: this might fail for objects 21:18:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:04 cache_hit = bool(request_cache_key == cache_key) 21:18:04 except (ValueError, RuntimeError): 21:18:04 # If the comparison raises, use 'is' as fallback. 21:18:04 cache_hit = request_cache_key is cache_key 21:18:04 21:18:04 if cache_hit: 21:18:04 if self.cached_result[2] is not None: 21:18:04 exc, exc_tb = self.cached_result[2] 21:18:04 raise exc.with_traceback(exc_tb) 21:18:04 else: 21:18:04 return self.cached_result[0] 21:18:04 # We have a previous but differently parametrized fixture instance 21:18:04 # so we need to tear it down before creating a new one. 21:18:04 self.finish(request) 21:18:04 assert self.cached_result is None 21:18:04 21:18:04 # Add finalizer to requested fixtures we saved previously. 21:18:04 # We make sure to do this after checking for cached value to avoid 21:18:04 # adding our finalizer multiple times. (#12135) 21:18:04 finalizer = functools.partial(self.finish, request=request) 21:18:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:04 parent_fixture.addfinalizer(finalizer) 21:18:04 21:18:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:04 # which is executed last. 21:18:04 > assert not self._finalizers 21:18:04 ^^^^^^^^^^^^^^^^^^^^ 21:18:04 E AssertionError 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:04 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_SRG1_PP7_TXRX _ 21:18:04 21:18:04 cls = 21:18:04 func = . at 0x7f72a1043560> 21:18:04 when = 'setup' 21:18:04 reraise = (, ) 21:18:04 21:18:04 @classmethod 21:18:04 def from_call( 21:18:04 cls, 21:18:04 func: Callable[[], TResult], 21:18:04 when: Literal["collect", "setup", "call", "teardown"], 21:18:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:04 ) -> CallInfo[TResult]: 21:18:04 """Call func, wrapping the result in a CallInfo. 21:18:04 21:18:04 :param func: 21:18:04 The function to call. Called without arguments. 21:18:04 :type func: Callable[[], _pytest.runner.TResult] 21:18:04 :param when: 21:18:04 The phase in which the function is called. 21:18:04 :param reraise: 21:18:04 Exception or exceptions that shall propagate if raised by the 21:18:04 function, instead of being wrapped in the CallInfo. 21:18:04 """ 21:18:04 excinfo = None 21:18:04 instant = timing.Instant() 21:18:04 try: 21:18:04 > result: TResult | None = func() 21:18:04 ^^^^^^ 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:04 lambda: runtest_hook(item=item, **kwds), 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:04 yield 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:04 return (yield) 21:18:04 ^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:04 item.session._setupstate.setup(item) 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:04 col.setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:04 super().setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:04 self._request._fillfixtures() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:04 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:04 fixturedef = self._get_active_fixturedef(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:04 fixturedef.execute(request=subrequest) 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 21:18:04 self = 21:18:04 request = > 21:18:04 21:18:04 def execute(self, request: SubRequest) -> FixtureValue: 21:18:04 """Return the value of this fixture, executing it if not cached.""" 21:18:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:04 # This needs to be done before checking if we have a cached value, since 21:18:04 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:04 # parametrization, they finalize themselves and fixtures depending on it 21:18:04 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:04 # See #4871 21:18:04 requested_fixtures_that_should_finalize_us = [] 21:18:04 for argname in self.argnames: 21:18:04 fixturedef = request._get_active_fixturedef(argname) 21:18:04 # Saves requested fixtures in a list so we later can add our finalizer 21:18:04 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:04 # down first. This is generally handled by SetupState, but still currently 21:18:04 # needed when this fixture is not parametrized but depends on a parametrized 21:18:04 # fixture. 21:18:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:04 21:18:04 # Check for (and return) cached value/exception. 21:18:04 if self.cached_result is not None: 21:18:04 request_cache_key = self.cache_key(request) 21:18:04 cache_key = self.cached_result[1] 21:18:04 try: 21:18:04 # Attempt to make a normal == check: this might fail for objects 21:18:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:04 cache_hit = bool(request_cache_key == cache_key) 21:18:04 except (ValueError, RuntimeError): 21:18:04 # If the comparison raises, use 'is' as fallback. 21:18:04 cache_hit = request_cache_key is cache_key 21:18:04 21:18:04 if cache_hit: 21:18:04 if self.cached_result[2] is not None: 21:18:04 exc, exc_tb = self.cached_result[2] 21:18:04 raise exc.with_traceback(exc_tb) 21:18:04 else: 21:18:04 return self.cached_result[0] 21:18:04 # We have a previous but differently parametrized fixture instance 21:18:04 # so we need to tear it down before creating a new one. 21:18:04 self.finish(request) 21:18:04 assert self.cached_result is None 21:18:04 21:18:04 # Add finalizer to requested fixtures we saved previously. 21:18:04 # We make sure to do this after checking for cached value to avoid 21:18:04 # adding our finalizer multiple times. (#12135) 21:18:04 finalizer = functools.partial(self.finish, request=request) 21:18:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:04 parent_fixture.addfinalizer(finalizer) 21:18:04 21:18:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:04 # which is executed last. 21:18:04 > assert not self._finalizers 21:18:04 ^^^^^^^^^^^^^^^^^^^^ 21:18:04 E AssertionError 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:04 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG3_PP1_TXRX _ 21:18:04 21:18:04 cls = 21:18:04 func = . at 0x7f729f8753a0> 21:18:04 when = 'setup' 21:18:04 reraise = (, ) 21:18:04 21:18:04 @classmethod 21:18:04 def from_call( 21:18:04 cls, 21:18:04 func: Callable[[], TResult], 21:18:04 when: Literal["collect", "setup", "call", "teardown"], 21:18:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:04 ) -> CallInfo[TResult]: 21:18:04 """Call func, wrapping the result in a CallInfo. 21:18:04 21:18:04 :param func: 21:18:04 The function to call. Called without arguments. 21:18:04 :type func: Callable[[], _pytest.runner.TResult] 21:18:04 :param when: 21:18:04 The phase in which the function is called. 21:18:04 :param reraise: 21:18:04 Exception or exceptions that shall propagate if raised by the 21:18:04 function, instead of being wrapped in the CallInfo. 21:18:04 """ 21:18:04 excinfo = None 21:18:04 instant = timing.Instant() 21:18:04 try: 21:18:04 > result: TResult | None = func() 21:18:04 ^^^^^^ 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:04 lambda: runtest_hook(item=item, **kwds), 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:04 yield 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:04 return (yield) 21:18:04 ^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:04 item.session._setupstate.setup(item) 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:04 col.setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:04 super().setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:04 self._request._fillfixtures() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:04 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:04 fixturedef = self._get_active_fixturedef(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:04 fixturedef.execute(request=subrequest) 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 21:18:04 self = 21:18:04 request = > 21:18:04 21:18:04 def execute(self, request: SubRequest) -> FixtureValue: 21:18:04 """Return the value of this fixture, executing it if not cached.""" 21:18:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:04 # This needs to be done before checking if we have a cached value, since 21:18:04 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:04 # parametrization, they finalize themselves and fixtures depending on it 21:18:04 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:04 # See #4871 21:18:04 requested_fixtures_that_should_finalize_us = [] 21:18:04 for argname in self.argnames: 21:18:04 fixturedef = request._get_active_fixturedef(argname) 21:18:04 # Saves requested fixtures in a list so we later can add our finalizer 21:18:04 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:04 # down first. This is generally handled by SetupState, but still currently 21:18:04 # needed when this fixture is not parametrized but depends on a parametrized 21:18:04 # fixture. 21:18:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:04 21:18:04 # Check for (and return) cached value/exception. 21:18:04 if self.cached_result is not None: 21:18:04 request_cache_key = self.cache_key(request) 21:18:04 cache_key = self.cached_result[1] 21:18:04 try: 21:18:04 # Attempt to make a normal == check: this might fail for objects 21:18:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:04 cache_hit = bool(request_cache_key == cache_key) 21:18:04 except (ValueError, RuntimeError): 21:18:04 # If the comparison raises, use 'is' as fallback. 21:18:04 cache_hit = request_cache_key is cache_key 21:18:04 21:18:04 if cache_hit: 21:18:04 if self.cached_result[2] is not None: 21:18:04 exc, exc_tb = self.cached_result[2] 21:18:04 raise exc.with_traceback(exc_tb) 21:18:04 else: 21:18:04 return self.cached_result[0] 21:18:04 # We have a previous but differently parametrized fixture instance 21:18:04 # so we need to tear it down before creating a new one. 21:18:04 self.finish(request) 21:18:04 assert self.cached_result is None 21:18:04 21:18:04 # Add finalizer to requested fixtures we saved previously. 21:18:04 # We make sure to do this after checking for cached value to avoid 21:18:04 # adding our finalizer multiple times. (#12135) 21:18:04 finalizer = functools.partial(self.finish, request=request) 21:18:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:04 parent_fixture.addfinalizer(finalizer) 21:18:04 21:18:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:04 # which is executed last. 21:18:04 > assert not self._finalizers 21:18:04 ^^^^^^^^^^^^^^^^^^^^ 21:18:04 E AssertionError 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:04 _ ERROR at setup of TestTransportPCEPortmapping.test_07_xpdr_device_connection _ 21:18:04 21:18:04 cls = 21:18:04 func = . at 0x7f729f875580> 21:18:04 when = 'setup' 21:18:04 reraise = (, ) 21:18:04 21:18:04 @classmethod 21:18:04 def from_call( 21:18:04 cls, 21:18:04 func: Callable[[], TResult], 21:18:04 when: Literal["collect", "setup", "call", "teardown"], 21:18:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:04 ) -> CallInfo[TResult]: 21:18:04 """Call func, wrapping the result in a CallInfo. 21:18:04 21:18:04 :param func: 21:18:04 The function to call. Called without arguments. 21:18:04 :type func: Callable[[], _pytest.runner.TResult] 21:18:04 :param when: 21:18:04 The phase in which the function is called. 21:18:04 :param reraise: 21:18:04 Exception or exceptions that shall propagate if raised by the 21:18:04 function, instead of being wrapped in the CallInfo. 21:18:04 """ 21:18:04 excinfo = None 21:18:04 instant = timing.Instant() 21:18:04 try: 21:18:04 > result: TResult | None = func() 21:18:04 ^^^^^^ 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:04 lambda: runtest_hook(item=item, **kwds), 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:04 yield 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:04 return (yield) 21:18:04 ^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:04 item.session._setupstate.setup(item) 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:04 col.setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:04 super().setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:04 self._request._fillfixtures() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:04 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:04 fixturedef = self._get_active_fixturedef(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:04 fixturedef.execute(request=subrequest) 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 21:18:04 self = 21:18:04 request = > 21:18:04 21:18:04 def execute(self, request: SubRequest) -> FixtureValue: 21:18:04 """Return the value of this fixture, executing it if not cached.""" 21:18:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:04 # This needs to be done before checking if we have a cached value, since 21:18:04 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:04 # parametrization, they finalize themselves and fixtures depending on it 21:18:04 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:04 # See #4871 21:18:04 requested_fixtures_that_should_finalize_us = [] 21:18:04 for argname in self.argnames: 21:18:04 fixturedef = request._get_active_fixturedef(argname) 21:18:04 # Saves requested fixtures in a list so we later can add our finalizer 21:18:04 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:04 # down first. This is generally handled by SetupState, but still currently 21:18:04 # needed when this fixture is not parametrized but depends on a parametrized 21:18:04 # fixture. 21:18:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:04 21:18:04 # Check for (and return) cached value/exception. 21:18:04 if self.cached_result is not None: 21:18:04 request_cache_key = self.cache_key(request) 21:18:04 cache_key = self.cached_result[1] 21:18:04 try: 21:18:04 # Attempt to make a normal == check: this might fail for objects 21:18:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:04 cache_hit = bool(request_cache_key == cache_key) 21:18:04 except (ValueError, RuntimeError): 21:18:04 # If the comparison raises, use 'is' as fallback. 21:18:04 cache_hit = request_cache_key is cache_key 21:18:04 21:18:04 if cache_hit: 21:18:04 if self.cached_result[2] is not None: 21:18:04 exc, exc_tb = self.cached_result[2] 21:18:04 raise exc.with_traceback(exc_tb) 21:18:04 else: 21:18:04 return self.cached_result[0] 21:18:04 # We have a previous but differently parametrized fixture instance 21:18:04 # so we need to tear it down before creating a new one. 21:18:04 self.finish(request) 21:18:04 assert self.cached_result is None 21:18:04 21:18:04 # Add finalizer to requested fixtures we saved previously. 21:18:04 # We make sure to do this after checking for cached value to avoid 21:18:04 # adding our finalizer multiple times. (#12135) 21:18:04 finalizer = functools.partial(self.finish, request=request) 21:18:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:04 parent_fixture.addfinalizer(finalizer) 21:18:04 21:18:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:04 # which is executed last. 21:18:04 > assert not self._finalizers 21:18:04 ^^^^^^^^^^^^^^^^^^^^ 21:18:04 E AssertionError 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:04 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connected __ 21:18:04 21:18:04 cls = 21:18:04 func = . at 0x7f729f8a7600> 21:18:04 when = 'setup' 21:18:04 reraise = (, ) 21:18:04 21:18:04 @classmethod 21:18:04 def from_call( 21:18:04 cls, 21:18:04 func: Callable[[], TResult], 21:18:04 when: Literal["collect", "setup", "call", "teardown"], 21:18:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:04 ) -> CallInfo[TResult]: 21:18:04 """Call func, wrapping the result in a CallInfo. 21:18:04 21:18:04 :param func: 21:18:04 The function to call. Called without arguments. 21:18:04 :type func: Callable[[], _pytest.runner.TResult] 21:18:04 :param when: 21:18:04 The phase in which the function is called. 21:18:04 :param reraise: 21:18:04 Exception or exceptions that shall propagate if raised by the 21:18:04 function, instead of being wrapped in the CallInfo. 21:18:04 """ 21:18:04 excinfo = None 21:18:04 instant = timing.Instant() 21:18:04 try: 21:18:04 > result: TResult | None = func() 21:18:04 ^^^^^^ 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:04 lambda: runtest_hook(item=item, **kwds), 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:04 yield 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:04 return (yield) 21:18:04 ^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:04 item.session._setupstate.setup(item) 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:04 col.setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:04 super().setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:04 self._request._fillfixtures() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:04 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:04 fixturedef = self._get_active_fixturedef(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:04 fixturedef.execute(request=subrequest) 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 21:18:04 self = 21:18:04 request = > 21:18:04 21:18:04 def execute(self, request: SubRequest) -> FixtureValue: 21:18:04 """Return the value of this fixture, executing it if not cached.""" 21:18:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:04 # This needs to be done before checking if we have a cached value, since 21:18:04 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:04 # parametrization, they finalize themselves and fixtures depending on it 21:18:04 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:04 # See #4871 21:18:04 requested_fixtures_that_should_finalize_us = [] 21:18:04 for argname in self.argnames: 21:18:04 fixturedef = request._get_active_fixturedef(argname) 21:18:04 # Saves requested fixtures in a list so we later can add our finalizer 21:18:04 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:04 # down first. This is generally handled by SetupState, but still currently 21:18:04 # needed when this fixture is not parametrized but depends on a parametrized 21:18:04 # fixture. 21:18:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:04 21:18:04 # Check for (and return) cached value/exception. 21:18:04 if self.cached_result is not None: 21:18:04 request_cache_key = self.cache_key(request) 21:18:04 cache_key = self.cached_result[1] 21:18:04 try: 21:18:04 # Attempt to make a normal == check: this might fail for objects 21:18:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:04 cache_hit = bool(request_cache_key == cache_key) 21:18:04 except (ValueError, RuntimeError): 21:18:04 # If the comparison raises, use 'is' as fallback. 21:18:04 cache_hit = request_cache_key is cache_key 21:18:04 21:18:04 if cache_hit: 21:18:04 if self.cached_result[2] is not None: 21:18:04 exc, exc_tb = self.cached_result[2] 21:18:04 raise exc.with_traceback(exc_tb) 21:18:04 else: 21:18:04 return self.cached_result[0] 21:18:04 # We have a previous but differently parametrized fixture instance 21:18:04 # so we need to tear it down before creating a new one. 21:18:04 self.finish(request) 21:18:04 assert self.cached_result is None 21:18:04 21:18:04 # Add finalizer to requested fixtures we saved previously. 21:18:04 # We make sure to do this after checking for cached value to avoid 21:18:04 # adding our finalizer multiple times. (#12135) 21:18:04 finalizer = functools.partial(self.finish, request=request) 21:18:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:04 parent_fixture.addfinalizer(finalizer) 21:18:04 21:18:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:04 # which is executed last. 21:18:04 > assert not self._finalizers 21:18:04 ^^^^^^^^^^^^^^^^^^^^ 21:18:04 E AssertionError 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:04 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_portmapping_info __ 21:18:04 21:18:04 cls = 21:18:04 func = . at 0x7f729f8a68e0> 21:18:04 when = 'setup' 21:18:04 reraise = (, ) 21:18:04 21:18:04 @classmethod 21:18:04 def from_call( 21:18:04 cls, 21:18:04 func: Callable[[], TResult], 21:18:04 when: Literal["collect", "setup", "call", "teardown"], 21:18:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:04 ) -> CallInfo[TResult]: 21:18:04 """Call func, wrapping the result in a CallInfo. 21:18:04 21:18:04 :param func: 21:18:04 The function to call. Called without arguments. 21:18:04 :type func: Callable[[], _pytest.runner.TResult] 21:18:04 :param when: 21:18:04 The phase in which the function is called. 21:18:04 :param reraise: 21:18:04 Exception or exceptions that shall propagate if raised by the 21:18:04 function, instead of being wrapped in the CallInfo. 21:18:04 """ 21:18:04 excinfo = None 21:18:04 instant = timing.Instant() 21:18:04 try: 21:18:04 > result: TResult | None = func() 21:18:04 ^^^^^^ 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:04 lambda: runtest_hook(item=item, **kwds), 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:04 yield 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:04 return (yield) 21:18:04 ^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:04 item.session._setupstate.setup(item) 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:04 col.setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:04 super().setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:04 self._request._fillfixtures() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:04 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:04 fixturedef = self._get_active_fixturedef(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:04 fixturedef.execute(request=subrequest) 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 21:18:04 self = 21:18:04 request = > 21:18:04 21:18:04 def execute(self, request: SubRequest) -> FixtureValue: 21:18:04 """Return the value of this fixture, executing it if not cached.""" 21:18:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:04 # This needs to be done before checking if we have a cached value, since 21:18:04 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:04 # parametrization, they finalize themselves and fixtures depending on it 21:18:04 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:04 # See #4871 21:18:04 requested_fixtures_that_should_finalize_us = [] 21:18:04 for argname in self.argnames: 21:18:04 fixturedef = request._get_active_fixturedef(argname) 21:18:04 # Saves requested fixtures in a list so we later can add our finalizer 21:18:04 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:04 # down first. This is generally handled by SetupState, but still currently 21:18:04 # needed when this fixture is not parametrized but depends on a parametrized 21:18:04 # fixture. 21:18:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:04 21:18:04 # Check for (and return) cached value/exception. 21:18:04 if self.cached_result is not None: 21:18:04 request_cache_key = self.cache_key(request) 21:18:04 cache_key = self.cached_result[1] 21:18:04 try: 21:18:04 # Attempt to make a normal == check: this might fail for objects 21:18:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:04 cache_hit = bool(request_cache_key == cache_key) 21:18:04 except (ValueError, RuntimeError): 21:18:04 # If the comparison raises, use 'is' as fallback. 21:18:04 cache_hit = request_cache_key is cache_key 21:18:04 21:18:04 if cache_hit: 21:18:04 if self.cached_result[2] is not None: 21:18:04 exc, exc_tb = self.cached_result[2] 21:18:04 raise exc.with_traceback(exc_tb) 21:18:04 else: 21:18:04 return self.cached_result[0] 21:18:04 # We have a previous but differently parametrized fixture instance 21:18:04 # so we need to tear it down before creating a new one. 21:18:04 self.finish(request) 21:18:04 assert self.cached_result is None 21:18:04 21:18:04 # Add finalizer to requested fixtures we saved previously. 21:18:04 # We make sure to do this after checking for cached value to avoid 21:18:04 # adding our finalizer multiple times. (#12135) 21:18:04 finalizer = functools.partial(self.finish, request=request) 21:18:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:04 parent_fixture.addfinalizer(finalizer) 21:18:04 21:18:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:04 # which is executed last. 21:18:04 > assert not self._finalizers 21:18:04 ^^^^^^^^^^^^^^^^^^^^ 21:18:04 E AssertionError 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:04 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_NETWORK1 _ 21:18:04 21:18:04 cls = 21:18:04 func = . at 0x7f729f8a6de0> 21:18:04 when = 'setup' 21:18:04 reraise = (, ) 21:18:04 21:18:04 @classmethod 21:18:04 def from_call( 21:18:04 cls, 21:18:04 func: Callable[[], TResult], 21:18:04 when: Literal["collect", "setup", "call", "teardown"], 21:18:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:04 ) -> CallInfo[TResult]: 21:18:04 """Call func, wrapping the result in a CallInfo. 21:18:04 21:18:04 :param func: 21:18:04 The function to call. Called without arguments. 21:18:04 :type func: Callable[[], _pytest.runner.TResult] 21:18:04 :param when: 21:18:04 The phase in which the function is called. 21:18:04 :param reraise: 21:18:04 Exception or exceptions that shall propagate if raised by the 21:18:04 function, instead of being wrapped in the CallInfo. 21:18:04 """ 21:18:04 excinfo = None 21:18:04 instant = timing.Instant() 21:18:04 try: 21:18:04 > result: TResult | None = func() 21:18:04 ^^^^^^ 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:04 lambda: runtest_hook(item=item, **kwds), 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:04 yield 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:04 return (yield) 21:18:04 ^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:04 item.session._setupstate.setup(item) 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:04 col.setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:04 super().setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:04 self._request._fillfixtures() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:04 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:04 fixturedef = self._get_active_fixturedef(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:04 fixturedef.execute(request=subrequest) 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 21:18:04 self = 21:18:04 request = > 21:18:04 21:18:04 def execute(self, request: SubRequest) -> FixtureValue: 21:18:04 """Return the value of this fixture, executing it if not cached.""" 21:18:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:04 # This needs to be done before checking if we have a cached value, since 21:18:04 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:04 # parametrization, they finalize themselves and fixtures depending on it 21:18:04 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:04 # See #4871 21:18:04 requested_fixtures_that_should_finalize_us = [] 21:18:04 for argname in self.argnames: 21:18:04 fixturedef = request._get_active_fixturedef(argname) 21:18:04 # Saves requested fixtures in a list so we later can add our finalizer 21:18:04 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:04 # down first. This is generally handled by SetupState, but still currently 21:18:04 # needed when this fixture is not parametrized but depends on a parametrized 21:18:04 # fixture. 21:18:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:04 21:18:04 # Check for (and return) cached value/exception. 21:18:04 if self.cached_result is not None: 21:18:04 request_cache_key = self.cache_key(request) 21:18:04 cache_key = self.cached_result[1] 21:18:04 try: 21:18:04 # Attempt to make a normal == check: this might fail for objects 21:18:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:04 cache_hit = bool(request_cache_key == cache_key) 21:18:04 except (ValueError, RuntimeError): 21:18:04 # If the comparison raises, use 'is' as fallback. 21:18:04 cache_hit = request_cache_key is cache_key 21:18:04 21:18:04 if cache_hit: 21:18:04 if self.cached_result[2] is not None: 21:18:04 exc, exc_tb = self.cached_result[2] 21:18:04 raise exc.with_traceback(exc_tb) 21:18:04 else: 21:18:04 return self.cached_result[0] 21:18:04 # We have a previous but differently parametrized fixture instance 21:18:04 # so we need to tear it down before creating a new one. 21:18:04 self.finish(request) 21:18:04 assert self.cached_result is None 21:18:04 21:18:04 # Add finalizer to requested fixtures we saved previously. 21:18:04 # We make sure to do this after checking for cached value to avoid 21:18:04 # adding our finalizer multiple times. (#12135) 21:18:04 finalizer = functools.partial(self.finish, request=request) 21:18:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:04 parent_fixture.addfinalizer(finalizer) 21:18:04 21:18:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:04 # which is executed last. 21:18:04 > assert not self._finalizers 21:18:04 ^^^^^^^^^^^^^^^^^^^^ 21:18:04 E AssertionError 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:04 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK2 _ 21:18:04 21:18:04 cls = 21:18:04 func = . at 0x7f729f8a7600> 21:18:04 when = 'setup' 21:18:04 reraise = (, ) 21:18:04 21:18:04 @classmethod 21:18:04 def from_call( 21:18:04 cls, 21:18:04 func: Callable[[], TResult], 21:18:04 when: Literal["collect", "setup", "call", "teardown"], 21:18:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:04 ) -> CallInfo[TResult]: 21:18:04 """Call func, wrapping the result in a CallInfo. 21:18:04 21:18:04 :param func: 21:18:04 The function to call. Called without arguments. 21:18:04 :type func: Callable[[], _pytest.runner.TResult] 21:18:04 :param when: 21:18:04 The phase in which the function is called. 21:18:04 :param reraise: 21:18:04 Exception or exceptions that shall propagate if raised by the 21:18:04 function, instead of being wrapped in the CallInfo. 21:18:04 """ 21:18:04 excinfo = None 21:18:04 instant = timing.Instant() 21:18:04 try: 21:18:04 > result: TResult | None = func() 21:18:04 ^^^^^^ 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:04 lambda: runtest_hook(item=item, **kwds), 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:04 yield 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:04 return (yield) 21:18:04 ^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:04 item.session._setupstate.setup(item) 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:04 col.setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:04 super().setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:04 self._request._fillfixtures() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:04 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:04 fixturedef = self._get_active_fixturedef(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:04 fixturedef.execute(request=subrequest) 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 21:18:04 self = 21:18:04 request = > 21:18:04 21:18:04 def execute(self, request: SubRequest) -> FixtureValue: 21:18:04 """Return the value of this fixture, executing it if not cached.""" 21:18:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:04 # This needs to be done before checking if we have a cached value, since 21:18:04 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:04 # parametrization, they finalize themselves and fixtures depending on it 21:18:04 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:04 # See #4871 21:18:04 requested_fixtures_that_should_finalize_us = [] 21:18:04 for argname in self.argnames: 21:18:04 fixturedef = request._get_active_fixturedef(argname) 21:18:04 # Saves requested fixtures in a list so we later can add our finalizer 21:18:04 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:04 # down first. This is generally handled by SetupState, but still currently 21:18:04 # needed when this fixture is not parametrized but depends on a parametrized 21:18:04 # fixture. 21:18:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:04 21:18:04 # Check for (and return) cached value/exception. 21:18:04 if self.cached_result is not None: 21:18:04 request_cache_key = self.cache_key(request) 21:18:04 cache_key = self.cached_result[1] 21:18:04 try: 21:18:04 # Attempt to make a normal == check: this might fail for objects 21:18:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:04 cache_hit = bool(request_cache_key == cache_key) 21:18:04 except (ValueError, RuntimeError): 21:18:04 # If the comparison raises, use 'is' as fallback. 21:18:04 cache_hit = request_cache_key is cache_key 21:18:04 21:18:04 if cache_hit: 21:18:04 if self.cached_result[2] is not None: 21:18:04 exc, exc_tb = self.cached_result[2] 21:18:04 raise exc.with_traceback(exc_tb) 21:18:04 else: 21:18:04 return self.cached_result[0] 21:18:04 # We have a previous but differently parametrized fixture instance 21:18:04 # so we need to tear it down before creating a new one. 21:18:04 self.finish(request) 21:18:04 assert self.cached_result is None 21:18:04 21:18:04 # Add finalizer to requested fixtures we saved previously. 21:18:04 # We make sure to do this after checking for cached value to avoid 21:18:04 # adding our finalizer multiple times. (#12135) 21:18:04 finalizer = functools.partial(self.finish, request=request) 21:18:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:04 parent_fixture.addfinalizer(finalizer) 21:18:04 21:18:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:04 # which is executed last. 21:18:04 > assert not self._finalizers 21:18:04 ^^^^^^^^^^^^^^^^^^^^ 21:18:04 E AssertionError 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:04 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_CLIENT1 _ 21:18:04 21:18:04 cls = 21:18:04 func = . at 0x7f729f8a6f20> 21:18:04 when = 'setup' 21:18:04 reraise = (, ) 21:18:04 21:18:04 @classmethod 21:18:04 def from_call( 21:18:04 cls, 21:18:04 func: Callable[[], TResult], 21:18:04 when: Literal["collect", "setup", "call", "teardown"], 21:18:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:04 ) -> CallInfo[TResult]: 21:18:04 """Call func, wrapping the result in a CallInfo. 21:18:04 21:18:04 :param func: 21:18:04 The function to call. Called without arguments. 21:18:04 :type func: Callable[[], _pytest.runner.TResult] 21:18:04 :param when: 21:18:04 The phase in which the function is called. 21:18:04 :param reraise: 21:18:04 Exception or exceptions that shall propagate if raised by the 21:18:04 function, instead of being wrapped in the CallInfo. 21:18:04 """ 21:18:04 excinfo = None 21:18:04 instant = timing.Instant() 21:18:04 try: 21:18:04 > result: TResult | None = func() 21:18:04 ^^^^^^ 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:04 lambda: runtest_hook(item=item, **kwds), 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:04 yield 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:04 return (yield) 21:18:04 ^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:04 item.session._setupstate.setup(item) 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:04 col.setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:04 super().setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:04 self._request._fillfixtures() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:04 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:04 fixturedef = self._get_active_fixturedef(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:04 fixturedef.execute(request=subrequest) 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 21:18:04 self = 21:18:04 request = > 21:18:04 21:18:04 def execute(self, request: SubRequest) -> FixtureValue: 21:18:04 """Return the value of this fixture, executing it if not cached.""" 21:18:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:04 # This needs to be done before checking if we have a cached value, since 21:18:04 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:04 # parametrization, they finalize themselves and fixtures depending on it 21:18:04 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:04 # See #4871 21:18:04 requested_fixtures_that_should_finalize_us = [] 21:18:04 for argname in self.argnames: 21:18:04 fixturedef = request._get_active_fixturedef(argname) 21:18:04 # Saves requested fixtures in a list so we later can add our finalizer 21:18:04 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:04 # down first. This is generally handled by SetupState, but still currently 21:18:04 # needed when this fixture is not parametrized but depends on a parametrized 21:18:04 # fixture. 21:18:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:04 21:18:04 # Check for (and return) cached value/exception. 21:18:04 if self.cached_result is not None: 21:18:04 request_cache_key = self.cache_key(request) 21:18:04 cache_key = self.cached_result[1] 21:18:04 try: 21:18:04 # Attempt to make a normal == check: this might fail for objects 21:18:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:04 cache_hit = bool(request_cache_key == cache_key) 21:18:04 except (ValueError, RuntimeError): 21:18:04 # If the comparison raises, use 'is' as fallback. 21:18:04 cache_hit = request_cache_key is cache_key 21:18:04 21:18:04 if cache_hit: 21:18:04 if self.cached_result[2] is not None: 21:18:04 exc, exc_tb = self.cached_result[2] 21:18:04 raise exc.with_traceback(exc_tb) 21:18:04 else: 21:18:04 return self.cached_result[0] 21:18:04 # We have a previous but differently parametrized fixture instance 21:18:04 # so we need to tear it down before creating a new one. 21:18:04 self.finish(request) 21:18:04 assert self.cached_result is None 21:18:04 21:18:04 # Add finalizer to requested fixtures we saved previously. 21:18:04 # We make sure to do this after checking for cached value to avoid 21:18:04 # adding our finalizer multiple times. (#12135) 21:18:04 finalizer = functools.partial(self.finish, request=request) 21:18:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:04 parent_fixture.addfinalizer(finalizer) 21:18:04 21:18:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:04 # which is executed last. 21:18:04 > assert not self._finalizers 21:18:04 ^^^^^^^^^^^^^^^^^^^^ 21:18:04 E AssertionError 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:04 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_CLIENT2 _ 21:18:04 21:18:04 cls = 21:18:04 func = . at 0x7f729f875580> 21:18:04 when = 'setup' 21:18:04 reraise = (, ) 21:18:04 21:18:04 @classmethod 21:18:04 def from_call( 21:18:04 cls, 21:18:04 func: Callable[[], TResult], 21:18:04 when: Literal["collect", "setup", "call", "teardown"], 21:18:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:04 ) -> CallInfo[TResult]: 21:18:04 """Call func, wrapping the result in a CallInfo. 21:18:04 21:18:04 :param func: 21:18:04 The function to call. Called without arguments. 21:18:04 :type func: Callable[[], _pytest.runner.TResult] 21:18:04 :param when: 21:18:04 The phase in which the function is called. 21:18:04 :param reraise: 21:18:04 Exception or exceptions that shall propagate if raised by the 21:18:04 function, instead of being wrapped in the CallInfo. 21:18:04 """ 21:18:04 excinfo = None 21:18:04 instant = timing.Instant() 21:18:04 try: 21:18:04 > result: TResult | None = func() 21:18:04 ^^^^^^ 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:04 lambda: runtest_hook(item=item, **kwds), 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:04 yield 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:04 return (yield) 21:18:04 ^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:04 item.session._setupstate.setup(item) 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:04 col.setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:04 super().setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:04 self._request._fillfixtures() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:04 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:04 fixturedef = self._get_active_fixturedef(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:04 fixturedef.execute(request=subrequest) 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 21:18:04 self = 21:18:04 request = > 21:18:04 21:18:04 def execute(self, request: SubRequest) -> FixtureValue: 21:18:04 """Return the value of this fixture, executing it if not cached.""" 21:18:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:04 # This needs to be done before checking if we have a cached value, since 21:18:04 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:04 # parametrization, they finalize themselves and fixtures depending on it 21:18:04 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:04 # See #4871 21:18:04 requested_fixtures_that_should_finalize_us = [] 21:18:04 for argname in self.argnames: 21:18:04 fixturedef = request._get_active_fixturedef(argname) 21:18:04 # Saves requested fixtures in a list so we later can add our finalizer 21:18:04 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:04 # down first. This is generally handled by SetupState, but still currently 21:18:04 # needed when this fixture is not parametrized but depends on a parametrized 21:18:04 # fixture. 21:18:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:04 21:18:04 # Check for (and return) cached value/exception. 21:18:04 if self.cached_result is not None: 21:18:04 request_cache_key = self.cache_key(request) 21:18:04 cache_key = self.cached_result[1] 21:18:04 try: 21:18:04 # Attempt to make a normal == check: this might fail for objects 21:18:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:04 cache_hit = bool(request_cache_key == cache_key) 21:18:04 except (ValueError, RuntimeError): 21:18:04 # If the comparison raises, use 'is' as fallback. 21:18:04 cache_hit = request_cache_key is cache_key 21:18:04 21:18:04 if cache_hit: 21:18:04 if self.cached_result[2] is not None: 21:18:04 exc, exc_tb = self.cached_result[2] 21:18:04 raise exc.with_traceback(exc_tb) 21:18:04 else: 21:18:04 return self.cached_result[0] 21:18:04 # We have a previous but differently parametrized fixture instance 21:18:04 # so we need to tear it down before creating a new one. 21:18:04 self.finish(request) 21:18:04 assert self.cached_result is None 21:18:04 21:18:04 # Add finalizer to requested fixtures we saved previously. 21:18:04 # We make sure to do this after checking for cached value to avoid 21:18:04 # adding our finalizer multiple times. (#12135) 21:18:04 finalizer = functools.partial(self.finish, request=request) 21:18:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:04 parent_fixture.addfinalizer(finalizer) 21:18:04 21:18:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:04 # which is executed last. 21:18:04 > assert not self._finalizers 21:18:04 ^^^^^^^^^^^^^^^^^^^^ 21:18:04 E AssertionError 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:04 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_CLIENT3 _ 21:18:04 21:18:04 cls = 21:18:04 func = . at 0x7f729f8a6de0> 21:18:04 when = 'setup' 21:18:04 reraise = (, ) 21:18:04 21:18:04 @classmethod 21:18:04 def from_call( 21:18:04 cls, 21:18:04 func: Callable[[], TResult], 21:18:04 when: Literal["collect", "setup", "call", "teardown"], 21:18:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:04 ) -> CallInfo[TResult]: 21:18:04 """Call func, wrapping the result in a CallInfo. 21:18:04 21:18:04 :param func: 21:18:04 The function to call. Called without arguments. 21:18:04 :type func: Callable[[], _pytest.runner.TResult] 21:18:04 :param when: 21:18:04 The phase in which the function is called. 21:18:04 :param reraise: 21:18:04 Exception or exceptions that shall propagate if raised by the 21:18:04 function, instead of being wrapped in the CallInfo. 21:18:04 """ 21:18:04 excinfo = None 21:18:04 instant = timing.Instant() 21:18:04 try: 21:18:04 > result: TResult | None = func() 21:18:04 ^^^^^^ 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:04 lambda: runtest_hook(item=item, **kwds), 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:04 yield 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:04 return (yield) 21:18:04 ^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:04 item.session._setupstate.setup(item) 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:04 col.setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:04 super().setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:04 self._request._fillfixtures() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:04 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:04 fixturedef = self._get_active_fixturedef(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:04 fixturedef.execute(request=subrequest) 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 21:18:04 self = 21:18:04 request = > 21:18:04 21:18:04 def execute(self, request: SubRequest) -> FixtureValue: 21:18:04 """Return the value of this fixture, executing it if not cached.""" 21:18:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:04 # This needs to be done before checking if we have a cached value, since 21:18:04 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:04 # parametrization, they finalize themselves and fixtures depending on it 21:18:04 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:04 # See #4871 21:18:04 requested_fixtures_that_should_finalize_us = [] 21:18:04 for argname in self.argnames: 21:18:04 fixturedef = request._get_active_fixturedef(argname) 21:18:04 # Saves requested fixtures in a list so we later can add our finalizer 21:18:04 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:04 # down first. This is generally handled by SetupState, but still currently 21:18:04 # needed when this fixture is not parametrized but depends on a parametrized 21:18:04 # fixture. 21:18:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:04 21:18:04 # Check for (and return) cached value/exception. 21:18:04 if self.cached_result is not None: 21:18:04 request_cache_key = self.cache_key(request) 21:18:04 cache_key = self.cached_result[1] 21:18:04 try: 21:18:04 # Attempt to make a normal == check: this might fail for objects 21:18:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:04 cache_hit = bool(request_cache_key == cache_key) 21:18:04 except (ValueError, RuntimeError): 21:18:04 # If the comparison raises, use 'is' as fallback. 21:18:04 cache_hit = request_cache_key is cache_key 21:18:04 21:18:04 if cache_hit: 21:18:04 if self.cached_result[2] is not None: 21:18:04 exc, exc_tb = self.cached_result[2] 21:18:04 raise exc.with_traceback(exc_tb) 21:18:04 else: 21:18:04 return self.cached_result[0] 21:18:04 # We have a previous but differently parametrized fixture instance 21:18:04 # so we need to tear it down before creating a new one. 21:18:04 self.finish(request) 21:18:04 assert self.cached_result is None 21:18:04 21:18:04 # Add finalizer to requested fixtures we saved previously. 21:18:04 # We make sure to do this after checking for cached value to avoid 21:18:04 # adding our finalizer multiple times. (#12135) 21:18:04 finalizer = functools.partial(self.finish, request=request) 21:18:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:04 parent_fixture.addfinalizer(finalizer) 21:18:04 21:18:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:04 # which is executed last. 21:18:04 > assert not self._finalizers 21:18:04 ^^^^^^^^^^^^^^^^^^^^ 21:18:04 E AssertionError 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:04 _ ERROR at setup of TestTransportPCEPortmapping.test_15_xpdr_portmapping_CLIENT4 _ 21:18:04 21:18:04 cls = 21:18:04 func = . at 0x7f729f8a6f20> 21:18:04 when = 'setup' 21:18:04 reraise = (, ) 21:18:04 21:18:04 @classmethod 21:18:04 def from_call( 21:18:04 cls, 21:18:04 func: Callable[[], TResult], 21:18:04 when: Literal["collect", "setup", "call", "teardown"], 21:18:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:04 ) -> CallInfo[TResult]: 21:18:04 """Call func, wrapping the result in a CallInfo. 21:18:04 21:18:04 :param func: 21:18:04 The function to call. Called without arguments. 21:18:04 :type func: Callable[[], _pytest.runner.TResult] 21:18:04 :param when: 21:18:04 The phase in which the function is called. 21:18:04 :param reraise: 21:18:04 Exception or exceptions that shall propagate if raised by the 21:18:04 function, instead of being wrapped in the CallInfo. 21:18:04 """ 21:18:04 excinfo = None 21:18:04 instant = timing.Instant() 21:18:04 try: 21:18:04 > result: TResult | None = func() 21:18:04 ^^^^^^ 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:04 lambda: runtest_hook(item=item, **kwds), 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:04 yield 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:04 return (yield) 21:18:04 ^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:04 item.session._setupstate.setup(item) 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:04 col.setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:04 super().setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:04 self._request._fillfixtures() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:04 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:04 fixturedef = self._get_active_fixturedef(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:04 fixturedef.execute(request=subrequest) 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 21:18:04 self = 21:18:04 request = > 21:18:04 21:18:04 def execute(self, request: SubRequest) -> FixtureValue: 21:18:04 """Return the value of this fixture, executing it if not cached.""" 21:18:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:04 # This needs to be done before checking if we have a cached value, since 21:18:04 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:04 # parametrization, they finalize themselves and fixtures depending on it 21:18:04 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:04 # See #4871 21:18:04 requested_fixtures_that_should_finalize_us = [] 21:18:04 for argname in self.argnames: 21:18:04 fixturedef = request._get_active_fixturedef(argname) 21:18:04 # Saves requested fixtures in a list so we later can add our finalizer 21:18:04 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:04 # down first. This is generally handled by SetupState, but still currently 21:18:04 # needed when this fixture is not parametrized but depends on a parametrized 21:18:04 # fixture. 21:18:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:04 21:18:04 # Check for (and return) cached value/exception. 21:18:04 if self.cached_result is not None: 21:18:04 request_cache_key = self.cache_key(request) 21:18:04 cache_key = self.cached_result[1] 21:18:04 try: 21:18:04 # Attempt to make a normal == check: this might fail for objects 21:18:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:04 cache_hit = bool(request_cache_key == cache_key) 21:18:04 except (ValueError, RuntimeError): 21:18:04 # If the comparison raises, use 'is' as fallback. 21:18:04 cache_hit = request_cache_key is cache_key 21:18:04 21:18:04 if cache_hit: 21:18:04 if self.cached_result[2] is not None: 21:18:04 exc, exc_tb = self.cached_result[2] 21:18:04 raise exc.with_traceback(exc_tb) 21:18:04 else: 21:18:04 return self.cached_result[0] 21:18:04 # We have a previous but differently parametrized fixture instance 21:18:04 # so we need to tear it down before creating a new one. 21:18:04 self.finish(request) 21:18:04 assert self.cached_result is None 21:18:04 21:18:04 # Add finalizer to requested fixtures we saved previously. 21:18:04 # We make sure to do this after checking for cached value to avoid 21:18:04 # adding our finalizer multiple times. (#12135) 21:18:04 finalizer = functools.partial(self.finish, request=request) 21:18:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:04 parent_fixture.addfinalizer(finalizer) 21:18:04 21:18:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:04 # which is executed last. 21:18:04 > assert not self._finalizers 21:18:04 ^^^^^^^^^^^^^^^^^^^^ 21:18:04 E AssertionError 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:04 _ ERROR at setup of TestTransportPCEPortmapping.test_16_xpdr_device_disconnection _ 21:18:04 21:18:04 cls = 21:18:04 func = . at 0x7f729f875800> 21:18:04 when = 'setup' 21:18:04 reraise = (, ) 21:18:04 21:18:04 @classmethod 21:18:04 def from_call( 21:18:04 cls, 21:18:04 func: Callable[[], TResult], 21:18:04 when: Literal["collect", "setup", "call", "teardown"], 21:18:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:04 ) -> CallInfo[TResult]: 21:18:04 """Call func, wrapping the result in a CallInfo. 21:18:04 21:18:04 :param func: 21:18:04 The function to call. Called without arguments. 21:18:04 :type func: Callable[[], _pytest.runner.TResult] 21:18:04 :param when: 21:18:04 The phase in which the function is called. 21:18:04 :param reraise: 21:18:04 Exception or exceptions that shall propagate if raised by the 21:18:04 function, instead of being wrapped in the CallInfo. 21:18:04 """ 21:18:04 excinfo = None 21:18:04 instant = timing.Instant() 21:18:04 try: 21:18:04 > result: TResult | None = func() 21:18:04 ^^^^^^ 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:04 lambda: runtest_hook(item=item, **kwds), 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:04 yield 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:04 return (yield) 21:18:04 ^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:04 item.session._setupstate.setup(item) 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:04 col.setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:04 super().setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:04 self._request._fillfixtures() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:04 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:04 fixturedef = self._get_active_fixturedef(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:04 fixturedef.execute(request=subrequest) 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 21:18:04 self = 21:18:04 request = > 21:18:04 21:18:04 def execute(self, request: SubRequest) -> FixtureValue: 21:18:04 """Return the value of this fixture, executing it if not cached.""" 21:18:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:04 # This needs to be done before checking if we have a cached value, since 21:18:04 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:04 # parametrization, they finalize themselves and fixtures depending on it 21:18:04 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:04 # See #4871 21:18:04 requested_fixtures_that_should_finalize_us = [] 21:18:04 for argname in self.argnames: 21:18:04 fixturedef = request._get_active_fixturedef(argname) 21:18:04 # Saves requested fixtures in a list so we later can add our finalizer 21:18:04 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:04 # down first. This is generally handled by SetupState, but still currently 21:18:04 # needed when this fixture is not parametrized but depends on a parametrized 21:18:04 # fixture. 21:18:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:04 21:18:04 # Check for (and return) cached value/exception. 21:18:04 if self.cached_result is not None: 21:18:04 request_cache_key = self.cache_key(request) 21:18:04 cache_key = self.cached_result[1] 21:18:04 try: 21:18:04 # Attempt to make a normal == check: this might fail for objects 21:18:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:04 cache_hit = bool(request_cache_key == cache_key) 21:18:04 except (ValueError, RuntimeError): 21:18:04 # If the comparison raises, use 'is' as fallback. 21:18:04 cache_hit = request_cache_key is cache_key 21:18:04 21:18:04 if cache_hit: 21:18:04 if self.cached_result[2] is not None: 21:18:04 exc, exc_tb = self.cached_result[2] 21:18:04 raise exc.with_traceback(exc_tb) 21:18:04 else: 21:18:04 return self.cached_result[0] 21:18:04 # We have a previous but differently parametrized fixture instance 21:18:04 # so we need to tear it down before creating a new one. 21:18:04 self.finish(request) 21:18:04 assert self.cached_result is None 21:18:04 21:18:04 # Add finalizer to requested fixtures we saved previously. 21:18:04 # We make sure to do this after checking for cached value to avoid 21:18:04 # adding our finalizer multiple times. (#12135) 21:18:04 finalizer = functools.partial(self.finish, request=request) 21:18:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:04 parent_fixture.addfinalizer(finalizer) 21:18:04 21:18:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:04 # which is executed last. 21:18:04 > assert not self._finalizers 21:18:04 ^^^^^^^^^^^^^^^^^^^^ 21:18:04 E AssertionError 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:04 _ ERROR at setup of TestTransportPCEPortmapping.test_17_xpdr_device_disconnected _ 21:18:04 21:18:04 cls = 21:18:04 func = . at 0x7f729f875bc0> 21:18:04 when = 'setup' 21:18:04 reraise = (, ) 21:18:04 21:18:04 @classmethod 21:18:04 def from_call( 21:18:04 cls, 21:18:04 func: Callable[[], TResult], 21:18:04 when: Literal["collect", "setup", "call", "teardown"], 21:18:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:04 ) -> CallInfo[TResult]: 21:18:04 """Call func, wrapping the result in a CallInfo. 21:18:04 21:18:04 :param func: 21:18:04 The function to call. Called without arguments. 21:18:04 :type func: Callable[[], _pytest.runner.TResult] 21:18:04 :param when: 21:18:04 The phase in which the function is called. 21:18:04 :param reraise: 21:18:04 Exception or exceptions that shall propagate if raised by the 21:18:04 function, instead of being wrapped in the CallInfo. 21:18:04 """ 21:18:04 excinfo = None 21:18:04 instant = timing.Instant() 21:18:04 try: 21:18:04 > result: TResult | None = func() 21:18:04 ^^^^^^ 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:04 lambda: runtest_hook(item=item, **kwds), 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:04 yield 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:04 return (yield) 21:18:04 ^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:04 item.session._setupstate.setup(item) 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:04 col.setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:04 super().setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:04 self._request._fillfixtures() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:04 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:04 fixturedef = self._get_active_fixturedef(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:04 fixturedef.execute(request=subrequest) 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 21:18:04 self = 21:18:04 request = > 21:18:04 21:18:04 def execute(self, request: SubRequest) -> FixtureValue: 21:18:04 """Return the value of this fixture, executing it if not cached.""" 21:18:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:04 # This needs to be done before checking if we have a cached value, since 21:18:04 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:04 # parametrization, they finalize themselves and fixtures depending on it 21:18:04 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:04 # See #4871 21:18:04 requested_fixtures_that_should_finalize_us = [] 21:18:04 for argname in self.argnames: 21:18:04 fixturedef = request._get_active_fixturedef(argname) 21:18:04 # Saves requested fixtures in a list so we later can add our finalizer 21:18:04 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:04 # down first. This is generally handled by SetupState, but still currently 21:18:04 # needed when this fixture is not parametrized but depends on a parametrized 21:18:04 # fixture. 21:18:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:04 21:18:04 # Check for (and return) cached value/exception. 21:18:04 if self.cached_result is not None: 21:18:04 request_cache_key = self.cache_key(request) 21:18:04 cache_key = self.cached_result[1] 21:18:04 try: 21:18:04 # Attempt to make a normal == check: this might fail for objects 21:18:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:04 cache_hit = bool(request_cache_key == cache_key) 21:18:04 except (ValueError, RuntimeError): 21:18:04 # If the comparison raises, use 'is' as fallback. 21:18:04 cache_hit = request_cache_key is cache_key 21:18:04 21:18:04 if cache_hit: 21:18:04 if self.cached_result[2] is not None: 21:18:04 exc, exc_tb = self.cached_result[2] 21:18:04 raise exc.with_traceback(exc_tb) 21:18:04 else: 21:18:04 return self.cached_result[0] 21:18:04 # We have a previous but differently parametrized fixture instance 21:18:04 # so we need to tear it down before creating a new one. 21:18:04 self.finish(request) 21:18:04 assert self.cached_result is None 21:18:04 21:18:04 # Add finalizer to requested fixtures we saved previously. 21:18:04 # We make sure to do this after checking for cached value to avoid 21:18:04 # adding our finalizer multiple times. (#12135) 21:18:04 finalizer = functools.partial(self.finish, request=request) 21:18:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:04 parent_fixture.addfinalizer(finalizer) 21:18:04 21:18:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:04 # which is executed last. 21:18:04 > assert not self._finalizers 21:18:04 ^^^^^^^^^^^^^^^^^^^^ 21:18:04 E AssertionError 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:04 _ ERROR at setup of TestTransportPCEPortmapping.test_18_xpdr_device_not_connected _ 21:18:04 21:18:04 cls = 21:18:04 func = . at 0x7f729f875da0> 21:18:04 when = 'setup' 21:18:04 reraise = (, ) 21:18:04 21:18:04 @classmethod 21:18:04 def from_call( 21:18:04 cls, 21:18:04 func: Callable[[], TResult], 21:18:04 when: Literal["collect", "setup", "call", "teardown"], 21:18:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:04 ) -> CallInfo[TResult]: 21:18:04 """Call func, wrapping the result in a CallInfo. 21:18:04 21:18:04 :param func: 21:18:04 The function to call. Called without arguments. 21:18:04 :type func: Callable[[], _pytest.runner.TResult] 21:18:04 :param when: 21:18:04 The phase in which the function is called. 21:18:04 :param reraise: 21:18:04 Exception or exceptions that shall propagate if raised by the 21:18:04 function, instead of being wrapped in the CallInfo. 21:18:04 """ 21:18:04 excinfo = None 21:18:04 instant = timing.Instant() 21:18:04 try: 21:18:04 > result: TResult | None = func() 21:18:04 ^^^^^^ 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:04 lambda: runtest_hook(item=item, **kwds), 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:04 yield 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:04 return (yield) 21:18:04 ^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:04 item.session._setupstate.setup(item) 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:04 col.setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:04 super().setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:04 self._request._fillfixtures() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:04 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:04 fixturedef = self._get_active_fixturedef(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:04 fixturedef.execute(request=subrequest) 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 21:18:04 self = 21:18:04 request = > 21:18:04 21:18:04 def execute(self, request: SubRequest) -> FixtureValue: 21:18:04 """Return the value of this fixture, executing it if not cached.""" 21:18:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:04 # This needs to be done before checking if we have a cached value, since 21:18:04 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:04 # parametrization, they finalize themselves and fixtures depending on it 21:18:04 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:04 # See #4871 21:18:04 requested_fixtures_that_should_finalize_us = [] 21:18:04 for argname in self.argnames: 21:18:04 fixturedef = request._get_active_fixturedef(argname) 21:18:04 # Saves requested fixtures in a list so we later can add our finalizer 21:18:04 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:04 # down first. This is generally handled by SetupState, but still currently 21:18:04 # needed when this fixture is not parametrized but depends on a parametrized 21:18:04 # fixture. 21:18:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:04 21:18:04 # Check for (and return) cached value/exception. 21:18:04 if self.cached_result is not None: 21:18:04 request_cache_key = self.cache_key(request) 21:18:04 cache_key = self.cached_result[1] 21:18:04 try: 21:18:04 # Attempt to make a normal == check: this might fail for objects 21:18:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:04 cache_hit = bool(request_cache_key == cache_key) 21:18:04 except (ValueError, RuntimeError): 21:18:04 # If the comparison raises, use 'is' as fallback. 21:18:04 cache_hit = request_cache_key is cache_key 21:18:04 21:18:04 if cache_hit: 21:18:04 if self.cached_result[2] is not None: 21:18:04 exc, exc_tb = self.cached_result[2] 21:18:04 raise exc.with_traceback(exc_tb) 21:18:04 else: 21:18:04 return self.cached_result[0] 21:18:04 # We have a previous but differently parametrized fixture instance 21:18:04 # so we need to tear it down before creating a new one. 21:18:04 self.finish(request) 21:18:04 assert self.cached_result is None 21:18:04 21:18:04 # Add finalizer to requested fixtures we saved previously. 21:18:04 # We make sure to do this after checking for cached value to avoid 21:18:04 # adding our finalizer multiple times. (#12135) 21:18:04 finalizer = functools.partial(self.finish, request=request) 21:18:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:04 parent_fixture.addfinalizer(finalizer) 21:18:04 21:18:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:04 # which is executed last. 21:18:04 > assert not self._finalizers 21:18:04 ^^^^^^^^^^^^^^^^^^^^ 21:18:04 E AssertionError 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:04 _ ERROR at setup of TestTransportPCEPortmapping.test_19_rdm_device_disconnection _ 21:18:04 21:18:04 cls = 21:18:04 func = . at 0x7f729f8a6840> 21:18:04 when = 'setup' 21:18:04 reraise = (, ) 21:18:04 21:18:04 @classmethod 21:18:04 def from_call( 21:18:04 cls, 21:18:04 func: Callable[[], TResult], 21:18:04 when: Literal["collect", "setup", "call", "teardown"], 21:18:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:04 ) -> CallInfo[TResult]: 21:18:04 """Call func, wrapping the result in a CallInfo. 21:18:04 21:18:04 :param func: 21:18:04 The function to call. Called without arguments. 21:18:04 :type func: Callable[[], _pytest.runner.TResult] 21:18:04 :param when: 21:18:04 The phase in which the function is called. 21:18:04 :param reraise: 21:18:04 Exception or exceptions that shall propagate if raised by the 21:18:04 function, instead of being wrapped in the CallInfo. 21:18:04 """ 21:18:04 excinfo = None 21:18:04 instant = timing.Instant() 21:18:04 try: 21:18:04 > result: TResult | None = func() 21:18:04 ^^^^^^ 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:04 lambda: runtest_hook(item=item, **kwds), 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:04 yield 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:04 return (yield) 21:18:04 ^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:04 item.session._setupstate.setup(item) 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:04 col.setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:04 super().setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:04 self._request._fillfixtures() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:04 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:04 fixturedef = self._get_active_fixturedef(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:04 fixturedef.execute(request=subrequest) 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 21:18:04 self = 21:18:04 request = > 21:18:04 21:18:04 def execute(self, request: SubRequest) -> FixtureValue: 21:18:04 """Return the value of this fixture, executing it if not cached.""" 21:18:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:04 # This needs to be done before checking if we have a cached value, since 21:18:04 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:04 # parametrization, they finalize themselves and fixtures depending on it 21:18:04 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:04 # See #4871 21:18:04 requested_fixtures_that_should_finalize_us = [] 21:18:04 for argname in self.argnames: 21:18:04 fixturedef = request._get_active_fixturedef(argname) 21:18:04 # Saves requested fixtures in a list so we later can add our finalizer 21:18:04 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:04 # down first. This is generally handled by SetupState, but still currently 21:18:04 # needed when this fixture is not parametrized but depends on a parametrized 21:18:04 # fixture. 21:18:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:04 21:18:04 # Check for (and return) cached value/exception. 21:18:04 if self.cached_result is not None: 21:18:04 request_cache_key = self.cache_key(request) 21:18:04 cache_key = self.cached_result[1] 21:18:04 try: 21:18:04 # Attempt to make a normal == check: this might fail for objects 21:18:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:04 cache_hit = bool(request_cache_key == cache_key) 21:18:04 except (ValueError, RuntimeError): 21:18:04 # If the comparison raises, use 'is' as fallback. 21:18:04 cache_hit = request_cache_key is cache_key 21:18:04 21:18:04 if cache_hit: 21:18:04 if self.cached_result[2] is not None: 21:18:04 exc, exc_tb = self.cached_result[2] 21:18:04 raise exc.with_traceback(exc_tb) 21:18:04 else: 21:18:04 return self.cached_result[0] 21:18:04 # We have a previous but differently parametrized fixture instance 21:18:04 # so we need to tear it down before creating a new one. 21:18:04 self.finish(request) 21:18:04 assert self.cached_result is None 21:18:04 21:18:04 # Add finalizer to requested fixtures we saved previously. 21:18:04 # We make sure to do this after checking for cached value to avoid 21:18:04 # adding our finalizer multiple times. (#12135) 21:18:04 finalizer = functools.partial(self.finish, request=request) 21:18:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:04 parent_fixture.addfinalizer(finalizer) 21:18:04 21:18:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:04 # which is executed last. 21:18:04 > assert not self._finalizers 21:18:04 ^^^^^^^^^^^^^^^^^^^^ 21:18:04 E AssertionError 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:04 _ ERROR at setup of TestTransportPCEPortmapping.test_20_rdm_device_disconnected _ 21:18:04 21:18:04 cls = 21:18:04 func = . at 0x7f729f479d00> 21:18:04 when = 'setup' 21:18:04 reraise = (, ) 21:18:04 21:18:04 @classmethod 21:18:04 def from_call( 21:18:04 cls, 21:18:04 func: Callable[[], TResult], 21:18:04 when: Literal["collect", "setup", "call", "teardown"], 21:18:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:04 ) -> CallInfo[TResult]: 21:18:04 """Call func, wrapping the result in a CallInfo. 21:18:04 21:18:04 :param func: 21:18:04 The function to call. Called without arguments. 21:18:04 :type func: Callable[[], _pytest.runner.TResult] 21:18:04 :param when: 21:18:04 The phase in which the function is called. 21:18:04 :param reraise: 21:18:04 Exception or exceptions that shall propagate if raised by the 21:18:04 function, instead of being wrapped in the CallInfo. 21:18:04 """ 21:18:04 excinfo = None 21:18:04 instant = timing.Instant() 21:18:04 try: 21:18:04 > result: TResult | None = func() 21:18:04 ^^^^^^ 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:04 lambda: runtest_hook(item=item, **kwds), 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:04 yield 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:04 return (yield) 21:18:04 ^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:04 item.session._setupstate.setup(item) 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:04 col.setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:04 super().setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:04 self._request._fillfixtures() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:04 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:04 fixturedef = self._get_active_fixturedef(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:04 fixturedef.execute(request=subrequest) 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 21:18:04 self = 21:18:04 request = > 21:18:04 21:18:04 def execute(self, request: SubRequest) -> FixtureValue: 21:18:04 """Return the value of this fixture, executing it if not cached.""" 21:18:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:04 # This needs to be done before checking if we have a cached value, since 21:18:04 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:04 # parametrization, they finalize themselves and fixtures depending on it 21:18:04 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:04 # See #4871 21:18:04 requested_fixtures_that_should_finalize_us = [] 21:18:04 for argname in self.argnames: 21:18:04 fixturedef = request._get_active_fixturedef(argname) 21:18:04 # Saves requested fixtures in a list so we later can add our finalizer 21:18:04 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:04 # down first. This is generally handled by SetupState, but still currently 21:18:04 # needed when this fixture is not parametrized but depends on a parametrized 21:18:04 # fixture. 21:18:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:04 21:18:04 # Check for (and return) cached value/exception. 21:18:04 if self.cached_result is not None: 21:18:04 request_cache_key = self.cache_key(request) 21:18:04 cache_key = self.cached_result[1] 21:18:04 try: 21:18:04 # Attempt to make a normal == check: this might fail for objects 21:18:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:04 cache_hit = bool(request_cache_key == cache_key) 21:18:04 except (ValueError, RuntimeError): 21:18:04 # If the comparison raises, use 'is' as fallback. 21:18:04 cache_hit = request_cache_key is cache_key 21:18:04 21:18:04 if cache_hit: 21:18:04 if self.cached_result[2] is not None: 21:18:04 exc, exc_tb = self.cached_result[2] 21:18:04 raise exc.with_traceback(exc_tb) 21:18:04 else: 21:18:04 return self.cached_result[0] 21:18:04 # We have a previous but differently parametrized fixture instance 21:18:04 # so we need to tear it down before creating a new one. 21:18:04 self.finish(request) 21:18:04 assert self.cached_result is None 21:18:04 21:18:04 # Add finalizer to requested fixtures we saved previously. 21:18:04 # We make sure to do this after checking for cached value to avoid 21:18:04 # adding our finalizer multiple times. (#12135) 21:18:04 finalizer = functools.partial(self.finish, request=request) 21:18:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:04 parent_fixture.addfinalizer(finalizer) 21:18:04 21:18:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:04 # which is executed last. 21:18:04 > assert not self._finalizers 21:18:04 ^^^^^^^^^^^^^^^^^^^^ 21:18:04 E AssertionError 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:04 _ ERROR at setup of TestTransportPCEPortmapping.test_21_rdm_device_not_connected _ 21:18:04 21:18:04 cls = 21:18:04 func = . at 0x7f729f875bc0> 21:18:04 when = 'setup' 21:18:04 reraise = (, ) 21:18:04 21:18:04 @classmethod 21:18:04 def from_call( 21:18:04 cls, 21:18:04 func: Callable[[], TResult], 21:18:04 when: Literal["collect", "setup", "call", "teardown"], 21:18:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:04 ) -> CallInfo[TResult]: 21:18:04 """Call func, wrapping the result in a CallInfo. 21:18:04 21:18:04 :param func: 21:18:04 The function to call. Called without arguments. 21:18:04 :type func: Callable[[], _pytest.runner.TResult] 21:18:04 :param when: 21:18:04 The phase in which the function is called. 21:18:04 :param reraise: 21:18:04 Exception or exceptions that shall propagate if raised by the 21:18:04 function, instead of being wrapped in the CallInfo. 21:18:04 """ 21:18:04 excinfo = None 21:18:04 instant = timing.Instant() 21:18:04 try: 21:18:04 > result: TResult | None = func() 21:18:04 ^^^^^^ 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:04 lambda: runtest_hook(item=item, **kwds), 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:04 yield 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:04 return (yield) 21:18:04 ^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:04 item.session._setupstate.setup(item) 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:04 col.setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:04 super().setup() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:04 self._request._fillfixtures() 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:04 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:04 fixturedef = self._get_active_fixturedef(argname) 21:18:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:04 fixturedef.execute(request=subrequest) 21:18:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:04 21:18:04 self = 21:18:04 request = > 21:18:04 21:18:04 def execute(self, request: SubRequest) -> FixtureValue: 21:18:04 """Return the value of this fixture, executing it if not cached.""" 21:18:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:04 # This needs to be done before checking if we have a cached value, since 21:18:04 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:04 # parametrization, they finalize themselves and fixtures depending on it 21:18:04 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:04 # See #4871 21:18:04 requested_fixtures_that_should_finalize_us = [] 21:18:04 for argname in self.argnames: 21:18:04 fixturedef = request._get_active_fixturedef(argname) 21:18:04 # Saves requested fixtures in a list so we later can add our finalizer 21:18:04 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:04 # down first. This is generally handled by SetupState, but still currently 21:18:04 # needed when this fixture is not parametrized but depends on a parametrized 21:18:04 # fixture. 21:18:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:04 21:18:04 # Check for (and return) cached value/exception. 21:18:04 if self.cached_result is not None: 21:18:04 request_cache_key = self.cache_key(request) 21:18:04 cache_key = self.cached_result[1] 21:18:04 try: 21:18:04 # Attempt to make a normal == check: this might fail for objects 21:18:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:04 cache_hit = bool(request_cache_key == cache_key) 21:18:04 except (ValueError, RuntimeError): 21:18:04 # If the comparison raises, use 'is' as fallback. 21:18:04 cache_hit = request_cache_key is cache_key 21:18:04 21:18:04 if cache_hit: 21:18:04 if self.cached_result[2] is not None: 21:18:04 exc, exc_tb = self.cached_result[2] 21:18:04 raise exc.with_traceback(exc_tb) 21:18:04 else: 21:18:04 return self.cached_result[0] 21:18:04 # We have a previous but differently parametrized fixture instance 21:18:04 # so we need to tear it down before creating a new one. 21:18:04 self.finish(request) 21:18:04 assert self.cached_result is None 21:18:04 21:18:04 # Add finalizer to requested fixtures we saved previously. 21:18:04 # We make sure to do this after checking for cached value to avoid 21:18:04 # adding our finalizer multiple times. (#12135) 21:18:04 finalizer = functools.partial(self.finish, request=request) 21:18:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:04 parent_fixture.addfinalizer(finalizer) 21:18:04 21:18:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:04 # which is executed last. 21:18:04 > assert not self._finalizers 21:18:04 ^^^^^^^^^^^^^^^^^^^^ 21:18:04 E AssertionError 21:18:04 21:18:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:04 =========================== short test summary info ============================ 21:18:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 21:18:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 21:18:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 21:18:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 21:18:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_SRG1_PP7_TXRX 21:18:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG3_PP1_TXRX 21:18:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_xpdr_device_connection 21:18:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connected 21:18:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_portmapping_info 21:18:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_NETWORK1 21:18:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK2 21:18:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_CLIENT1 21:18:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_CLIENT2 21:18:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_CLIENT3 21:18:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_xpdr_portmapping_CLIENT4 21:18:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_xpdr_device_disconnection 21:18:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_xpdr_device_disconnected 21:18:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_xpdr_device_not_connected 21:18:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_rdm_device_disconnection 21:18:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_rdm_device_disconnected 21:18:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_rdm_device_not_connected 21:18:04 21 errors in 103.93s (0:01:43) 21:18:04 Etests121: exit 1 (104.19 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 1.2.1 pid=4792 21:18:04 EEEEEEEEEEEEEEEEEEEEEEEEEEEEtests121: FAIL ✖ in 1 minute 52.59 seconds 21:18:09 tests71: freeze> python -m pip freeze --all 21:18:10 EE [100%] 21:18:10 ==================================== ERRORS ==================================== 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 21:18:10 21:18:10 cls = 21:18:10 21:18:10 @classmethod 21:18:10 def setUpClass(cls): 21:18:10 cls.init_failed = False 21:18:10 os.environ['JAVA_MIN_MEM'] = '1024M' 21:18:10 os.environ['JAVA_MAX_MEM'] = '4096M' 21:18:10 > cls.processes = test_utils.start_tpce() 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 21:18:10 transportpce_tests/tapi/test01_abstracted_topology.py:148: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 def start_tpce(): 21:18:10 if 'NO_ODL_STARTUP' in os.environ: 21:18:10 print('No OpenDaylight instance to start!') 21:18:10 return [] 21:18:10 print('starting OpenDaylight...') 21:18:10 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 21:18:10 process = start_lighty() 21:18:10 else: 21:18:10 process = start_karaf() 21:18:10 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 21:18:10 print('OpenDaylight started !') 21:18:10 else: 21:18:10 print('OpenDaylight failed to start !') 21:18:10 shutdown_process(process) 21:18:10 for pid in process_list: 21:18:10 shutdown_process(pid) 21:18:10 > sys.exit(1) 21:18:10 E SystemExit: 1 21:18:10 21:18:10 transportpce_tests/common/test_utils.py:232: SystemExit 21:18:10 ---------------------------- Captured stdout setup ----------------------------- 21:18:10 starting OpenDaylight... 21:18:10 starting KARAF (karaf221) TransportPCE build... 21:18:10 Pattern not found after 100 seconds! OpenDaylight failed to start ! 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e2129bc0> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e217b4c0> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e3903380> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e483b740> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e217b560> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e47ed1c0> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e217a700> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e217b880> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e2129bc0> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e47ed1c0> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e217a700> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e47ed1c0> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e2129bc0> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e217a700> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e47ed1c0> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e217ae80> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e217a660> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e47ed1c0> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e217ad40> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e47ed1c0> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e217a660> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e1e2da80> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e2128e00> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e47ed1c0> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e1e2dc60> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e47ed1c0> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e2128e00> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e1e2df80> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e217a700> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e47ed1c0> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e1e2d260> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e217a700> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e1e2d3a0> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e1e2d120> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e217a700> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e1e2e480> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e217a700> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e1e2c900> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e1e2ea20> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e217a700> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e1e2c720> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e1e2cea0> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e217a700> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e1e2da80> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e1e2d260> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e217a700> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e1e2e020> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e1e2d4e0> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e217a700> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 21:18:10 21:18:10 cls = 21:18:10 func = . at 0x7fb8e1e2f560> 21:18:10 when = 'setup' 21:18:10 reraise = (, ) 21:18:10 21:18:10 @classmethod 21:18:10 def from_call( 21:18:10 cls, 21:18:10 func: Callable[[], TResult], 21:18:10 when: Literal["collect", "setup", "call", "teardown"], 21:18:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:10 ) -> CallInfo[TResult]: 21:18:10 """Call func, wrapping the result in a CallInfo. 21:18:10 21:18:10 :param func: 21:18:10 The function to call. Called without arguments. 21:18:10 :type func: Callable[[], _pytest.runner.TResult] 21:18:10 :param when: 21:18:10 The phase in which the function is called. 21:18:10 :param reraise: 21:18:10 Exception or exceptions that shall propagate if raised by the 21:18:10 function, instead of being wrapped in the CallInfo. 21:18:10 """ 21:18:10 excinfo = None 21:18:10 instant = timing.Instant() 21:18:10 try: 21:18:10 > result: TResult | None = func() 21:18:10 ^^^^^^ 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:10 lambda: runtest_hook(item=item, **kwds), 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:10 yield 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:10 return (yield) 21:18:10 ^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:10 item.session._setupstate.setup(item) 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:10 col.setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:10 super().setup() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:10 self._request._fillfixtures() 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:10 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:10 fixturedef = self._get_active_fixturedef(argname) 21:18:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:10 fixturedef.execute(request=subrequest) 21:18:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:10 21:18:10 self = 21:18:10 request = > 21:18:10 21:18:10 def execute(self, request: SubRequest) -> FixtureValue: 21:18:10 """Return the value of this fixture, executing it if not cached.""" 21:18:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:10 # This needs to be done before checking if we have a cached value, since 21:18:10 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:10 # parametrization, they finalize themselves and fixtures depending on it 21:18:10 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:10 # See #4871 21:18:10 requested_fixtures_that_should_finalize_us = [] 21:18:10 for argname in self.argnames: 21:18:10 fixturedef = request._get_active_fixturedef(argname) 21:18:10 # Saves requested fixtures in a list so we later can add our finalizer 21:18:10 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:10 # down first. This is generally handled by SetupState, but still currently 21:18:10 # needed when this fixture is not parametrized but depends on a parametrized 21:18:10 # fixture. 21:18:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:10 21:18:10 # Check for (and return) cached value/exception. 21:18:10 if self.cached_result is not None: 21:18:10 request_cache_key = self.cache_key(request) 21:18:10 cache_key = self.cached_result[1] 21:18:10 try: 21:18:10 # Attempt to make a normal == check: this might fail for objects 21:18:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:10 cache_hit = bool(request_cache_key == cache_key) 21:18:10 except (ValueError, RuntimeError): 21:18:10 # If the comparison raises, use 'is' as fallback. 21:18:10 cache_hit = request_cache_key is cache_key 21:18:10 21:18:10 if cache_hit: 21:18:10 if self.cached_result[2] is not None: 21:18:10 exc, exc_tb = self.cached_result[2] 21:18:10 raise exc.with_traceback(exc_tb) 21:18:10 else: 21:18:10 return self.cached_result[0] 21:18:10 # We have a previous but differently parametrized fixture instance 21:18:10 # so we need to tear it down before creating a new one. 21:18:10 self.finish(request) 21:18:10 assert self.cached_result is None 21:18:10 21:18:10 # Add finalizer to requested fixtures we saved previously. 21:18:10 # We make sure to do this after checking for cached value to avoid 21:18:10 # adding our finalizer multiple times. (#12135) 21:18:10 finalizer = functools.partial(self.finish, request=request) 21:18:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:10 parent_fixture.addfinalizer(finalizer) 21:18:10 21:18:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:10 # which is executed last. 21:18:10 > assert not self._finalizers 21:18:10 ^^^^^^^^^^^^^^^^^^^^ 21:18:10 E AssertionError 21:18:10 21:18:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:10 =========================== short test summary info ============================ 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 21:18:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 21:18:10 51 errors in 109.47s (0:01:49) 21:18:10 tests_tapi: exit 1 (109.77 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh tapi pid=4799 21:18:10 tests_tapi: FAIL ✖ in 1 minute 58.17 seconds 21:18:10 tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 21:18:10 tests71: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 7.1 21:18:10 using environment variables from ./karaf71.env 21:18:10 pytest -q transportpce_tests/7.1/test01_portmapping.py 21:18:10 tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:18:16 tests221: freeze> python -m pip freeze --all 21:18:16 tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 21:18:16 tests221: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 2.2.1 21:18:16 using environment variables from ./karaf221.env 21:18:16 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 21:19:50 EEEEEEEEEEEE [100%] 21:19:52 ==================================== ERRORS ==================================== 21:19:52 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 21:19:52 21:19:52 cls = 21:19:52 21:19:52 @classmethod 21:19:52 def setUpClass(cls): 21:19:52 > cls.processes = test_utils.start_tpce() 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 21:19:52 transportpce_tests/7.1/test01_portmapping.py:32: 21:19:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:52 21:19:52 def start_tpce(): 21:19:52 if 'NO_ODL_STARTUP' in os.environ: 21:19:52 print('No OpenDaylight instance to start!') 21:19:52 return [] 21:19:52 print('starting OpenDaylight...') 21:19:52 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 21:19:52 process = start_lighty() 21:19:52 else: 21:19:52 process = start_karaf() 21:19:52 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 21:19:52 print('OpenDaylight started !') 21:19:52 else: 21:19:52 print('OpenDaylight failed to start !') 21:19:52 shutdown_process(process) 21:19:52 for pid in process_list: 21:19:52 shutdown_process(pid) 21:19:52 > sys.exit(1) 21:19:52 E SystemExit: 1 21:19:52 21:19:52 transportpce_tests/common/test_utils.py:232: SystemExit 21:19:52 ---------------------------- Captured stdout setup ----------------------------- 21:19:52 starting OpenDaylight... 21:19:52 starting KARAF (karaf71) TransportPCE build... 21:19:52 Pattern not found after 100 seconds! OpenDaylight failed to start ! 21:19:52 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 21:19:52 21:19:52 cls = 21:19:52 func = . at 0x7fe871126700> 21:19:52 when = 'setup' 21:19:52 reraise = (, ) 21:19:52 21:19:52 @classmethod 21:19:52 def from_call( 21:19:52 cls, 21:19:52 func: Callable[[], TResult], 21:19:52 when: Literal["collect", "setup", "call", "teardown"], 21:19:52 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:52 ) -> CallInfo[TResult]: 21:19:52 """Call func, wrapping the result in a CallInfo. 21:19:52 21:19:52 :param func: 21:19:52 The function to call. Called without arguments. 21:19:52 :type func: Callable[[], _pytest.runner.TResult] 21:19:52 :param when: 21:19:52 The phase in which the function is called. 21:19:52 :param reraise: 21:19:52 Exception or exceptions that shall propagate if raised by the 21:19:52 function, instead of being wrapped in the CallInfo. 21:19:52 """ 21:19:52 excinfo = None 21:19:52 instant = timing.Instant() 21:19:52 try: 21:19:52 > result: TResult | None = func() 21:19:52 ^^^^^^ 21:19:52 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:52 lambda: runtest_hook(item=item, **kwds), 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:52 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:52 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:52 yield 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:52 return (yield) 21:19:52 ^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:52 item.session._setupstate.setup(item) 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:52 col.setup() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:52 super().setup() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:52 self._request._fillfixtures() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:52 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:52 fixturedef = self._get_active_fixturedef(argname) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:52 fixturedef.execute(request=subrequest) 21:19:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:52 21:19:52 self = 21:19:52 request = > 21:19:52 21:19:52 def execute(self, request: SubRequest) -> FixtureValue: 21:19:52 """Return the value of this fixture, executing it if not cached.""" 21:19:52 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:52 # This needs to be done before checking if we have a cached value, since 21:19:52 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:52 # parametrization, they finalize themselves and fixtures depending on it 21:19:52 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:52 # See #4871 21:19:52 requested_fixtures_that_should_finalize_us = [] 21:19:52 for argname in self.argnames: 21:19:52 fixturedef = request._get_active_fixturedef(argname) 21:19:52 # Saves requested fixtures in a list so we later can add our finalizer 21:19:52 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:52 # down first. This is generally handled by SetupState, but still currently 21:19:52 # needed when this fixture is not parametrized but depends on a parametrized 21:19:52 # fixture. 21:19:52 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:52 21:19:52 # Check for (and return) cached value/exception. 21:19:52 if self.cached_result is not None: 21:19:52 request_cache_key = self.cache_key(request) 21:19:52 cache_key = self.cached_result[1] 21:19:52 try: 21:19:52 # Attempt to make a normal == check: this might fail for objects 21:19:52 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:52 cache_hit = bool(request_cache_key == cache_key) 21:19:52 except (ValueError, RuntimeError): 21:19:52 # If the comparison raises, use 'is' as fallback. 21:19:52 cache_hit = request_cache_key is cache_key 21:19:52 21:19:52 if cache_hit: 21:19:52 if self.cached_result[2] is not None: 21:19:52 exc, exc_tb = self.cached_result[2] 21:19:52 raise exc.with_traceback(exc_tb) 21:19:52 else: 21:19:52 return self.cached_result[0] 21:19:52 # We have a previous but differently parametrized fixture instance 21:19:52 # so we need to tear it down before creating a new one. 21:19:52 self.finish(request) 21:19:52 assert self.cached_result is None 21:19:52 21:19:52 # Add finalizer to requested fixtures we saved previously. 21:19:52 # We make sure to do this after checking for cached value to avoid 21:19:52 # adding our finalizer multiple times. (#12135) 21:19:52 finalizer = functools.partial(self.finish, request=request) 21:19:52 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:52 parent_fixture.addfinalizer(finalizer) 21:19:52 21:19:52 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:52 # which is executed last. 21:19:52 > assert not self._finalizers 21:19:52 ^^^^^^^^^^^^^^^^^^^^ 21:19:52 E AssertionError 21:19:52 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:52 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 21:19:52 21:19:52 cls = 21:19:52 func = . at 0x7fe87114b740> 21:19:52 when = 'setup' 21:19:52 reraise = (, ) 21:19:52 21:19:52 @classmethod 21:19:52 def from_call( 21:19:52 cls, 21:19:52 func: Callable[[], TResult], 21:19:52 when: Literal["collect", "setup", "call", "teardown"], 21:19:52 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:52 ) -> CallInfo[TResult]: 21:19:52 """Call func, wrapping the result in a CallInfo. 21:19:52 21:19:52 :param func: 21:19:52 The function to call. Called without arguments. 21:19:52 :type func: Callable[[], _pytest.runner.TResult] 21:19:52 :param when: 21:19:52 The phase in which the function is called. 21:19:52 :param reraise: 21:19:52 Exception or exceptions that shall propagate if raised by the 21:19:52 function, instead of being wrapped in the CallInfo. 21:19:52 """ 21:19:52 excinfo = None 21:19:52 instant = timing.Instant() 21:19:52 try: 21:19:52 > result: TResult | None = func() 21:19:52 ^^^^^^ 21:19:52 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:52 lambda: runtest_hook(item=item, **kwds), 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:52 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:52 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:52 yield 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:52 return (yield) 21:19:52 ^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:52 item.session._setupstate.setup(item) 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:52 col.setup() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:52 super().setup() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:52 self._request._fillfixtures() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:52 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:52 fixturedef = self._get_active_fixturedef(argname) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:52 fixturedef.execute(request=subrequest) 21:19:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:52 21:19:52 self = 21:19:52 request = > 21:19:52 21:19:52 def execute(self, request: SubRequest) -> FixtureValue: 21:19:52 """Return the value of this fixture, executing it if not cached.""" 21:19:52 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:52 # This needs to be done before checking if we have a cached value, since 21:19:52 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:52 # parametrization, they finalize themselves and fixtures depending on it 21:19:52 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:52 # See #4871 21:19:52 requested_fixtures_that_should_finalize_us = [] 21:19:52 for argname in self.argnames: 21:19:52 fixturedef = request._get_active_fixturedef(argname) 21:19:52 # Saves requested fixtures in a list so we later can add our finalizer 21:19:52 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:52 # down first. This is generally handled by SetupState, but still currently 21:19:52 # needed when this fixture is not parametrized but depends on a parametrized 21:19:52 # fixture. 21:19:52 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:52 21:19:52 # Check for (and return) cached value/exception. 21:19:52 if self.cached_result is not None: 21:19:52 request_cache_key = self.cache_key(request) 21:19:52 cache_key = self.cached_result[1] 21:19:52 try: 21:19:52 # Attempt to make a normal == check: this might fail for objects 21:19:52 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:52 cache_hit = bool(request_cache_key == cache_key) 21:19:52 except (ValueError, RuntimeError): 21:19:52 # If the comparison raises, use 'is' as fallback. 21:19:52 cache_hit = request_cache_key is cache_key 21:19:52 21:19:52 if cache_hit: 21:19:52 if self.cached_result[2] is not None: 21:19:52 exc, exc_tb = self.cached_result[2] 21:19:52 raise exc.with_traceback(exc_tb) 21:19:52 else: 21:19:52 return self.cached_result[0] 21:19:52 # We have a previous but differently parametrized fixture instance 21:19:52 # so we need to tear it down before creating a new one. 21:19:52 self.finish(request) 21:19:52 assert self.cached_result is None 21:19:52 21:19:52 # Add finalizer to requested fixtures we saved previously. 21:19:52 # We make sure to do this after checking for cached value to avoid 21:19:52 # adding our finalizer multiple times. (#12135) 21:19:52 finalizer = functools.partial(self.finish, request=request) 21:19:52 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:52 parent_fixture.addfinalizer(finalizer) 21:19:52 21:19:52 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:52 # which is executed last. 21:19:52 > assert not self._finalizers 21:19:52 ^^^^^^^^^^^^^^^^^^^^ 21:19:52 E AssertionError 21:19:52 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:52 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 21:19:52 21:19:52 cls = 21:19:52 func = . at 0x7fe873840ea0> 21:19:52 when = 'setup' 21:19:52 reraise = (, ) 21:19:52 21:19:52 @classmethod 21:19:52 def from_call( 21:19:52 cls, 21:19:52 func: Callable[[], TResult], 21:19:52 when: Literal["collect", "setup", "call", "teardown"], 21:19:52 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:52 ) -> CallInfo[TResult]: 21:19:52 """Call func, wrapping the result in a CallInfo. 21:19:52 21:19:52 :param func: 21:19:52 The function to call. Called without arguments. 21:19:52 :type func: Callable[[], _pytest.runner.TResult] 21:19:52 :param when: 21:19:52 The phase in which the function is called. 21:19:52 :param reraise: 21:19:52 Exception or exceptions that shall propagate if raised by the 21:19:52 function, instead of being wrapped in the CallInfo. 21:19:52 """ 21:19:52 excinfo = None 21:19:52 instant = timing.Instant() 21:19:52 try: 21:19:52 > result: TResult | None = func() 21:19:52 ^^^^^^ 21:19:52 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:52 lambda: runtest_hook(item=item, **kwds), 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:52 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:52 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:52 yield 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:52 return (yield) 21:19:52 ^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:52 item.session._setupstate.setup(item) 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:52 col.setup() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:52 super().setup() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:52 self._request._fillfixtures() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:52 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:52 fixturedef = self._get_active_fixturedef(argname) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:52 fixturedef.execute(request=subrequest) 21:19:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:52 21:19:52 self = 21:19:52 request = > 21:19:52 21:19:52 def execute(self, request: SubRequest) -> FixtureValue: 21:19:52 """Return the value of this fixture, executing it if not cached.""" 21:19:52 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:52 # This needs to be done before checking if we have a cached value, since 21:19:52 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:52 # parametrization, they finalize themselves and fixtures depending on it 21:19:52 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:52 # See #4871 21:19:52 requested_fixtures_that_should_finalize_us = [] 21:19:52 for argname in self.argnames: 21:19:52 fixturedef = request._get_active_fixturedef(argname) 21:19:52 # Saves requested fixtures in a list so we later can add our finalizer 21:19:52 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:52 # down first. This is generally handled by SetupState, but still currently 21:19:52 # needed when this fixture is not parametrized but depends on a parametrized 21:19:52 # fixture. 21:19:52 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:52 21:19:52 # Check for (and return) cached value/exception. 21:19:52 if self.cached_result is not None: 21:19:52 request_cache_key = self.cache_key(request) 21:19:52 cache_key = self.cached_result[1] 21:19:52 try: 21:19:52 # Attempt to make a normal == check: this might fail for objects 21:19:52 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:52 cache_hit = bool(request_cache_key == cache_key) 21:19:52 except (ValueError, RuntimeError): 21:19:52 # If the comparison raises, use 'is' as fallback. 21:19:52 cache_hit = request_cache_key is cache_key 21:19:52 21:19:52 if cache_hit: 21:19:52 if self.cached_result[2] is not None: 21:19:52 exc, exc_tb = self.cached_result[2] 21:19:52 raise exc.with_traceback(exc_tb) 21:19:52 else: 21:19:52 return self.cached_result[0] 21:19:52 # We have a previous but differently parametrized fixture instance 21:19:52 # so we need to tear it down before creating a new one. 21:19:52 self.finish(request) 21:19:52 assert self.cached_result is None 21:19:52 21:19:52 # Add finalizer to requested fixtures we saved previously. 21:19:52 # We make sure to do this after checking for cached value to avoid 21:19:52 # adding our finalizer multiple times. (#12135) 21:19:52 finalizer = functools.partial(self.finish, request=request) 21:19:52 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:52 parent_fixture.addfinalizer(finalizer) 21:19:52 21:19:52 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:52 # which is executed last. 21:19:52 > assert not self._finalizers 21:19:52 ^^^^^^^^^^^^^^^^^^^^ 21:19:52 E AssertionError 21:19:52 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:52 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 21:19:52 21:19:52 cls = 21:19:52 func = . at 0x7fe871126700> 21:19:52 when = 'setup' 21:19:52 reraise = (, ) 21:19:52 21:19:52 @classmethod 21:19:52 def from_call( 21:19:52 cls, 21:19:52 func: Callable[[], TResult], 21:19:52 when: Literal["collect", "setup", "call", "teardown"], 21:19:52 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:52 ) -> CallInfo[TResult]: 21:19:52 """Call func, wrapping the result in a CallInfo. 21:19:52 21:19:52 :param func: 21:19:52 The function to call. Called without arguments. 21:19:52 :type func: Callable[[], _pytest.runner.TResult] 21:19:52 :param when: 21:19:52 The phase in which the function is called. 21:19:52 :param reraise: 21:19:52 Exception or exceptions that shall propagate if raised by the 21:19:52 function, instead of being wrapped in the CallInfo. 21:19:52 """ 21:19:52 excinfo = None 21:19:52 instant = timing.Instant() 21:19:52 try: 21:19:52 > result: TResult | None = func() 21:19:52 ^^^^^^ 21:19:52 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:52 lambda: runtest_hook(item=item, **kwds), 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:52 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:52 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:52 yield 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:52 return (yield) 21:19:52 ^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:52 item.session._setupstate.setup(item) 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:52 col.setup() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:52 super().setup() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:52 self._request._fillfixtures() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:52 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:52 fixturedef = self._get_active_fixturedef(argname) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:52 fixturedef.execute(request=subrequest) 21:19:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:52 21:19:52 self = 21:19:52 request = > 21:19:52 21:19:52 def execute(self, request: SubRequest) -> FixtureValue: 21:19:52 """Return the value of this fixture, executing it if not cached.""" 21:19:52 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:52 # This needs to be done before checking if we have a cached value, since 21:19:52 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:52 # parametrization, they finalize themselves and fixtures depending on it 21:19:52 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:52 # See #4871 21:19:52 requested_fixtures_that_should_finalize_us = [] 21:19:52 for argname in self.argnames: 21:19:52 fixturedef = request._get_active_fixturedef(argname) 21:19:52 # Saves requested fixtures in a list so we later can add our finalizer 21:19:52 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:52 # down first. This is generally handled by SetupState, but still currently 21:19:52 # needed when this fixture is not parametrized but depends on a parametrized 21:19:52 # fixture. 21:19:52 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:52 21:19:52 # Check for (and return) cached value/exception. 21:19:52 if self.cached_result is not None: 21:19:52 request_cache_key = self.cache_key(request) 21:19:52 cache_key = self.cached_result[1] 21:19:52 try: 21:19:52 # Attempt to make a normal == check: this might fail for objects 21:19:52 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:52 cache_hit = bool(request_cache_key == cache_key) 21:19:52 except (ValueError, RuntimeError): 21:19:52 # If the comparison raises, use 'is' as fallback. 21:19:52 cache_hit = request_cache_key is cache_key 21:19:52 21:19:52 if cache_hit: 21:19:52 if self.cached_result[2] is not None: 21:19:52 exc, exc_tb = self.cached_result[2] 21:19:52 raise exc.with_traceback(exc_tb) 21:19:52 else: 21:19:52 return self.cached_result[0] 21:19:52 # We have a previous but differently parametrized fixture instance 21:19:52 # so we need to tear it down before creating a new one. 21:19:52 self.finish(request) 21:19:52 assert self.cached_result is None 21:19:52 21:19:52 # Add finalizer to requested fixtures we saved previously. 21:19:52 # We make sure to do this after checking for cached value to avoid 21:19:52 # adding our finalizer multiple times. (#12135) 21:19:52 finalizer = functools.partial(self.finish, request=request) 21:19:52 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:52 parent_fixture.addfinalizer(finalizer) 21:19:52 21:19:52 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:52 # which is executed last. 21:19:52 > assert not self._finalizers 21:19:52 ^^^^^^^^^^^^^^^^^^^^ 21:19:52 E AssertionError 21:19:52 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:52 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 21:19:52 21:19:52 cls = 21:19:52 func = . at 0x7fe8728f7e20> 21:19:52 when = 'setup' 21:19:52 reraise = (, ) 21:19:52 21:19:52 @classmethod 21:19:52 def from_call( 21:19:52 cls, 21:19:52 func: Callable[[], TResult], 21:19:52 when: Literal["collect", "setup", "call", "teardown"], 21:19:52 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:52 ) -> CallInfo[TResult]: 21:19:52 """Call func, wrapping the result in a CallInfo. 21:19:52 21:19:52 :param func: 21:19:52 The function to call. Called without arguments. 21:19:52 :type func: Callable[[], _pytest.runner.TResult] 21:19:52 :param when: 21:19:52 The phase in which the function is called. 21:19:52 :param reraise: 21:19:52 Exception or exceptions that shall propagate if raised by the 21:19:52 function, instead of being wrapped in the CallInfo. 21:19:52 """ 21:19:52 excinfo = None 21:19:52 instant = timing.Instant() 21:19:52 try: 21:19:52 > result: TResult | None = func() 21:19:52 ^^^^^^ 21:19:52 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:52 lambda: runtest_hook(item=item, **kwds), 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:52 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:52 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:52 yield 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:52 return (yield) 21:19:52 ^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:52 item.session._setupstate.setup(item) 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:52 col.setup() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:52 super().setup() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:52 self._request._fillfixtures() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:52 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:52 fixturedef = self._get_active_fixturedef(argname) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:52 fixturedef.execute(request=subrequest) 21:19:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:52 21:19:52 self = 21:19:52 request = > 21:19:52 21:19:52 def execute(self, request: SubRequest) -> FixtureValue: 21:19:52 """Return the value of this fixture, executing it if not cached.""" 21:19:52 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:52 # This needs to be done before checking if we have a cached value, since 21:19:52 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:52 # parametrization, they finalize themselves and fixtures depending on it 21:19:52 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:52 # See #4871 21:19:52 requested_fixtures_that_should_finalize_us = [] 21:19:52 for argname in self.argnames: 21:19:52 fixturedef = request._get_active_fixturedef(argname) 21:19:52 # Saves requested fixtures in a list so we later can add our finalizer 21:19:52 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:52 # down first. This is generally handled by SetupState, but still currently 21:19:52 # needed when this fixture is not parametrized but depends on a parametrized 21:19:52 # fixture. 21:19:52 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:52 21:19:52 # Check for (and return) cached value/exception. 21:19:52 if self.cached_result is not None: 21:19:52 request_cache_key = self.cache_key(request) 21:19:52 cache_key = self.cached_result[1] 21:19:52 try: 21:19:52 # Attempt to make a normal == check: this might fail for objects 21:19:52 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:52 cache_hit = bool(request_cache_key == cache_key) 21:19:52 except (ValueError, RuntimeError): 21:19:52 # If the comparison raises, use 'is' as fallback. 21:19:52 cache_hit = request_cache_key is cache_key 21:19:52 21:19:52 if cache_hit: 21:19:52 if self.cached_result[2] is not None: 21:19:52 exc, exc_tb = self.cached_result[2] 21:19:52 raise exc.with_traceback(exc_tb) 21:19:52 else: 21:19:52 return self.cached_result[0] 21:19:52 # We have a previous but differently parametrized fixture instance 21:19:52 # so we need to tear it down before creating a new one. 21:19:52 self.finish(request) 21:19:52 assert self.cached_result is None 21:19:52 21:19:52 # Add finalizer to requested fixtures we saved previously. 21:19:52 # We make sure to do this after checking for cached value to avoid 21:19:52 # adding our finalizer multiple times. (#12135) 21:19:52 finalizer = functools.partial(self.finish, request=request) 21:19:52 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:52 parent_fixture.addfinalizer(finalizer) 21:19:52 21:19:52 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:52 # which is executed last. 21:19:52 > assert not self._finalizers 21:19:52 ^^^^^^^^^^^^^^^^^^^^ 21:19:52 E AssertionError 21:19:52 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:52 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 21:19:52 21:19:52 cls = 21:19:52 func = . at 0x7fe871126700> 21:19:52 when = 'setup' 21:19:52 reraise = (, ) 21:19:52 21:19:52 @classmethod 21:19:52 def from_call( 21:19:52 cls, 21:19:52 func: Callable[[], TResult], 21:19:52 when: Literal["collect", "setup", "call", "teardown"], 21:19:52 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:52 ) -> CallInfo[TResult]: 21:19:52 """Call func, wrapping the result in a CallInfo. 21:19:52 21:19:52 :param func: 21:19:52 The function to call. Called without arguments. 21:19:52 :type func: Callable[[], _pytest.runner.TResult] 21:19:52 :param when: 21:19:52 The phase in which the function is called. 21:19:52 :param reraise: 21:19:52 Exception or exceptions that shall propagate if raised by the 21:19:52 function, instead of being wrapped in the CallInfo. 21:19:52 """ 21:19:52 excinfo = None 21:19:52 instant = timing.Instant() 21:19:52 try: 21:19:52 > result: TResult | None = func() 21:19:52 ^^^^^^ 21:19:52 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:52 lambda: runtest_hook(item=item, **kwds), 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:52 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:52 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:52 yield 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:52 return (yield) 21:19:52 ^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:52 item.session._setupstate.setup(item) 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:52 col.setup() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:52 super().setup() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:52 self._request._fillfixtures() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:52 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:52 fixturedef = self._get_active_fixturedef(argname) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:52 fixturedef.execute(request=subrequest) 21:19:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:52 21:19:52 self = 21:19:52 request = > 21:19:52 21:19:52 def execute(self, request: SubRequest) -> FixtureValue: 21:19:52 """Return the value of this fixture, executing it if not cached.""" 21:19:52 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:52 # This needs to be done before checking if we have a cached value, since 21:19:52 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:52 # parametrization, they finalize themselves and fixtures depending on it 21:19:52 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:52 # See #4871 21:19:52 requested_fixtures_that_should_finalize_us = [] 21:19:52 for argname in self.argnames: 21:19:52 fixturedef = request._get_active_fixturedef(argname) 21:19:52 # Saves requested fixtures in a list so we later can add our finalizer 21:19:52 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:52 # down first. This is generally handled by SetupState, but still currently 21:19:52 # needed when this fixture is not parametrized but depends on a parametrized 21:19:52 # fixture. 21:19:52 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:52 21:19:52 # Check for (and return) cached value/exception. 21:19:52 if self.cached_result is not None: 21:19:52 request_cache_key = self.cache_key(request) 21:19:52 cache_key = self.cached_result[1] 21:19:52 try: 21:19:52 # Attempt to make a normal == check: this might fail for objects 21:19:52 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:52 cache_hit = bool(request_cache_key == cache_key) 21:19:52 except (ValueError, RuntimeError): 21:19:52 # If the comparison raises, use 'is' as fallback. 21:19:52 cache_hit = request_cache_key is cache_key 21:19:52 21:19:52 if cache_hit: 21:19:52 if self.cached_result[2] is not None: 21:19:52 exc, exc_tb = self.cached_result[2] 21:19:52 raise exc.with_traceback(exc_tb) 21:19:52 else: 21:19:52 return self.cached_result[0] 21:19:52 # We have a previous but differently parametrized fixture instance 21:19:52 # so we need to tear it down before creating a new one. 21:19:52 self.finish(request) 21:19:52 assert self.cached_result is None 21:19:52 21:19:52 # Add finalizer to requested fixtures we saved previously. 21:19:52 # We make sure to do this after checking for cached value to avoid 21:19:52 # adding our finalizer multiple times. (#12135) 21:19:52 finalizer = functools.partial(self.finish, request=request) 21:19:52 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:52 parent_fixture.addfinalizer(finalizer) 21:19:52 21:19:52 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:52 # which is executed last. 21:19:52 > assert not self._finalizers 21:19:52 ^^^^^^^^^^^^^^^^^^^^ 21:19:52 E AssertionError 21:19:52 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:52 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 21:19:52 21:19:52 cls = 21:19:52 func = . at 0x7fe87114b600> 21:19:52 when = 'setup' 21:19:52 reraise = (, ) 21:19:52 21:19:52 @classmethod 21:19:52 def from_call( 21:19:52 cls, 21:19:52 func: Callable[[], TResult], 21:19:52 when: Literal["collect", "setup", "call", "teardown"], 21:19:52 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:52 ) -> CallInfo[TResult]: 21:19:52 """Call func, wrapping the result in a CallInfo. 21:19:52 21:19:52 :param func: 21:19:52 The function to call. Called without arguments. 21:19:52 :type func: Callable[[], _pytest.runner.TResult] 21:19:52 :param when: 21:19:52 The phase in which the function is called. 21:19:52 :param reraise: 21:19:52 Exception or exceptions that shall propagate if raised by the 21:19:52 function, instead of being wrapped in the CallInfo. 21:19:52 """ 21:19:52 excinfo = None 21:19:52 instant = timing.Instant() 21:19:52 try: 21:19:52 > result: TResult | None = func() 21:19:52 ^^^^^^ 21:19:52 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:52 lambda: runtest_hook(item=item, **kwds), 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:52 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:52 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:52 yield 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:52 return (yield) 21:19:52 ^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:52 item.session._setupstate.setup(item) 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:52 col.setup() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:52 super().setup() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:52 self._request._fillfixtures() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:52 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:52 fixturedef = self._get_active_fixturedef(argname) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:52 fixturedef.execute(request=subrequest) 21:19:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:52 21:19:52 self = 21:19:52 request = > 21:19:52 21:19:52 def execute(self, request: SubRequest) -> FixtureValue: 21:19:52 """Return the value of this fixture, executing it if not cached.""" 21:19:52 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:52 # This needs to be done before checking if we have a cached value, since 21:19:52 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:52 # parametrization, they finalize themselves and fixtures depending on it 21:19:52 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:52 # See #4871 21:19:52 requested_fixtures_that_should_finalize_us = [] 21:19:52 for argname in self.argnames: 21:19:52 fixturedef = request._get_active_fixturedef(argname) 21:19:52 # Saves requested fixtures in a list so we later can add our finalizer 21:19:52 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:52 # down first. This is generally handled by SetupState, but still currently 21:19:52 # needed when this fixture is not parametrized but depends on a parametrized 21:19:52 # fixture. 21:19:52 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:52 21:19:52 # Check for (and return) cached value/exception. 21:19:52 if self.cached_result is not None: 21:19:52 request_cache_key = self.cache_key(request) 21:19:52 cache_key = self.cached_result[1] 21:19:52 try: 21:19:52 # Attempt to make a normal == check: this might fail for objects 21:19:52 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:52 cache_hit = bool(request_cache_key == cache_key) 21:19:52 except (ValueError, RuntimeError): 21:19:52 # If the comparison raises, use 'is' as fallback. 21:19:52 cache_hit = request_cache_key is cache_key 21:19:52 21:19:52 if cache_hit: 21:19:52 if self.cached_result[2] is not None: 21:19:52 exc, exc_tb = self.cached_result[2] 21:19:52 raise exc.with_traceback(exc_tb) 21:19:52 else: 21:19:52 return self.cached_result[0] 21:19:52 # We have a previous but differently parametrized fixture instance 21:19:52 # so we need to tear it down before creating a new one. 21:19:52 self.finish(request) 21:19:52 assert self.cached_result is None 21:19:52 21:19:52 # Add finalizer to requested fixtures we saved previously. 21:19:52 # We make sure to do this after checking for cached value to avoid 21:19:52 # adding our finalizer multiple times. (#12135) 21:19:52 finalizer = functools.partial(self.finish, request=request) 21:19:52 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:52 parent_fixture.addfinalizer(finalizer) 21:19:52 21:19:52 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:52 # which is executed last. 21:19:52 > assert not self._finalizers 21:19:52 ^^^^^^^^^^^^^^^^^^^^ 21:19:52 E AssertionError 21:19:52 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:52 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 21:19:52 21:19:52 cls = 21:19:52 func = . at 0x7fe871149d00> 21:19:52 when = 'setup' 21:19:52 reraise = (, ) 21:19:52 21:19:52 @classmethod 21:19:52 def from_call( 21:19:52 cls, 21:19:52 func: Callable[[], TResult], 21:19:52 when: Literal["collect", "setup", "call", "teardown"], 21:19:52 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:52 ) -> CallInfo[TResult]: 21:19:52 """Call func, wrapping the result in a CallInfo. 21:19:52 21:19:52 :param func: 21:19:52 The function to call. Called without arguments. 21:19:52 :type func: Callable[[], _pytest.runner.TResult] 21:19:52 :param when: 21:19:52 The phase in which the function is called. 21:19:52 :param reraise: 21:19:52 Exception or exceptions that shall propagate if raised by the 21:19:52 function, instead of being wrapped in the CallInfo. 21:19:52 """ 21:19:52 excinfo = None 21:19:52 instant = timing.Instant() 21:19:52 try: 21:19:52 > result: TResult | None = func() 21:19:52 ^^^^^^ 21:19:52 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:52 lambda: runtest_hook(item=item, **kwds), 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:52 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:52 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:52 yield 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:52 return (yield) 21:19:52 ^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:52 item.session._setupstate.setup(item) 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:52 col.setup() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:52 super().setup() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:52 self._request._fillfixtures() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:52 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:52 fixturedef = self._get_active_fixturedef(argname) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:52 fixturedef.execute(request=subrequest) 21:19:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:52 21:19:52 self = 21:19:52 request = > 21:19:52 21:19:52 def execute(self, request: SubRequest) -> FixtureValue: 21:19:52 """Return the value of this fixture, executing it if not cached.""" 21:19:52 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:52 # This needs to be done before checking if we have a cached value, since 21:19:52 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:52 # parametrization, they finalize themselves and fixtures depending on it 21:19:52 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:52 # See #4871 21:19:52 requested_fixtures_that_should_finalize_us = [] 21:19:52 for argname in self.argnames: 21:19:52 fixturedef = request._get_active_fixturedef(argname) 21:19:52 # Saves requested fixtures in a list so we later can add our finalizer 21:19:52 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:52 # down first. This is generally handled by SetupState, but still currently 21:19:52 # needed when this fixture is not parametrized but depends on a parametrized 21:19:52 # fixture. 21:19:52 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:52 21:19:52 # Check for (and return) cached value/exception. 21:19:52 if self.cached_result is not None: 21:19:52 request_cache_key = self.cache_key(request) 21:19:52 cache_key = self.cached_result[1] 21:19:52 try: 21:19:52 # Attempt to make a normal == check: this might fail for objects 21:19:52 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:52 cache_hit = bool(request_cache_key == cache_key) 21:19:52 except (ValueError, RuntimeError): 21:19:52 # If the comparison raises, use 'is' as fallback. 21:19:52 cache_hit = request_cache_key is cache_key 21:19:52 21:19:52 if cache_hit: 21:19:52 if self.cached_result[2] is not None: 21:19:52 exc, exc_tb = self.cached_result[2] 21:19:52 raise exc.with_traceback(exc_tb) 21:19:52 else: 21:19:52 return self.cached_result[0] 21:19:52 # We have a previous but differently parametrized fixture instance 21:19:52 # so we need to tear it down before creating a new one. 21:19:52 self.finish(request) 21:19:52 assert self.cached_result is None 21:19:52 21:19:52 # Add finalizer to requested fixtures we saved previously. 21:19:52 # We make sure to do this after checking for cached value to avoid 21:19:52 # adding our finalizer multiple times. (#12135) 21:19:52 finalizer = functools.partial(self.finish, request=request) 21:19:52 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:52 parent_fixture.addfinalizer(finalizer) 21:19:52 21:19:52 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:52 # which is executed last. 21:19:52 > assert not self._finalizers 21:19:52 ^^^^^^^^^^^^^^^^^^^^ 21:19:52 E AssertionError 21:19:52 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:52 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 21:19:52 21:19:52 cls = 21:19:52 func = . at 0x7fe87114b920> 21:19:52 when = 'setup' 21:19:52 reraise = (, ) 21:19:52 21:19:52 @classmethod 21:19:52 def from_call( 21:19:52 cls, 21:19:52 func: Callable[[], TResult], 21:19:52 when: Literal["collect", "setup", "call", "teardown"], 21:19:52 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:52 ) -> CallInfo[TResult]: 21:19:52 """Call func, wrapping the result in a CallInfo. 21:19:52 21:19:52 :param func: 21:19:52 The function to call. Called without arguments. 21:19:52 :type func: Callable[[], _pytest.runner.TResult] 21:19:52 :param when: 21:19:52 The phase in which the function is called. 21:19:52 :param reraise: 21:19:52 Exception or exceptions that shall propagate if raised by the 21:19:52 function, instead of being wrapped in the CallInfo. 21:19:52 """ 21:19:52 excinfo = None 21:19:52 instant = timing.Instant() 21:19:52 try: 21:19:52 > result: TResult | None = func() 21:19:52 ^^^^^^ 21:19:52 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:52 lambda: runtest_hook(item=item, **kwds), 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:52 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:52 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:52 yield 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:52 return (yield) 21:19:52 ^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:52 item.session._setupstate.setup(item) 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:52 col.setup() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:52 super().setup() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:52 self._request._fillfixtures() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:52 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:52 fixturedef = self._get_active_fixturedef(argname) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:52 fixturedef.execute(request=subrequest) 21:19:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:52 21:19:52 self = 21:19:52 request = > 21:19:52 21:19:52 def execute(self, request: SubRequest) -> FixtureValue: 21:19:52 """Return the value of this fixture, executing it if not cached.""" 21:19:52 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:52 # This needs to be done before checking if we have a cached value, since 21:19:52 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:52 # parametrization, they finalize themselves and fixtures depending on it 21:19:52 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:52 # See #4871 21:19:52 requested_fixtures_that_should_finalize_us = [] 21:19:52 for argname in self.argnames: 21:19:52 fixturedef = request._get_active_fixturedef(argname) 21:19:52 # Saves requested fixtures in a list so we later can add our finalizer 21:19:52 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:52 # down first. This is generally handled by SetupState, but still currently 21:19:52 # needed when this fixture is not parametrized but depends on a parametrized 21:19:52 # fixture. 21:19:52 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:52 21:19:52 # Check for (and return) cached value/exception. 21:19:52 if self.cached_result is not None: 21:19:52 request_cache_key = self.cache_key(request) 21:19:52 cache_key = self.cached_result[1] 21:19:52 try: 21:19:52 # Attempt to make a normal == check: this might fail for objects 21:19:52 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:52 cache_hit = bool(request_cache_key == cache_key) 21:19:52 except (ValueError, RuntimeError): 21:19:52 # If the comparison raises, use 'is' as fallback. 21:19:52 cache_hit = request_cache_key is cache_key 21:19:52 21:19:52 if cache_hit: 21:19:52 if self.cached_result[2] is not None: 21:19:52 exc, exc_tb = self.cached_result[2] 21:19:52 raise exc.with_traceback(exc_tb) 21:19:52 else: 21:19:52 return self.cached_result[0] 21:19:52 # We have a previous but differently parametrized fixture instance 21:19:52 # so we need to tear it down before creating a new one. 21:19:52 self.finish(request) 21:19:52 assert self.cached_result is None 21:19:52 21:19:52 # Add finalizer to requested fixtures we saved previously. 21:19:52 # We make sure to do this after checking for cached value to avoid 21:19:52 # adding our finalizer multiple times. (#12135) 21:19:52 finalizer = functools.partial(self.finish, request=request) 21:19:52 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:52 parent_fixture.addfinalizer(finalizer) 21:19:52 21:19:52 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:52 # which is executed last. 21:19:52 > assert not self._finalizers 21:19:52 ^^^^^^^^^^^^^^^^^^^^ 21:19:52 E AssertionError 21:19:52 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:52 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 21:19:52 21:19:52 cls = 21:19:52 func = . at 0x7fe87114b7e0> 21:19:52 when = 'setup' 21:19:52 reraise = (, ) 21:19:52 21:19:52 @classmethod 21:19:52 def from_call( 21:19:52 cls, 21:19:52 func: Callable[[], TResult], 21:19:52 when: Literal["collect", "setup", "call", "teardown"], 21:19:52 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:52 ) -> CallInfo[TResult]: 21:19:52 """Call func, wrapping the result in a CallInfo. 21:19:52 21:19:52 :param func: 21:19:52 The function to call. Called without arguments. 21:19:52 :type func: Callable[[], _pytest.runner.TResult] 21:19:52 :param when: 21:19:52 The phase in which the function is called. 21:19:52 :param reraise: 21:19:52 Exception or exceptions that shall propagate if raised by the 21:19:52 function, instead of being wrapped in the CallInfo. 21:19:52 """ 21:19:52 excinfo = None 21:19:52 instant = timing.Instant() 21:19:52 try: 21:19:52 > result: TResult | None = func() 21:19:52 ^^^^^^ 21:19:52 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:52 lambda: runtest_hook(item=item, **kwds), 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:52 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:52 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:52 yield 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:52 return (yield) 21:19:52 ^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:52 item.session._setupstate.setup(item) 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:52 col.setup() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:52 super().setup() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:52 self._request._fillfixtures() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:52 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:52 fixturedef = self._get_active_fixturedef(argname) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:52 fixturedef.execute(request=subrequest) 21:19:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:52 21:19:52 self = 21:19:52 request = > 21:19:52 21:19:52 def execute(self, request: SubRequest) -> FixtureValue: 21:19:52 """Return the value of this fixture, executing it if not cached.""" 21:19:52 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:52 # This needs to be done before checking if we have a cached value, since 21:19:52 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:52 # parametrization, they finalize themselves and fixtures depending on it 21:19:52 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:52 # See #4871 21:19:52 requested_fixtures_that_should_finalize_us = [] 21:19:52 for argname in self.argnames: 21:19:52 fixturedef = request._get_active_fixturedef(argname) 21:19:52 # Saves requested fixtures in a list so we later can add our finalizer 21:19:52 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:52 # down first. This is generally handled by SetupState, but still currently 21:19:52 # needed when this fixture is not parametrized but depends on a parametrized 21:19:52 # fixture. 21:19:52 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:52 21:19:52 # Check for (and return) cached value/exception. 21:19:52 if self.cached_result is not None: 21:19:52 request_cache_key = self.cache_key(request) 21:19:52 cache_key = self.cached_result[1] 21:19:52 try: 21:19:52 # Attempt to make a normal == check: this might fail for objects 21:19:52 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:52 cache_hit = bool(request_cache_key == cache_key) 21:19:52 except (ValueError, RuntimeError): 21:19:52 # If the comparison raises, use 'is' as fallback. 21:19:52 cache_hit = request_cache_key is cache_key 21:19:52 21:19:52 if cache_hit: 21:19:52 if self.cached_result[2] is not None: 21:19:52 exc, exc_tb = self.cached_result[2] 21:19:52 raise exc.with_traceback(exc_tb) 21:19:52 else: 21:19:52 return self.cached_result[0] 21:19:52 # We have a previous but differently parametrized fixture instance 21:19:52 # so we need to tear it down before creating a new one. 21:19:52 self.finish(request) 21:19:52 assert self.cached_result is None 21:19:52 21:19:52 # Add finalizer to requested fixtures we saved previously. 21:19:52 # We make sure to do this after checking for cached value to avoid 21:19:52 # adding our finalizer multiple times. (#12135) 21:19:52 finalizer = functools.partial(self.finish, request=request) 21:19:52 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:52 parent_fixture.addfinalizer(finalizer) 21:19:52 21:19:52 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:52 # which is executed last. 21:19:52 > assert not self._finalizers 21:19:52 ^^^^^^^^^^^^^^^^^^^^ 21:19:52 E AssertionError 21:19:52 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:52 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 21:19:52 21:19:52 cls = 21:19:52 func = . at 0x7fe871126700> 21:19:52 when = 'setup' 21:19:52 reraise = (, ) 21:19:52 21:19:52 @classmethod 21:19:52 def from_call( 21:19:52 cls, 21:19:52 func: Callable[[], TResult], 21:19:52 when: Literal["collect", "setup", "call", "teardown"], 21:19:52 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:52 ) -> CallInfo[TResult]: 21:19:52 """Call func, wrapping the result in a CallInfo. 21:19:52 21:19:52 :param func: 21:19:52 The function to call. Called without arguments. 21:19:52 :type func: Callable[[], _pytest.runner.TResult] 21:19:52 :param when: 21:19:52 The phase in which the function is called. 21:19:52 :param reraise: 21:19:52 Exception or exceptions that shall propagate if raised by the 21:19:52 function, instead of being wrapped in the CallInfo. 21:19:52 """ 21:19:52 excinfo = None 21:19:52 instant = timing.Instant() 21:19:52 try: 21:19:52 > result: TResult | None = func() 21:19:52 ^^^^^^ 21:19:52 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:52 lambda: runtest_hook(item=item, **kwds), 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:52 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:52 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:52 yield 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:52 return (yield) 21:19:52 ^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:52 item.session._setupstate.setup(item) 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:52 col.setup() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:52 super().setup() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:52 self._request._fillfixtures() 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:52 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:52 fixturedef = self._get_active_fixturedef(argname) 21:19:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:52 fixturedef.execute(request=subrequest) 21:19:52 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:52 21:19:52 self = 21:19:52 request = > 21:19:52 21:19:52 def execute(self, request: SubRequest) -> FixtureValue: 21:19:52 """Return the value of this fixture, executing it if not cached.""" 21:19:52 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:52 # This needs to be done before checking if we have a cached value, since 21:19:52 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:52 # parametrization, they finalize themselves and fixtures depending on it 21:19:52 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:52 # See #4871 21:19:52 requested_fixtures_that_should_finalize_us = [] 21:19:52 for argname in self.argnames: 21:19:52 fixturedef = request._get_active_fixturedef(argname) 21:19:52 # Saves requested fixtures in a list so we later can add our finalizer 21:19:52 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:52 # down first. This is generally handled by SetupState, but still currently 21:19:52 # needed when this fixture is not parametrized but depends on a parametrized 21:19:52 # fixture. 21:19:52 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:52 21:19:52 # Check for (and return) cached value/exception. 21:19:52 if self.cached_result is not None: 21:19:52 request_cache_key = self.cache_key(request) 21:19:52 cache_key = self.cached_result[1] 21:19:52 try: 21:19:52 # Attempt to make a normal == check: this might fail for objects 21:19:52 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:52 cache_hit = bool(request_cache_key == cache_key) 21:19:52 except (ValueError, RuntimeError): 21:19:52 # If the comparison raises, use 'is' as fallback. 21:19:52 cache_hit = request_cache_key is cache_key 21:19:52 21:19:52 if cache_hit: 21:19:52 if self.cached_result[2] is not None: 21:19:52 exc, exc_tb = self.cached_result[2] 21:19:52 raise exc.with_traceback(exc_tb) 21:19:52 else: 21:19:52 return self.cached_result[0] 21:19:52 # We have a previous but differently parametrized fixture instance 21:19:52 # so we need to tear it down before creating a new one. 21:19:52 self.finish(request) 21:19:52 assert self.cached_result is None 21:19:52 21:19:52 # Add finalizer to requested fixtures we saved previously. 21:19:52 # We make sure to do this after checking for cached value to avoid 21:19:52 # adding our finalizer multiple times. (#12135) 21:19:52 finalizer = functools.partial(self.finish, request=request) 21:19:52 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:52 parent_fixture.addfinalizer(finalizer) 21:19:52 21:19:52 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:52 # which is executed last. 21:19:52 > assert not self._finalizers 21:19:52 ^^^^^^^^^^^^^^^^^^^^ 21:19:52 E AssertionError 21:19:52 21:19:52 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:52 =========================== short test summary info ============================ 21:19:52 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 21:19:52 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 21:19:52 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 21:19:52 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 21:19:52 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 21:19:52 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 21:19:52 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 21:19:52 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 21:19:52 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 21:19:52 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 21:19:52 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 21:19:52 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 21:19:52 12 errors in 102.38s (0:01:42) 21:19:52 tests71: exit 1 (102.67 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 7.1 pid=5008 21:19:57 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 21:20:03 ==================================== ERRORS ==================================== 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 21:20:03 21:20:03 cls = 21:20:03 21:20:03 @classmethod 21:20:03 def setUpClass(cls): 21:20:03 > cls.processes = test_utils.start_tpce() 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 21:20:03 transportpce_tests/2.2.1/test01_portmapping.py:33: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 def start_tpce(): 21:20:03 if 'NO_ODL_STARTUP' in os.environ: 21:20:03 print('No OpenDaylight instance to start!') 21:20:03 return [] 21:20:03 print('starting OpenDaylight...') 21:20:03 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 21:20:03 process = start_lighty() 21:20:03 else: 21:20:03 process = start_karaf() 21:20:03 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 21:20:03 print('OpenDaylight started !') 21:20:03 else: 21:20:03 print('OpenDaylight failed to start !') 21:20:03 shutdown_process(process) 21:20:03 for pid in process_list: 21:20:03 shutdown_process(pid) 21:20:03 > sys.exit(1) 21:20:03 E SystemExit: 1 21:20:03 21:20:03 transportpce_tests/common/test_utils.py:232: SystemExit 21:20:03 ---------------------------- Captured stdout setup ----------------------------- 21:20:03 starting OpenDaylight... 21:20:03 starting KARAF (karaf221) TransportPCE build... 21:20:03 Pattern not found after 100 seconds! OpenDaylight failed to start ! 21:20:03 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b1767560> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b1083ec0> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b281aa20> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b37604a0> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b10deca0> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b1083ec0> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b281aa20> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b10dccc0> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b17676a0> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b1083ec0> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b10dc360> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b17676a0> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b10df9c0> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b10df880> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b1766340> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b1766020> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b1766340> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b1766020> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b10dfb00> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b1766340> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b10dcb80> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b10dfc40> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b1766340> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b10df880> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b10dc360> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b1766340> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b10df1a0> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b10df100> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b1766340> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b10de5c0> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b10deca0> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b1766340> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b10df740> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 21:20:03 21:20:03 cls = 21:20:03 func = . at 0x7fe6b1766340> 21:20:03 when = 'setup' 21:20:03 reraise = (, ) 21:20:03 21:20:03 @classmethod 21:20:03 def from_call( 21:20:03 cls, 21:20:03 func: Callable[[], TResult], 21:20:03 when: Literal["collect", "setup", "call", "teardown"], 21:20:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:03 ) -> CallInfo[TResult]: 21:20:03 """Call func, wrapping the result in a CallInfo. 21:20:03 21:20:03 :param func: 21:20:03 The function to call. Called without arguments. 21:20:03 :type func: Callable[[], _pytest.runner.TResult] 21:20:03 :param when: 21:20:03 The phase in which the function is called. 21:20:03 :param reraise: 21:20:03 Exception or exceptions that shall propagate if raised by the 21:20:03 function, instead of being wrapped in the CallInfo. 21:20:03 """ 21:20:03 excinfo = None 21:20:03 instant = timing.Instant() 21:20:03 try: 21:20:03 > result: TResult | None = func() 21:20:03 ^^^^^^ 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:03 lambda: runtest_hook(item=item, **kwds), 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:03 yield 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:03 return (yield) 21:20:03 ^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:03 item.session._setupstate.setup(item) 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:03 col.setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:03 super().setup() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:03 self._request._fillfixtures() 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:03 fixturedef = self._get_active_fixturedef(argname) 21:20:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:03 fixturedef.execute(request=subrequest) 21:20:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:03 21:20:03 self = 21:20:03 request = > 21:20:03 21:20:03 def execute(self, request: SubRequest) -> FixtureValue: 21:20:03 """Return the value of this fixture, executing it if not cached.""" 21:20:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:03 # This needs to be done before checking if we have a cached value, since 21:20:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:03 # parametrization, they finalize themselves and fixtures depending on it 21:20:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:03 # See #4871 21:20:03 requested_fixtures_that_should_finalize_us = [] 21:20:03 for argname in self.argnames: 21:20:03 fixturedef = request._get_active_fixturedef(argname) 21:20:03 # Saves requested fixtures in a list so we later can add our finalizer 21:20:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:03 # down first. This is generally handled by SetupState, but still currently 21:20:03 # needed when this fixture is not parametrized but depends on a parametrized 21:20:03 # fixture. 21:20:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:03 21:20:03 # Check for (and return) cached value/exception. 21:20:03 if self.cached_result is not None: 21:20:03 request_cache_key = self.cache_key(request) 21:20:03 cache_key = self.cached_result[1] 21:20:03 try: 21:20:03 # Attempt to make a normal == check: this might fail for objects 21:20:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:03 cache_hit = bool(request_cache_key == cache_key) 21:20:03 except (ValueError, RuntimeError): 21:20:03 # If the comparison raises, use 'is' as fallback. 21:20:03 cache_hit = request_cache_key is cache_key 21:20:03 21:20:03 if cache_hit: 21:20:03 if self.cached_result[2] is not None: 21:20:03 exc, exc_tb = self.cached_result[2] 21:20:03 raise exc.with_traceback(exc_tb) 21:20:03 else: 21:20:03 return self.cached_result[0] 21:20:03 # We have a previous but differently parametrized fixture instance 21:20:03 # so we need to tear it down before creating a new one. 21:20:03 self.finish(request) 21:20:03 assert self.cached_result is None 21:20:03 21:20:03 # Add finalizer to requested fixtures we saved previously. 21:20:03 # We make sure to do this after checking for cached value to avoid 21:20:03 # adding our finalizer multiple times. (#12135) 21:20:03 finalizer = functools.partial(self.finish, request=request) 21:20:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:03 parent_fixture.addfinalizer(finalizer) 21:20:03 21:20:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:03 # which is executed last. 21:20:03 > assert not self._finalizers 21:20:03 ^^^^^^^^^^^^^^^^^^^^ 21:20:03 E AssertionError 21:20:03 21:20:03 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:03 =========================== short test summary info ============================ 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 21:20:03 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 21:20:03 35 errors in 106.72s (0:01:46) 21:20:03 tests71: FAIL ✖ in 1 minute 50.17 seconds 21:20:03 tests221: exit 1 (107.04 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 2.2.1 pid=5029 21:20:03 tests221: FAIL ✖ in 1 minute 53.58 seconds 21:20:03 tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:20:10 tests_hybrid: freeze> python -m pip freeze --all 21:20:10 tests_hybrid: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 21:20:10 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh hybrid 21:20:10 using environment variables from ./karaf221.env 21:20:10 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 21:21:51 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 21:22:00 ==================================== ERRORS ==================================== 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 21:22:00 21:22:00 cls = 21:22:00 21:22:00 @classmethod 21:22:00 def setUpClass(cls): 21:22:00 > cls.processes = test_utils.start_tpce() 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 21:22:00 transportpce_tests/hybrid/test01_device_change_notifications.py:77: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 def start_tpce(): 21:22:00 if 'NO_ODL_STARTUP' in os.environ: 21:22:00 print('No OpenDaylight instance to start!') 21:22:00 return [] 21:22:00 print('starting OpenDaylight...') 21:22:00 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 21:22:00 process = start_lighty() 21:22:00 else: 21:22:00 process = start_karaf() 21:22:00 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 21:22:00 print('OpenDaylight started !') 21:22:00 else: 21:22:00 print('OpenDaylight failed to start !') 21:22:00 shutdown_process(process) 21:22:00 for pid in process_list: 21:22:00 shutdown_process(pid) 21:22:00 > sys.exit(1) 21:22:00 E SystemExit: 1 21:22:00 21:22:00 transportpce_tests/common/test_utils.py:232: SystemExit 21:22:00 ---------------------------- Captured stdout setup ----------------------------- 21:22:00 starting OpenDaylight... 21:22:00 starting KARAF (karaf221) TransportPCE build... 21:22:00 Pattern not found after 100 seconds! OpenDaylight failed to start ! 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83af123e0> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83afaeac0> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83c69a7a0> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83af13ba0> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83af13f60> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83af13ba0> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83afae3e0> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83aed0360> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83d5e18a0> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83af13f60> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83afaf420> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83aed0040> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83d5e18a0> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83afaf880> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83d5e18a0> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83aed0220> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83afaf880> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83d5e18a0> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83aed0220> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83aed0400> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83aed0220> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83afac040> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83aed0400> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83afac040> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83afae660> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83aed0400> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83afaede0> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83afaeca0> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83aed0400> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83afafd80> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83afaf6a0> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83aed0400> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83afafc40> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83aed0400> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83afaf600> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83afaf740> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83aed0400> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83afafd80> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83afaeca0> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83aed0400> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83afac040> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83afaf740> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83afaf880> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83aed0400> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83afae660> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83aed0400> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83afaeb60> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83afaede0> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83aed0400> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 21:22:00 21:22:00 cls = 21:22:00 func = . at 0x7ff83afae3e0> 21:22:00 when = 'setup' 21:22:00 reraise = (, ) 21:22:00 21:22:00 @classmethod 21:22:00 def from_call( 21:22:00 cls, 21:22:00 func: Callable[[], TResult], 21:22:00 when: Literal["collect", "setup", "call", "teardown"], 21:22:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:22:00 ) -> CallInfo[TResult]: 21:22:00 """Call func, wrapping the result in a CallInfo. 21:22:00 21:22:00 :param func: 21:22:00 The function to call. Called without arguments. 21:22:00 :type func: Callable[[], _pytest.runner.TResult] 21:22:00 :param when: 21:22:00 The phase in which the function is called. 21:22:00 :param reraise: 21:22:00 Exception or exceptions that shall propagate if raised by the 21:22:00 function, instead of being wrapped in the CallInfo. 21:22:00 """ 21:22:00 excinfo = None 21:22:00 instant = timing.Instant() 21:22:00 try: 21:22:00 > result: TResult | None = func() 21:22:00 ^^^^^^ 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:22:00 lambda: runtest_hook(item=item, **kwds), 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:22:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:22:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:22:00 yield 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:22:00 return (yield) 21:22:00 ^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:22:00 item.session._setupstate.setup(item) 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:22:00 col.setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:22:00 super().setup() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:22:00 self._request._fillfixtures() 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:22:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:22:00 fixturedef = self._get_active_fixturedef(argname) 21:22:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:22:00 fixturedef.execute(request=subrequest) 21:22:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:22:00 21:22:00 self = 21:22:00 request = > 21:22:00 21:22:00 def execute(self, request: SubRequest) -> FixtureValue: 21:22:00 """Return the value of this fixture, executing it if not cached.""" 21:22:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:22:00 # This needs to be done before checking if we have a cached value, since 21:22:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:22:00 # parametrization, they finalize themselves and fixtures depending on it 21:22:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:22:00 # See #4871 21:22:00 requested_fixtures_that_should_finalize_us = [] 21:22:00 for argname in self.argnames: 21:22:00 fixturedef = request._get_active_fixturedef(argname) 21:22:00 # Saves requested fixtures in a list so we later can add our finalizer 21:22:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:22:00 # down first. This is generally handled by SetupState, but still currently 21:22:00 # needed when this fixture is not parametrized but depends on a parametrized 21:22:00 # fixture. 21:22:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:22:00 21:22:00 # Check for (and return) cached value/exception. 21:22:00 if self.cached_result is not None: 21:22:00 request_cache_key = self.cache_key(request) 21:22:00 cache_key = self.cached_result[1] 21:22:00 try: 21:22:00 # Attempt to make a normal == check: this might fail for objects 21:22:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:22:00 cache_hit = bool(request_cache_key == cache_key) 21:22:00 except (ValueError, RuntimeError): 21:22:00 # If the comparison raises, use 'is' as fallback. 21:22:00 cache_hit = request_cache_key is cache_key 21:22:00 21:22:00 if cache_hit: 21:22:00 if self.cached_result[2] is not None: 21:22:00 exc, exc_tb = self.cached_result[2] 21:22:00 raise exc.with_traceback(exc_tb) 21:22:00 else: 21:22:00 return self.cached_result[0] 21:22:00 # We have a previous but differently parametrized fixture instance 21:22:00 # so we need to tear it down before creating a new one. 21:22:00 self.finish(request) 21:22:00 assert self.cached_result is None 21:22:00 21:22:00 # Add finalizer to requested fixtures we saved previously. 21:22:00 # We make sure to do this after checking for cached value to avoid 21:22:00 # adding our finalizer multiple times. (#12135) 21:22:00 finalizer = functools.partial(self.finish, request=request) 21:22:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:22:00 parent_fixture.addfinalizer(finalizer) 21:22:00 21:22:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:22:00 # which is executed last. 21:22:00 > assert not self._finalizers 21:22:00 ^^^^^^^^^^^^^^^^^^^^ 21:22:00 E AssertionError 21:22:00 21:22:00 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:22:00 =========================== short test summary info ============================ 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 21:22:00 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 21:22:00 51 errors in 109.32s (0:01:49) 21:22:00 tests_hybrid: exit 1 (109.58 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh hybrid pid=5153 21:22:00 buildcontroller: FAIL code 1 (19.33=setup[8.44]+cmd[10.88] seconds) 21:22:00 sims: OK (11.08=setup[8.27]+cmd[2.80] seconds) 21:22:00 build_karaf_tests121: FAIL code 127 (14.55=setup[6.90]+cmd[7.64] seconds) 21:22:00 testsPCE: FAIL code 1 (172.29=setup[48.22]+cmd[124.07] seconds) 21:22:00 tests121: FAIL code 1 (112.59=setup[8.40]+cmd[104.19] seconds) 21:22:00 build_karaf_tests221: FAIL code 127 (12.71=setup[7.34]+cmd[5.37] seconds) 21:22:00 tests_tapi: FAIL code 1 (118.17=setup[8.40]+cmd[109.77] seconds) 21:22:00 tests221: FAIL code 1 (113.58=setup[6.54]+cmd[107.04] seconds) 21:22:00 build_karaf_tests71: FAIL code 127 (12.12=setup[6.56]+cmd[5.56] seconds) 21:22:00 tests71: FAIL code 1 (110.17=setup[7.50]+cmd[102.67] seconds) 21:22:00 build_karaf_tests190: FAIL code 127 (11.67=setup[6.36]+cmd[5.31] seconds) 21:22:00 tests190: FAIL code 1 (110.71=setup[8.46]+cmd[102.25] seconds) 21:22:00 tests_hybrid: FAIL code 1 (116.68=setup[7.10]+cmd[109.58] seconds) 21:22:00 buildlighty: FAIL code 9 (19.01=setup[8.21]+cmd[10.80] seconds) 21:22:00 docs: OK (19.56=setup[16.92]+cmd[2.65] seconds) 21:22:00 docs-linkcheck: OK (21.56=setup[16.86]+cmd[4.70] seconds) 21:22:00 checkbashisms: OK (3.06=setup[1.86]+cmd[0.00,0.04,1.15] seconds) 21:22:00 pre-commit: OK (66.17=setup[2.72]+cmd[0.00,0.00,54.12,9.32] seconds) 21:22:00 pylint: OK (30.20=setup[3.65]+cmd[26.56] seconds) 21:22:00 evaluation failed :( (570.30 seconds) 21:22:00 + tox_status=1 21:22:00 + echo '---> Completed tox runs' 21:22:00 ---> Completed tox runs 21:22:00 + for i in .tox/*/log 21:22:00 ++ echo .tox/build_karaf_tests121/log 21:22:00 ++ awk -F/ '{print $2}' 21:22:00 + tox_env=build_karaf_tests121 21:22:00 + cp -r .tox/build_karaf_tests121/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/build_karaf_tests121 21:22:00 + for i in .tox/*/log 21:22:00 ++ echo .tox/build_karaf_tests190/log 21:22:00 ++ awk -F/ '{print $2}' 21:22:00 + tox_env=build_karaf_tests190 21:22:00 + cp -r .tox/build_karaf_tests190/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/build_karaf_tests190 21:22:00 + for i in .tox/*/log 21:22:00 ++ echo .tox/build_karaf_tests221/log 21:22:00 ++ awk -F/ '{print $2}' 21:22:00 + tox_env=build_karaf_tests221 21:22:00 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/build_karaf_tests221 21:22:00 + for i in .tox/*/log 21:22:00 ++ echo .tox/build_karaf_tests71/log 21:22:00 ++ awk -F/ '{print $2}' 21:22:00 + tox_env=build_karaf_tests71 21:22:00 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/build_karaf_tests71 21:22:00 + for i in .tox/*/log 21:22:00 ++ awk -F/ '{print $2}' 21:22:00 ++ echo .tox/buildcontroller/log 21:22:00 + tox_env=buildcontroller 21:22:00 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/buildcontroller 21:22:00 + for i in .tox/*/log 21:22:00 ++ echo .tox/buildlighty/log 21:22:00 ++ awk -F/ '{print $2}' 21:22:00 + tox_env=buildlighty 21:22:00 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/buildlighty 21:22:00 + for i in .tox/*/log 21:22:00 ++ echo .tox/checkbashisms/log 21:22:00 ++ awk -F/ '{print $2}' 21:22:00 + tox_env=checkbashisms 21:22:00 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/checkbashisms 21:22:00 + for i in .tox/*/log 21:22:00 ++ echo .tox/docs-linkcheck/log 21:22:00 ++ awk -F/ '{print $2}' 21:22:00 + tox_env=docs-linkcheck 21:22:00 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/docs-linkcheck 21:22:00 + for i in .tox/*/log 21:22:00 ++ awk -F/ '{print $2}' 21:22:00 ++ echo .tox/docs/log 21:22:00 + tox_env=docs 21:22:00 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/docs 21:22:00 + for i in .tox/*/log 21:22:00 ++ echo .tox/pre-commit/log 21:22:00 ++ awk -F/ '{print $2}' 21:22:00 + tox_env=pre-commit 21:22:00 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/pre-commit 21:22:00 + for i in .tox/*/log 21:22:00 ++ echo .tox/pylint/log 21:22:00 ++ awk -F/ '{print $2}' 21:22:00 + tox_env=pylint 21:22:00 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/pylint 21:22:00 + for i in .tox/*/log 21:22:00 ++ echo .tox/sims/log 21:22:00 ++ awk -F/ '{print $2}' 21:22:00 + tox_env=sims 21:22:00 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/sims 21:22:00 + for i in .tox/*/log 21:22:00 ++ echo .tox/tests121/log 21:22:00 ++ awk -F/ '{print $2}' 21:22:00 + tox_env=tests121 21:22:00 + cp -r .tox/tests121/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests121 21:22:00 + for i in .tox/*/log 21:22:00 ++ echo .tox/tests190/log 21:22:00 ++ awk -F/ '{print $2}' 21:22:00 + tox_env=tests190 21:22:00 + cp -r .tox/tests190/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests190 21:22:00 + for i in .tox/*/log 21:22:00 ++ echo .tox/tests221/log 21:22:00 ++ awk -F/ '{print $2}' 21:22:00 + tox_env=tests221 21:22:00 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests221 21:22:00 + for i in .tox/*/log 21:22:00 ++ echo .tox/tests71/log 21:22:00 ++ awk -F/ '{print $2}' 21:22:00 + tox_env=tests71 21:22:00 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests71 21:22:00 + for i in .tox/*/log 21:22:00 ++ echo .tox/testsPCE/log 21:22:00 ++ awk -F/ '{print $2}' 21:22:00 + tox_env=testsPCE 21:22:00 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/testsPCE 21:22:00 + for i in .tox/*/log 21:22:00 ++ echo .tox/tests_hybrid/log 21:22:00 ++ awk -F/ '{print $2}' 21:22:00 + tox_env=tests_hybrid 21:22:00 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests_hybrid 21:22:00 + for i in .tox/*/log 21:22:00 ++ echo .tox/tests_tapi/log 21:22:00 ++ awk -F/ '{print $2}' 21:22:00 + tox_env=tests_tapi 21:22:00 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests_tapi 21:22:00 + DOC_DIR=docs/_build/html 21:22:00 + [[ -d docs/_build/html ]] 21:22:00 + echo '---> Archiving generated docs' 21:22:00 ---> Archiving generated docs 21:22:00 + mv docs/_build/html /w/workspace/transportpce-tox-verify-chromium/archives/docs 21:22:00 + echo '---> tox-run.sh ends' 21:22:00 ---> tox-run.sh ends 21:22:00 + test 1 -eq 0 21:22:00 + exit 1 21:22:00 ++ '[' 1 = 1 ']' 21:22:00 ++ '[' -x /usr/bin/clear_console ']' 21:22:00 ++ /usr/bin/clear_console -q 21:22:00 Build step 'Execute shell' marked build as failure 21:22:00 $ ssh-agent -k 21:22:00 unset SSH_AUTH_SOCK; 21:22:00 unset SSH_AGENT_PID; 21:22:00 echo Agent pid 1566 killed; 21:22:00 [ssh-agent] Stopped. 21:22:00 [PostBuildScript] - [INFO] Executing post build scripts. 21:22:00 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins505996245255978427.sh 21:22:00 ---> sysstat.sh 21:22:01 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins12471202543127307272.sh 21:22:01 ---> package-listing.sh 21:22:01 ++ facter osfamily 21:22:01 ++ tr '[:upper:]' '[:lower:]' 21:22:01 + OS_FAMILY=debian 21:22:01 + workspace=/w/workspace/transportpce-tox-verify-chromium 21:22:01 + START_PACKAGES=/tmp/packages_start.txt 21:22:01 + END_PACKAGES=/tmp/packages_end.txt 21:22:01 + DIFF_PACKAGES=/tmp/packages_diff.txt 21:22:01 + PACKAGES=/tmp/packages_start.txt 21:22:01 + '[' /w/workspace/transportpce-tox-verify-chromium ']' 21:22:01 + PACKAGES=/tmp/packages_end.txt 21:22:01 + case "${OS_FAMILY}" in 21:22:01 + dpkg -l 21:22:01 + grep '^ii' 21:22:01 + '[' -f /tmp/packages_start.txt ']' 21:22:01 + '[' -f /tmp/packages_end.txt ']' 21:22:01 + diff /tmp/packages_start.txt /tmp/packages_end.txt 21:22:01 + '[' /w/workspace/transportpce-tox-verify-chromium ']' 21:22:01 + mkdir -p /w/workspace/transportpce-tox-verify-chromium/archives/ 21:22:01 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-chromium/archives/ 21:22:01 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins1995593231282327156.sh 21:22:01 ---> capture-instance-metadata.sh 21:22:01 Setup pyenv: 21:22:01 system 21:22:01 3.8.20 21:22:01 3.9.20 21:22:01 3.10.15 21:22:01 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 21:22:01 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-iL0j from file:/tmp/.os_lf_venv 21:22:01 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 21:22:03 lf-activate-venv(): INFO: Installing additional packages: lftools 21:22:13 lf-activate-venv(): INFO: Adding /tmp/venv-iL0j/bin to PATH 21:22:13 INFO: Running in OpenStack, capturing instance metadata 21:22:13 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins1175672277956156259.sh 21:22:13 provisioning config files... 21:22:14 Could not find credentials [logs] for transportpce-tox-verify-chromium #9 21:22:14 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-chromium@tmp/config9628453419461275898tmp 21:22:14 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 21:22:14 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 21:22:14 provisioning config files... 21:22:14 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 21:22:14 [EnvInject] - Injecting environment variables from a build step. 21:22:14 [EnvInject] - Injecting as environment variables the properties content 21:22:14 SERVER_ID=logs 21:22:14 21:22:14 [EnvInject] - Variables injected successfully. 21:22:14 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins15109795520925639030.sh 21:22:14 ---> create-netrc.sh 21:22:14 WARN: Log server credential not found. 21:22:14 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins6677323238193390797.sh 21:22:14 ---> python-tools-install.sh 21:22:14 Setup pyenv: 21:22:14 system 21:22:14 3.8.20 21:22:14 3.9.20 21:22:14 3.10.15 21:22:14 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 21:22:14 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-iL0j from file:/tmp/.os_lf_venv 21:22:14 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 21:22:16 lf-activate-venv(): INFO: Installing additional packages: lftools 21:22:25 lf-activate-venv(): INFO: Adding /tmp/venv-iL0j/bin to PATH 21:22:25 [transportpce-tox-verify-chromium] $ /bin/sh /tmp/jenkins15890965862519974678.sh 21:22:25 ---> uv-install.sh 21:22:25 uv 0.12.13 is already installed 21:22:25 uvx 0.12.13 (x86_64-unknown-linux-gnu) 21:22:25 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins16420445821545919038.sh 21:22:25 ---> sudo-logs.sh 21:22:25 Archiving 'sudo' log.. 21:22:26 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins7733255908049677766.sh 21:22:26 ---> job-cost.sh 21:22:26 INFO: Activating Python virtual environment... 21:22:26 Setup pyenv: 21:22:26 system 21:22:26 3.8.20 21:22:26 3.9.20 21:22:26 3.10.15 21:22:26 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 21:22:26 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-iL0j from file:/tmp/.os_lf_venv 21:22:26 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 21:22:28 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 21:22:33 lf-activate-venv(): INFO: Adding /tmp/venv-iL0j/bin to PATH 21:22:33 INFO: No stack-cost file found 21:22:33 INFO: Instance uptime: 736s 21:22:33 INFO: Fetching instance metadata (attempt 1 of 3)... 21:22:33 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 21:22:34 INFO: Successfully fetched instance metadata 21:22:34 INFO: Instance type: v3-standard-4 21:22:34 INFO: Retrieving pricing info for: v3-standard-4 21:22:34 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 21:22:34 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=736 21:22:34 INFO: Successfully fetched Vexxhost pricing API 21:22:34 INFO: Retrieved cost: 0.11 21:22:34 INFO: Retrieved resource: v3-standard-4 21:22:34 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-chromium/archives/cost 21:22:34 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-chromium/archives/cost.csv 21:22:34 INFO: Successfully archived job cost data 21:22:34 DEBUG: Cost data: transportpce-tox-verify-chromium,9,2026-09-10 21:22:34,v3-standard-4,736,0.11,0.00,FAILURE 21:22:34 [transportpce-tox-verify-chromium] $ /bin/bash -l /tmp/jenkins9846441138002947892.sh 21:22:34 ---> logs-deploy.sh 21:22:34 Setup pyenv: 21:22:34 system 21:22:34 3.8.20 21:22:34 3.9.20 21:22:34 3.10.15 21:22:34 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 21:22:34 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-iL0j from file:/tmp/.os_lf_venv 21:22:34 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 21:22:36 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 21:22:50 lf-activate-venv(): INFO: Adding /tmp/venv-iL0j/bin to PATH 21:22:50 WARNING: Nexus logging server not set 21:22:50 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-chromium/9/ 21:22:50 INFO: archiving logs to S3 21:22:51 ---> uname -a: 21:22:51 Linux prd-ubuntu2204-docker-4c-16g-6884 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 21:22:51 21:22:51 21:22:51 ---> lscpu: 21:22:51 Architecture: x86_64 21:22:51 CPU op-mode(s): 32-bit, 64-bit 21:22:51 Address sizes: 40 bits physical, 48 bits virtual 21:22:51 Byte Order: Little Endian 21:22:51 CPU(s): 4 21:22:51 On-line CPU(s) list: 0-3 21:22:51 Vendor ID: AuthenticAMD 21:22:51 Model name: AMD EPYC-Rome Processor 21:22:51 CPU family: 23 21:22:51 Model: 49 21:22:51 Thread(s) per core: 1 21:22:51 Core(s) per socket: 1 21:22:51 Socket(s): 4 21:22:51 Stepping: 0 21:22:51 BogoMIPS: 5600.00 21:22:51 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good nopl cpuid extd_apicid tsc_known_freq pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext perfctr_core ssbd ibrs ibpb stibp vmmcall fsgsbase tsc_adjust bmi1 avx2 smep bmi2 rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 clzero xsaveerptr wbnoinvd arat npt lbrv nrip_save tsc_scale vmcb_clean flushbyasid pausefilter pfthreshold v_vmsave_vmload vgif umip rdpid arch_capabilities 21:22:51 Virtualization: AMD-V 21:22:51 Hypervisor vendor: KVM 21:22:51 Virtualization type: full 21:22:51 L1d cache: 128 KiB (4 instances) 21:22:51 L1i cache: 128 KiB (4 instances) 21:22:51 L2 cache: 2 MiB (4 instances) 21:22:51 L3 cache: 64 MiB (4 instances) 21:22:51 NUMA node(s): 1 21:22:51 NUMA node0 CPU(s): 0-3 21:22:51 Vulnerability Gather data sampling: Not affected 21:22:51 Vulnerability Indirect target selection: Not affected 21:22:51 Vulnerability Itlb multihit: Not affected 21:22:51 Vulnerability L1tf: Not affected 21:22:51 Vulnerability Mds: Not affected 21:22:51 Vulnerability Meltdown: Not affected 21:22:51 Vulnerability Mmio stale data: Not affected 21:22:51 Vulnerability Reg file data sampling: Not affected 21:22:51 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 21:22:51 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 21:22:51 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 21:22:51 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 21:22:51 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 21:22:51 Vulnerability Srbds: Not affected 21:22:51 Vulnerability Tsa: Not affected 21:22:51 Vulnerability Tsx async abort: Not affected 21:22:51 Vulnerability Vmscape: Not affected 21:22:51 21:22:51 21:22:51 ---> nproc: 21:22:51 4 21:22:51 21:22:51 21:22:51 ---> df -h: 21:22:51 Filesystem Size Used Avail Use% Mounted on 21:22:51 tmpfs 1.6G 1.1M 1.6G 1% /run 21:22:51 /dev/vda1 78G 12G 67G 15% / 21:22:51 tmpfs 7.9G 0 7.9G 0% /dev/shm 21:22:51 tmpfs 5.0M 0 5.0M 0% /run/lock 21:22:51 /dev/vda15 105M 6.1M 99M 6% /boot/efi 21:22:51 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 21:22:51 21:22:51 21:22:51 ---> free -m: 21:22:51 total used free shared buff/cache available 21:22:51 Mem: 15989 718 9325 4 5945 14927 21:22:51 Swap: 1023 0 1023 21:22:51 21:22:51 21:22:51 ---> ip addr: 21:22:51 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 21:22:51 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 21:22:51 inet 127.0.0.1/8 scope host lo 21:22:51 valid_lft forever preferred_lft forever 21:22:51 inet6 ::1/128 scope host 21:22:51 valid_lft forever preferred_lft forever 21:22:51 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 21:22:51 link/ether fa:16:3e:41:f4:c9 brd ff:ff:ff:ff:ff:ff 21:22:51 altname enp0s3 21:22:51 inet 10.30.171.4/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 21:22:51 valid_lft 85655sec preferred_lft 85655sec 21:22:51 inet6 fe80::f816:3eff:fe41:f4c9/64 scope link 21:22:51 valid_lft forever preferred_lft forever 21:22:51 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 21:22:51 link/ether f2:58:46:3d:45:aa brd ff:ff:ff:ff:ff:ff 21:22:51 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 21:22:51 valid_lft forever preferred_lft forever 21:22:51 inet6 fe80::f058:46ff:fe3d:45aa/64 scope link 21:22:51 valid_lft forever preferred_lft forever 21:22:51 21:22:51 21:22:51 ---> sar -b -r -n DEV: 21:22:51 Linux 5.15.0-190-generic (prd-ubuntu2204-docker-4c-16g-6884) 09/10/26 _x86_64_ (4 CPU) 21:22:51 21:22:51 21:10:28 LINUX RESTART (4 CPU) 21:22:51 21:22:51 21:22:51 ---> sar -P ALL: 21:22:51 Linux 5.15.0-190-generic (prd-ubuntu2204-docker-4c-16g-6884) 09/10/26 _x86_64_ (4 CPU) 21:22:51 21:22:51 21:10:28 LINUX RESTART (4 CPU) 21:22:51 21:22:51 21:22:51