13:22:35 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/126783 13:22:35 Running as SYSTEM 13:22:35 [EnvInject] - Loading node environment variables. 13:22:35 Building remotely on prd-ubuntu2204-docker-4c-16g-62935 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-transportpce-master 13:22:35 [ssh-agent] Looking for ssh-agent implementation... 13:22:35 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 13:22:35 $ ssh-agent 13:22:35 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXj5XcT0/agent.1563 13:22:35 SSH_AGENT_PID=1565 13:22:35 [ssh-agent] Started. 13:22:35 Running ssh-add (command line suppressed) 13:22:35 Identity added: /w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_17178887240942550809.key (/w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_17178887240942550809.key) 13:22:36 [ssh-agent] Using credentials jenkins (jenkins-ssh) 13:22:36 The recommended git tool is: NONE 13:22:37 using credential jenkins-ssh 13:22:37 Wiping out workspace first. 13:22:37 Cloning the remote Git repository 13:22:38 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 13:22:38 > git init /w/workspace/transportpce-tox-verify-transportpce-master # timeout=10 13:22:38 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 13:22:38 > git --version # timeout=10 13:22:38 > git --version # 'git version 2.34.1' 13:22:38 using GIT_SSH to set credentials jenkins-ssh 13:22:38 Verifying host key using known hosts file, will automatically accept unseen keys 13:22:38 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 13:22:41 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 13:22:41 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 13:22:42 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 13:22:42 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 13:22:42 using GIT_SSH to set credentials jenkins-ssh 13:22:42 Verifying host key using known hosts file, will automatically accept unseen keys 13:22:42 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/83/126783/1 # timeout=10 13:22:42 > git rev-parse 76f76a0aff1b7d8b827de44128f895c3874e9c19^{commit} # timeout=10 13:22:42 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script 13:22:42 Checking out Revision 76f76a0aff1b7d8b827de44128f895c3874e9c19 (refs/changes/83/126783/1) 13:22:42 > git config core.sparsecheckout # timeout=10 13:22:42 > git checkout -f 76f76a0aff1b7d8b827de44128f895c3874e9c19 # timeout=10 13:22:46 Commit message: "ci: remove conflicting altDeploymentRepository" 13:22:46 > git rev-parse FETCH_HEAD^{commit} # timeout=10 13:22:46 > git rev-list --no-walk 778c4831b98f585a845bf3baa723efd596bd713c # timeout=10 13:22:46 > git remote # timeout=10 13:22:46 > git submodule init # timeout=10 13:22:46 > git submodule sync # timeout=10 13:22:46 > git config --get remote.origin.url # timeout=10 13:22:46 > git submodule init # timeout=10 13:22:46 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 13:22:46 ERROR: No submodules found. 13:22:46 provisioning config files... 13:22:46 copy managed file [npmrc] to file:/home/jenkins/.npmrc 13:22:46 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 13:22:46 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins10909715490075340217.sh 13:22:46 ---> python-tools-install.sh 13:22:46 Setup pyenv: 13:22:46 * system (set by /opt/pyenv/version) 13:22:46 * 3.8.20 (set by /opt/pyenv/version) 13:22:46 * 3.9.20 (set by /opt/pyenv/version) 13:22:46 3.10.15 13:22:46 3.11.10 13:22:51 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-U95I 13:22:51 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 13:22:51 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 13:22:55 lf-activate-venv(): INFO: Installing additional packages: lftools 13:23:19 lf-activate-venv(): INFO: Adding /tmp/venv-U95I/bin to PATH 13:23:19 Generating Requirements File 13:23:47 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. 13:23:47 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 13:23:48 Python 3.11.10 13:23:48 pip 26.2.1 from /tmp/venv-U95I/lib/python3.11/site-packages/pip (python 3.11) 13:23:48 aiohappyeyeballs==2.7.1 13:23:48 aiohttp==3.14.4 13:23:48 aiosignal==1.4.0 13:23:48 appdirs==1.4.4 13:23:48 argcomplete==3.7.2 13:23:48 aspy.yaml==1.3.0 13:23:48 attrs==26.1.0 13:23:48 autopage==0.6.0 13:23:48 beautifulsoup4==4.15.0 13:23:48 boto3==1.43.109 13:23:48 botocore==1.43.109 13:23:48 bs4==0.0.2 13:23:48 certifi==2026.7.22 13:23:48 cffi==2.1.1 13:23:48 cfgv==3.5.0 13:23:48 chardet==7.6.0 13:23:48 charset-normalizer==3.5.2 13:23:48 click==8.5.0 13:23:48 cliff==4.16.0 13:23:48 cmd2==4.2.4 13:23:48 cryptography==3.3.2 13:23:48 debtcollector==3.1.0 13:23:48 decorator==5.3.1 13:23:48 defusedxml==0.7.1 13:23:48 Deprecated==1.3.1 13:23:48 distlib==0.4.3 13:23:48 dnspython==2.8.0 13:23:48 docker==7.2.0 13:23:48 dogpile.cache==1.5.0 13:23:48 durationpy==0.11 13:23:48 email-validator==2.3.0 13:23:48 filelock==4.0.12 13:23:48 frozenlist==1.8.0 13:23:48 future==1.0.0 13:23:48 gitdb==4.0.12 13:23:48 GitPython==3.2.0 13:23:48 httplib2==0.30.2 13:23:48 identify==2.6.20 13:23:48 idna==3.20 13:23:48 importlib-resources==1.5.0 13:23:48 iso8601==2.1.0 13:23:48 Jinja2==3.1.6 13:23:48 jmespath==1.1.0 13:23:48 jsonpatch==1.33 13:23:48 jsonpointer==3.2.0 13:23:48 jsonschema==4.26.0 13:23:48 jsonschema-specifications==2025.9.1 13:23:48 keystoneauth1==5.18.0 13:23:48 kubernetes==36.0.3 13:23:48 lftools==0.37.23 13:23:48 lxml==6.1.3 13:23:48 markdown-it-py==4.2.0 13:23:48 MarkupSafe==3.0.4 13:23:48 mdurl==0.1.2 13:23:48 msgpack==1.2.3 13:23:48 multi_key_dict==2.0.3 13:23:48 multidict==6.9.1 13:23:48 munch==4.0.0 13:23:48 netaddr==1.3.0 13:23:48 niet==1.4.2 13:23:48 nodeenv==1.11.0 13:23:48 oauth2client==4.1.3 13:23:48 oauthlib==4.0.0 13:23:48 openstacksdk==4.21.0 13:23:48 os-service-types==1.9.0 13:23:48 osc-lib==4.7.0 13:23:48 oslo.config==10.7.0 13:23:48 oslo.context==6.5.0 13:23:48 oslo.i18n==6.9.0 13:23:48 oslo.log==8.3.2 13:23:48 oslo.serialization==5.11.0 13:23:48 oslo.utils==10.2.0 13:23:48 packaging==26.3 13:23:48 pbr==7.1.3 13:23:48 platformdirs==4.12.4 13:23:48 prettytable==3.18.0 13:23:48 prompt_toolkit==3.0.53 13:23:48 propcache==0.5.4 13:23:48 psutil==7.2.2 13:23:48 pyasn1==0.6.4 13:23:48 pyasn1_modules==0.4.2 13:23:48 pycparser==3.1 13:23:48 pygerrit2==2.0.15 13:23:48 PyGithub==2.10.0 13:23:48 Pygments==2.21.0 13:23:48 PyJWT==2.15.1 13:23:48 PyNaCl==1.6.2 13:23:48 pyparsing==2.4.7 13:23:48 pyperclip==1.11.0 13:23:48 pyrsistent==0.20.0 13:23:48 python-dateutil==2.9.0.post0 13:23:48 python-discovery==1.6.1 13:23:48 python-heatclient==5.3.0 13:23:48 python-jenkins==1.8.3 13:23:48 python-keystoneclient==6.0.0 13:23:48 python-magnumclient==5.0.0 13:23:48 python-manilaclient==6.3.0 13:23:48 python-openstackclient==10.3.0 13:23:48 python-swiftclient==4.11.0 13:23:48 PyYAML==6.0.3 13:23:48 referencing==0.37.0 13:23:48 requests==2.34.2 13:23:48 requests-oauthlib==2.0.0 13:23:48 rfc3986==2.0.0 13:23:48 rich==15.0.0 13:23:48 rich-argparse==1.8.0 13:23:48 rpds-py==2026.9.1 13:23:48 rsa==4.9.1 13:23:48 ruamel.yaml==0.19.1 13:23:48 ruamel.yaml.clib==0.2.15 13:23:48 s3transfer==0.19.2 13:23:48 simplejson==4.2.0 13:23:48 six==1.17.0 13:23:48 smmap==5.0.3 13:23:48 soupsieve==2.10 13:23:48 stevedore==5.9.1 13:23:48 tabulate==0.10.0 13:23:48 toml==0.10.2 13:23:48 tomlkit==0.15.1 13:23:48 tqdm==4.70.1 13:23:48 typing_extensions==4.16.0 13:23:48 urllib3==1.26.20 13:23:48 virtualenv==21.14.5 13:23:48 wcwidth==0.9.2 13:23:48 websocket-client==1.9.2 13:23:48 wrapt==2.5.0 13:23:48 xdg==6.0.0 13:23:48 xmltodict==1.0.4 13:23:48 yarl==1.25.1 13:23:48 yq==4.4.0 13:23:48 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins4737862847299107170.sh 13:23:48 ---> uv-install.sh 13:23:48 Installing uv/uvx (latest) using shell installer 13:23:49 2026-10-08 13:23:49 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71308/71308] -> "/tmp/uv-install-Z788iY.sh" [1] 13:23:49 downloading uv 0.12.23 x86_64-unknown-linux-gnu 13:23:50 installing to /home/jenkins/.local/bin 13:23:50 uv 13:23:50 uvx 13:23:50 everything's installed! 13:23:50 13:23:50 To add $HOME/.local/bin to your PATH, either restart your shell or run: 13:23:50 13:23:50 source $HOME/.local/bin/env (sh, bash, zsh) 13:23:50 source $HOME/.local/bin/env.fish (fish) 13:23:50 Adding install location to PATH 13:23:50 ---> Validating uv/uvx install 13:23:50 uvx 0.12.23 (x86_64-unknown-linux-gnu) 13:23:50 [EnvInject] - Injecting environment variables from a build step. 13:23:50 [EnvInject] - Injecting as environment variables the properties content 13:23:50 PYTHON=python3 13:23:50 13:23:50 [EnvInject] - Variables injected successfully. 13:23:50 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins12169612363909571787.sh 13:23:50 ---> tox-install.sh 13:23:50 + source /home/jenkins/lf-env.sh 13:23:50 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 13:23:50 ++ mktemp -d /tmp/venv-XXXX 13:23:50 + lf_venv=/tmp/venv-2xYK 13:23:50 + local venv_file=/tmp/.os_lf_venv 13:23:50 + local python=python3 13:23:50 + local options 13:23:50 + local set_path=true 13:23:50 + local install_args= 13:23:50 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 13:23:50 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 13:23:50 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 13:23:50 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 13:23:50 + true 13:23:50 + case $1 in 13:23:50 + venv_file=/tmp/.toxenv 13:23:50 + shift 2 13:23:50 + true 13:23:50 + case $1 in 13:23:50 + shift 13:23:50 + break 13:23:50 + case $python in 13:23:50 + local pkg_list= 13:23:50 + [[ -d /opt/pyenv ]] 13:23:50 + echo 'Setup pyenv:' 13:23:50 Setup pyenv: 13:23:50 + export PYENV_ROOT=/opt/pyenv 13:23:50 + PYENV_ROOT=/opt/pyenv 13:23:50 + 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 13:23:50 + 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 13:23:50 + pyenv versions 13:23:50 system 13:23:50 3.8.20 13:23:50 3.9.20 13:23:50 3.10.15 13:23:50 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 13:23:50 + command -v pyenv 13:23:50 ++ pyenv init - --no-rehash 13:23:50 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 13:23:50 for i in ${!paths[@]}; do 13:23:50 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 13:23:50 fi; done; 13:23:50 echo "${paths[*]}"'\'')" 13:23:50 export PATH="/opt/pyenv/shims:${PATH}" 13:23:50 export PYENV_SHELL=bash 13:23:50 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 13:23:50 pyenv() { 13:23:50 local command 13:23:50 command="${1:-}" 13:23:50 if [ "$#" -gt 0 ]; then 13:23:50 shift 13:23:50 fi 13:23:50 13:23:50 case "$command" in 13:23:50 rehash|shell) 13:23:50 eval "$(pyenv "sh-$command" "$@")" 13:23:50 ;; 13:23:50 *) 13:23:50 command pyenv "$command" "$@" 13:23:50 ;; 13:23:50 esac 13:23:50 }' 13:23:50 +++ bash --norc -ec 'IFS=:; paths=($PATH); 13:23:50 for i in ${!paths[@]}; do 13:23:50 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 13:23:50 fi; done; 13:23:50 echo "${paths[*]}"' 13:23:50 ++ 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 13:23:50 ++ 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 13:23:50 ++ 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 13:23:50 ++ export PYENV_SHELL=bash 13:23:50 ++ PYENV_SHELL=bash 13:23:50 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 13:23:50 +++ complete -F _pyenv pyenv 13:23:50 ++ lf-pyver python3 13:23:50 ++ local py_version_xy=python3 13:23:50 ++ local py_version_xyz= 13:23:50 ++ pyenv versions 13:23:50 ++ local command 13:23:50 ++ command=versions 13:23:50 ++ sed 's/^[ *]* //' 13:23:50 ++ awk '{ print $1 }' 13:23:50 ++ '[' 1 -gt 0 ']' 13:23:50 ++ shift 13:23:50 ++ grep -E '^[0-9.]*[0-9]$' 13:23:50 ++ case "$command" in 13:23:50 ++ command pyenv versions 13:23:50 ++ [[ ! -s /tmp/.pyenv_versions ]] 13:23:50 +++ grep '^3' /tmp/.pyenv_versions 13:23:50 +++ sort -V 13:23:50 +++ tail -n 1 13:23:50 ++ py_version_xyz=3.11.10 13:23:50 ++ [[ -z 3.11.10 ]] 13:23:50 ++ echo 3.11.10 13:23:50 ++ return 0 13:23:50 + pyenv local 3.11.10 13:23:50 + local command 13:23:50 + command=local 13:23:50 + '[' 2 -gt 0 ']' 13:23:50 + shift 13:23:50 + case "$command" in 13:23:50 + command pyenv local 3.11.10 13:23:50 + for arg in "$@" 13:23:50 + case $arg in 13:23:50 + pkg_list+='tox ' 13:23:50 + for arg in "$@" 13:23:50 + case $arg in 13:23:50 + pkg_list+='virtualenv ' 13:23:50 + for arg in "$@" 13:23:50 + case $arg in 13:23:50 + pkg_list+='urllib3~=1.26.15 ' 13:23:50 + [[ -f /tmp/.toxenv ]] 13:23:50 + [[ ! -f /tmp/.toxenv ]] 13:23:50 + [[ -n '' ]] 13:23:50 + python3 -m venv /tmp/venv-2xYK 13:23:54 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-2xYK' 13:23:54 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-2xYK 13:23:54 + echo /tmp/venv-2xYK 13:23:54 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 13:23:54 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 13:23:54 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 13:23:54 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 13:23:54 + local 'pip_opts=--upgrade --quiet' 13:23:54 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 13:23:54 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 13:23:54 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 13:23:54 + [[ -n '' ]] 13:23:54 + [[ -n '' ]] 13:23:54 + lf-venv-pip-install /tmp/venv-2xYK/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 13:23:54 + local venv_python=/tmp/venv-2xYK/bin/python3 13:23:54 + shift 13:23:54 + local upstream=https://pypi.org/simple 13:23:54 + /tmp/venv-2xYK/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 13:23:58 + return 0 13:23:58 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 13:23:58 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 13:23:58 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 13:23:58 + lf-venv-pip-install /tmp/venv-2xYK/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 13:23:58 + local venv_python=/tmp/venv-2xYK/bin/python3 13:23:58 + shift 13:23:58 + local upstream=https://pypi.org/simple 13:23:58 + /tmp/venv-2xYK/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 13:24:00 + return 0 13:24:00 + type python3 13:24:00 + true 13:24:00 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-2xYK/bin to PATH' 13:24:00 lf-activate-venv(): INFO: Adding /tmp/venv-2xYK/bin to PATH 13:24:00 + PATH=/tmp/venv-2xYK/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 13:24:00 + return 0 13:24:00 + python3 --version 13:24:00 Python 3.11.10 13:24:00 + python3 -m pip --version 13:24:01 pip 26.2.1 from /tmp/venv-2xYK/lib/python3.11/site-packages/pip (python 3.11) 13:24:01 + python3 -m pip freeze 13:24:01 cachetools==7.2.1 13:24:01 colorama==0.4.6 13:24:01 distlib==0.4.3 13:24:01 filelock==4.0.12 13:24:01 packaging==26.3 13:24:01 platformdirs==4.12.4 13:24:01 pluggy==1.6.0 13:24:01 pyproject-api==1.11.4 13:24:01 python-discovery==1.6.1 13:24:01 tomli_w==1.2.0 13:24:01 tox==4.64.9 13:24:01 typing_extensions==4.16.0 13:24:01 urllib3==1.26.20 13:24:01 virtualenv==21.14.5 13:24:01 [transportpce-tox-verify-transportpce-master] $ /bin/sh -xe /tmp/jenkins11104986417636020248.sh 13:24:01 [EnvInject] - Injecting environment variables from a build step. 13:24:01 [EnvInject] - Injecting as environment variables the properties content 13:24:01 PARALLEL=True 13:24:01 13:24:01 [EnvInject] - Variables injected successfully. 13:24:01 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins12305243528796767411.sh 13:24:01 ---> tox-run.sh 13:24:01 + 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 13:24:01 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 13:24:01 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 13:24:01 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 13:24:01 + cd /w/workspace/transportpce-tox-verify-transportpce-master/. 13:24:01 + source /home/jenkins/lf-env.sh 13:24:01 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 13:24:01 ++ mktemp -d /tmp/venv-XXXX 13:24:01 + lf_venv=/tmp/venv-dC1n 13:24:01 + local venv_file=/tmp/.os_lf_venv 13:24:01 + local python=python3 13:24:01 + local options 13:24:01 + local set_path=true 13:24:01 + local install_args= 13:24:01 ++ 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 13:24:01 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 13:24:01 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 13:24:01 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 13:24:01 + true 13:24:01 + case $1 in 13:24:01 + venv_file=/tmp/.toxenv 13:24:01 + shift 2 13:24:01 + true 13:24:01 + case $1 in 13:24:01 + shift 13:24:01 + break 13:24:01 + case $python in 13:24:01 + local pkg_list= 13:24:01 + [[ -d /opt/pyenv ]] 13:24:01 + echo 'Setup pyenv:' 13:24:01 Setup pyenv: 13:24:01 + export PYENV_ROOT=/opt/pyenv 13:24:01 + PYENV_ROOT=/opt/pyenv 13:24:01 + 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 13:24:01 + 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 13:24:01 + pyenv versions 13:24:01 system 13:24:01 3.8.20 13:24:01 3.9.20 13:24:01 3.10.15 13:24:01 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 13:24:01 + command -v pyenv 13:24:01 ++ pyenv init - --no-rehash 13:24:01 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 13:24:01 for i in ${!paths[@]}; do 13:24:01 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 13:24:01 fi; done; 13:24:01 echo "${paths[*]}"'\'')" 13:24:01 export PATH="/opt/pyenv/shims:${PATH}" 13:24:01 export PYENV_SHELL=bash 13:24:01 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 13:24:01 pyenv() { 13:24:01 local command 13:24:01 command="${1:-}" 13:24:01 if [ "$#" -gt 0 ]; then 13:24:01 shift 13:24:01 fi 13:24:01 13:24:01 case "$command" in 13:24:01 rehash|shell) 13:24:01 eval "$(pyenv "sh-$command" "$@")" 13:24:01 ;; 13:24:01 *) 13:24:01 command pyenv "$command" "$@" 13:24:01 ;; 13:24:01 esac 13:24:01 }' 13:24:01 +++ bash --norc -ec 'IFS=:; paths=($PATH); 13:24:01 for i in ${!paths[@]}; do 13:24:01 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 13:24:01 fi; done; 13:24:01 echo "${paths[*]}"' 13:24:01 ++ 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 13:24:01 ++ 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 13:24:01 ++ 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 13:24:01 ++ export PYENV_SHELL=bash 13:24:01 ++ PYENV_SHELL=bash 13:24:01 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 13:24:01 +++ complete -F _pyenv pyenv 13:24:01 ++ lf-pyver python3 13:24:01 ++ local py_version_xy=python3 13:24:01 ++ local py_version_xyz= 13:24:01 ++ pyenv versions 13:24:01 ++ local command 13:24:01 ++ command=versions 13:24:01 ++ '[' 1 -gt 0 ']' 13:24:01 ++ sed 's/^[ *]* //' 13:24:01 ++ shift 13:24:01 ++ case "$command" in 13:24:01 ++ command pyenv versions 13:24:01 ++ awk '{ print $1 }' 13:24:01 ++ grep -E '^[0-9.]*[0-9]$' 13:24:01 ++ [[ ! -s /tmp/.pyenv_versions ]] 13:24:01 +++ grep '^3' /tmp/.pyenv_versions 13:24:01 +++ sort -V 13:24:01 +++ tail -n 1 13:24:01 ++ py_version_xyz=3.11.10 13:24:01 ++ [[ -z 3.11.10 ]] 13:24:01 ++ echo 3.11.10 13:24:01 ++ return 0 13:24:01 + pyenv local 3.11.10 13:24:01 + local command 13:24:01 + command=local 13:24:01 + '[' 2 -gt 0 ']' 13:24:01 + shift 13:24:01 + case "$command" in 13:24:01 + command pyenv local 3.11.10 13:24:01 + for arg in "$@" 13:24:01 + case $arg in 13:24:01 + pkg_list+='tox ' 13:24:01 + for arg in "$@" 13:24:01 + case $arg in 13:24:01 + pkg_list+='virtualenv ' 13:24:01 + for arg in "$@" 13:24:01 + case $arg in 13:24:01 + pkg_list+='urllib3~=1.26.15 ' 13:24:01 + [[ -f /tmp/.toxenv ]] 13:24:01 ++ cat /tmp/.toxenv 13:24:01 + lf_venv=/tmp/venv-2xYK 13:24:01 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-2xYK from' file:/tmp/.toxenv 13:24:01 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-2xYK from file:/tmp/.toxenv 13:24:01 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 13:24:01 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 13:24:01 + local 'pip_opts=--upgrade --quiet' 13:24:01 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 13:24:01 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 13:24:01 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 13:24:01 + [[ -n '' ]] 13:24:01 + [[ -n '' ]] 13:24:01 + lf-venv-pip-install /tmp/venv-2xYK/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 13:24:01 + local venv_python=/tmp/venv-2xYK/bin/python3 13:24:01 + shift 13:24:01 + local upstream=https://pypi.org/simple 13:24:01 + /tmp/venv-2xYK/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 13:24:02 + return 0 13:24:02 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 13:24:02 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 13:24:02 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 13:24:02 + lf-venv-pip-install /tmp/venv-2xYK/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 13:24:02 + local venv_python=/tmp/venv-2xYK/bin/python3 13:24:02 + shift 13:24:02 + local upstream=https://pypi.org/simple 13:24:02 + /tmp/venv-2xYK/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 13:24:03 + return 0 13:24:03 + type python3 13:24:03 + true 13:24:03 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-2xYK/bin to PATH' 13:24:03 lf-activate-venv(): INFO: Adding /tmp/venv-2xYK/bin to PATH 13:24:03 + PATH=/tmp/venv-2xYK/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 13:24:03 + return 0 13:24:03 + [[ -d /opt/pyenv ]] 13:24:03 + echo '---> Setting up pyenv' 13:24:03 ---> Setting up pyenv 13:24:03 + export PYENV_ROOT=/opt/pyenv 13:24:03 + PYENV_ROOT=/opt/pyenv 13:24:03 + export PATH=/opt/pyenv/bin:/tmp/venv-2xYK/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 13:24:03 + PATH=/opt/pyenv/bin:/tmp/venv-2xYK/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 13:24:03 ++ pwd 13:24:03 + PYTHONPATH=/w/workspace/transportpce-tox-verify-transportpce-master 13:24:03 + export PYTHONPATH 13:24:03 + export TOX_TESTENV_PASSENV=PYTHONPATH 13:24:03 + TOX_TESTENV_PASSENV=PYTHONPATH 13:24:03 + tox --version 13:24:03 4.64.9 from /tmp/venv-2xYK/lib/python3.11/site-packages/tox/__init__.py 13:24:03 + PARALLEL=True 13:24:03 + TOX_OPTIONS_LIST= 13:24:03 + [[ -n '' ]] 13:24:03 + case ${PARALLEL,,} in 13:24:03 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 13:24:03 + tox --parallel auto --parallel-live 13:24:03 + tee -a /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tox.log 13:24:05 checkbashisms: freeze> python -m pip freeze --all 13:24:05 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 13:24:05 buildcontroller: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:24:05 docs: install_deps> python -I -m pip install -r docs/requirements.txt 13:24:06 checkbashisms: pip==26.2.1,setuptools==84.0.0 13:24:06 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 13:24:06 checkbashisms: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/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)' 13:24:06 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 13:24:07 checkbashisms: OK ✔ in 3.03 seconds 13:24:07 pre-commit: install_deps> python -I -m pip install pre-commit 13:24:09 pre-commit: freeze> python -m pip freeze --all 13:24:10 pre-commit: cfgv==3.5.0,distlib==0.4.3,filelock==4.0.12,identify==2.6.20,nodeenv==1.11.0,packaging==26.3,pip==26.2.1,platformdirs==4.12.4,pre_commit==4.6.2,python-discovery==1.6.1,PyYAML==6.0.3,setuptools==84.0.0,virtualenv==21.14.5 13:24:10 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 13:24:10 pre-commit: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/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)' 13:24:10 /usr/bin/cpan 13:24:10 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure 13:24:10 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 13:24:10 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 13:24:11 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 13:24:11 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 13:24:12 [INFO] Initializing environment for https://github.com/hhatto/autopep8. 13:24:12 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 13:24:12 buildcontroller: freeze> python -m pip freeze --all 13:24:12 buildcontroller: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.1,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 13:24:12 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh 13:24:12 + update-java-alternatives -l 13:24:12 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 13:24:12 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 13:24:12 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 13:24:12 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 13:24:12 update-alternatives: error: no alternatives for jaotc 13:24:12 update-alternatives: error: no alternatives for rmic 13:24:13 + java -version 13:24:13 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 13:24:13 + JAVA_VER=21.0 13:24:13 + echo 21.0 13:24:13 21.0 13:24:13 + javac -version 13:24:13 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 13:24:13 [INFO] Initializing environment for https://github.com/koalaman/shellcheck-precommit. 13:24:13 + JAVAC_VER=21.0 13:24:13 + echo 21.0 13:24:13 21.0 13:24:13 No java21 or newer available 13:24:13 + [ 21.0 -ge 21 ] 13:24:13 ./installMavenUbuntu.sh: 14: [: Illegal number: 21.0 13:24:13 + echo No java21 or newer available 13:24:13 + exit 1 13:24:13 buildcontroller: exit 1 (0.59 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh pid=2822 13:24:13 buildcontroller: FAIL ✖ in 9.18 seconds 13:24:13 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 13:24:13 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier. 13:24:14 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@4.0.0-alpha.8. 13:24:14 [INFO] Initializing environment for https://github.com/adrienverge/yamllint. 13:24:14 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 13:24:14 [INFO] Once installed this environment will be reused. 13:24:14 [INFO] This may take a few minutes... 13:24:17 pylint: freeze> python -m pip freeze --all 13:24:17 pylint: astroid==4.3.4,dill==0.4.1,isort==9.0.2,mccabe==0.7.0,mypy_extensions==1.1.0,pip==26.2.1,platformdirs==4.12.4,pylint==4.1.2,setuptools==84.0.0,tomlkit==0.15.1 13:24:17 pylint: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/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}$' '{}' + 13:24:18 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 13:24:18 [INFO] Once installed this environment will be reused. 13:24:18 [INFO] This may take a few minutes... 13:24:19 docs-linkcheck: freeze> python -m pip freeze --all 13:24:19 docs-linkcheck: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.2,deepmerge==3.0.1,docutils==0.22.4,idna==3.20,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.52.1,lfdocs_conf==0.11.0,MarkupSafe==3.0.4,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.9.1,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.1.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.8.0 13:24:19 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/linkcheck 13:24:19 docs: freeze> python -m pip freeze --all 13:24:20 docs: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.2,deepmerge==3.0.1,docutils==0.22.4,idna==3.20,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.52.1,lfdocs_conf==0.11.0,MarkupSafe==3.0.4,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.9.1,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.1.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.8.0 13:24:20 docs: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -W --keep-going -b html -n -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/html 13:24:22 docs: OK ✔ in 18.28 seconds 13:24:22 build_karaf_tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:24:24 [INFO] Installing environment for https://github.com/hhatto/autopep8. 13:24:24 [INFO] Once installed this environment will be reused. 13:24:24 [INFO] This may take a few minutes... 13:24:24 docs-linkcheck: OK ✔ in 20.43 seconds 13:24:24 build_karaf_tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:24:27 [INFO] Installing environment for https://github.com/perltidy/perltidy. 13:24:27 [INFO] Once installed this environment will be reused. 13:24:27 [INFO] This may take a few minutes... 13:24:28 build_karaf_tests221: freeze> python -m pip freeze --all 13:24:28 build_karaf_tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.1,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 13:24:28 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 13:24:28 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf221 13:24:28 ./build_karaf_for_tests.sh: 22: mvn: not found 13:24:28 build karaf in karaf221 with ./karaf221.env 13:24:28 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 13:24:28 build_karaf_tests221: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3337 13:24:29 build_karaf_tests221: FAIL ✖ in 6.49 seconds 13:24:29 build_karaf_tests200: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:24:30 build_karaf_tests71: freeze> python -m pip freeze --all 13:24:31 build_karaf_tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.1,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 13:24:31 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 13:24:31 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf71 13:24:31 ./build_karaf_for_tests.sh: 22: mvn: not found 13:24:31 build karaf in karaf71 with ./karaf71.env 13:24:31 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 13:24:31 build_karaf_tests71: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3361 13:24:31 build_karaf_tests71: FAIL ✖ in 6.39 seconds 13:24:31 buildlighty: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:24:33 ************* Module 2.2.1.test12_end2end 13:24:33 transportpce_tests/2.2.1/test12_end2end.py:435:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 13:24:33 ************* Module common.test_utils 13:24:33 transportpce_tests/common/test_utils.py:532:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 13:24:33 transportpce_tests/common/test_utils.py:555:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 13:24:33 transportpce_tests/common/test_utils.py:581:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 13:24:33 transportpce_tests/common/test_utils.py:617:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 13:24:33 transportpce_tests/common/test_utils.py:635:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 13:24:33 transportpce_tests/common/test_utils.py:666:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 13:24:33 transportpce_tests/common/test_utils.py:687:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 13:24:33 13:24:33 ----------------------------------- 13:24:33 Your code has been rated at 9.99/10 13:24:33 13:24:34 pylint: exit 1 (17.23 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> find transportpce_tests/ -name '*.py' -exec pylint --fail-under=10 --max-line-length=120 --disable=missing-docstring,import-error --disable=fixme --disable=duplicate-code '--module-rgx=([a-z0-9_]+$)|([0-9.]{1,30}$)' '--method-rgx=(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$' '--variable-rgx=[a-zA-Z_][a-zA-Z0-9_]{1,30}$' '{}' + pid=3223 13:24:35 pylint: FAIL ✖ in 21.5 seconds 13:24:35 sims: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:24:35 [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier. 13:24:35 [INFO] Once installed this environment will be reused. 13:24:35 [INFO] This may take a few minutes... 13:24:35 build_karaf_tests200: freeze> python -m pip freeze --all 13:24:35 build_karaf_tests200: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.1,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 13:24:35 build_karaf_tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 13:24:35 build karaf in karafoc200 with ./karafoc200.env 13:24:35 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karafoc200 13:24:35 ./build_karaf_for_tests.sh: 22: mvn: not found 13:24:35 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 13:24:35 build_karaf_tests200: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3497 13:24:35 build_karaf_tests200: FAIL ✖ in 6.66 seconds 13:24:35 testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:24:37 buildlighty: freeze> python -m pip freeze --all 13:24:37 buildlighty: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.1,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 13:24:37 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh 13:24:37 ./build.sh: 7: mvn: not found 13:24:37 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 13:24:37 buildlighty: exit 9 (0.02 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh pid=3604 13:24:38 [INFO] Installing environment for https://github.com/adrienverge/yamllint. 13:24:38 [INFO] Once installed this environment will be reused. 13:24:38 [INFO] This may take a few minutes... 13:24:41 buildlighty: FAIL ✖ in 6.45 seconds 13:24:41 sims: freeze> python -m pip freeze --all 13:24:42 sims: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.1,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 13:24:42 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh 13:24:42 Using lighynode version 22.1.0.7 13:24:42 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 13:24:42 trim trailing whitespace.................................................Passed 13:24:42 fix end of files.........................................................Passed 13:24:43 check for added large files..............................................Passed 13:24:43 check for merge conflicts................................................Passed 13:24:43 check for case conflicts.................................................Passed 13:24:43 check json...............................................................Passed 13:24:43 mixed line ending........................................................Passed 13:24:43 Tabs remover.............................................................Passed 13:24:44 autopep8.................................................................Passed 13:24:46 perltidy.................................................................Passed 13:24:46 ShellCheck v0.11.0.......................................................Passed 13:24:50 prettier.................................................................Passed 13:24:52 yamllint.................................................................Passed 13:24:52 sims: OK ✔ in 10.41 seconds 13:24:52 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual 13:24:52 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 13:24:52 [INFO] Once installed this environment will be reused. 13:24:52 [INFO] This may take a few minutes... 13:25:00 gitlint..................................................................Passed 13:25:31 pre-commit: OK ✔ in 53.75 seconds 13:25:31 testsPCE: freeze> python -m pip freeze --all 13:25:32 testsPCE: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,click==8.5.0,contourpy==1.3.3,cryptography==3.3.2,cycler==0.12.1,dict2xml==1.7.8,Flask==2.1.3,Flask-Injector==0.14.0,fonttools==4.66.1,gnpy4tpce==2.4.7,idna==3.20,iniconfig==2.3.1,injector==0.24.0,invoke==3.0.3,itsdangerous==2.2.0,Jinja2==3.1.6,kiwisolver==1.5.1,lxml==6.1.3,MarkupSafe==3.0.4,matplotlib==3.11.2,netconf-client==3.6.0,networkx==2.8.8,numpy==1.26.4,packaging==26.3,pandas==1.5.3,paramiko==5.0.0,pbr==5.11.1,pillow==12.3.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.1,Pygments==2.21.0,PyNaCl==1.6.2,pyparsing==3.3.3,pytest==9.1.1,python-dateutil==2.9.0.post0,pytz==2026.5,requests==2.34.2,scipy==1.17.1,setuptools==50.3.2,six==1.17.0,urllib3==2.8.0,Werkzeug==2.0.3,xlrd==1.2.0 13:25:32 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce 13:25:32 pytest -q transportpce_tests/pce/test01_pce.py 13:27:32 EEEEEEEEEEEEEEEEEEEE [100%] 13:27:35 ==================================== ERRORS ==================================== 13:27:35 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 13:27:35 13:27:35 cls = 13:27:35 13:27:35 @classmethod 13:27:35 def setUpClass(cls): 13:27:35 # pylint: disable=bare-except 13:27:35 sample_files_parsed = False 13:27:35 time.sleep(20) 13:27:35 try: 13:27:35 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 13:27:35 "..", "..", "sample_configs", "honeynode-topo.json") 13:27:35 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 13:27:35 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 13:27:35 13:27:35 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 13:27:35 "..", "..", "sample_configs", "NW-simple-topology.json") 13:27:35 13:27:35 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 13:27:35 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 13:27:35 13:27:35 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 13:27:35 "..", "..", "sample_configs", "NW-for-test-5-4.json") 13:27:35 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 13:27:35 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 13:27:35 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 13:27:35 "..", "..", "sample_configs", "pce_portmapping_221.json") 13:27:35 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 13:27:35 cls.port_mapping_data = port_mapping.read() 13:27:35 sample_files_parsed = True 13:27:35 except PermissionError as err: 13:27:35 print("Permission Error when trying to read sample files\n", err) 13:27:35 sys.exit(2) 13:27:35 except FileNotFoundError as err: 13:27:35 print("File Not found Error when trying to read sample files\n", err) 13:27:35 sys.exit(2) 13:27:35 except: 13:27:35 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 13:27:35 sys.exit(2) 13:27:35 finally: 13:27:35 if sample_files_parsed: 13:27:35 print("sample files content loaded") 13:27:35 13:27:35 > cls.processes = test_utils.start_tpce() 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 13:27:35 transportpce_tests/pce/test01_pce.py:93: 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 13:27:35 def start_tpce(): 13:27:35 if 'NO_ODL_STARTUP' in os.environ: 13:27:35 print('No OpenDaylight instance to start!') 13:27:35 return [] 13:27:35 print('starting OpenDaylight...') 13:27:35 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 13:27:35 process = start_lighty() 13:27:35 else: 13:27:35 process = start_karaf() 13:27:35 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 13:27:35 print('OpenDaylight started !') 13:27:35 else: 13:27:35 print('OpenDaylight failed to start !') 13:27:35 shutdown_process(process) 13:27:35 for pid in process_list: 13:27:35 shutdown_process(pid) 13:27:35 > sys.exit(1) 13:27:35 E SystemExit: 1 13:27:35 13:27:35 transportpce_tests/common/test_utils.py:234: SystemExit 13:27:35 ---------------------------- Captured stdout setup ----------------------------- 13:27:35 sample files content loaded 13:27:35 starting OpenDaylight... 13:27:35 starting KARAF (karaf) TransportPCE build... 13:27:35 Pattern not found after 100 seconds! OpenDaylight failed to start ! 13:27:35 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 13:27:35 13:27:35 cls = 13:27:35 func = . at 0x7f8653b8b380> 13:27:35 when = 'setup' 13:27:35 reraise = (, ) 13:27:35 13:27:35 @classmethod 13:27:35 def from_call( 13:27:35 cls, 13:27:35 func: Callable[[], TResult], 13:27:35 when: Literal["collect", "setup", "call", "teardown"], 13:27:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:27:35 ) -> CallInfo[TResult]: 13:27:35 """Call func, wrapping the result in a CallInfo. 13:27:35 13:27:35 :param func: 13:27:35 The function to call. Called without arguments. 13:27:35 :type func: Callable[[], _pytest.runner.TResult] 13:27:35 :param when: 13:27:35 The phase in which the function is called. 13:27:35 :param reraise: 13:27:35 Exception or exceptions that shall propagate if raised by the 13:27:35 function, instead of being wrapped in the CallInfo. 13:27:35 """ 13:27:35 excinfo = None 13:27:35 instant = timing.Instant() 13:27:35 try: 13:27:35 > result: TResult | None = func() 13:27:35 ^^^^^^ 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:27:35 lambda: runtest_hook(item=item, **kwds), 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:27:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:27:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:27:35 yield 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:27:35 return (yield) 13:27:35 ^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:27:35 item.session._setupstate.setup(item) 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:27:35 col.setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:27:35 super().setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:27:35 self._request._fillfixtures() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:27:35 item.funcargs[argname] = self.getfixturevalue(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:27:35 fixturedef = self._get_active_fixturedef(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:27:35 fixturedef.execute(request=subrequest) 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 13:27:35 self = 13:27:35 request = > 13:27:35 13:27:35 def execute(self, request: SubRequest) -> FixtureValue: 13:27:35 """Return the value of this fixture, executing it if not cached.""" 13:27:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:27:35 # This needs to be done before checking if we have a cached value, since 13:27:35 # if a dependent fixture has their cache invalidated, e.g. due to 13:27:35 # parametrization, they finalize themselves and fixtures depending on it 13:27:35 # (which will likely include this fixture) setting `self.cached_result = None`. 13:27:35 # See #4871 13:27:35 requested_fixtures_that_should_finalize_us = [] 13:27:35 for argname in self.argnames: 13:27:35 fixturedef = request._get_active_fixturedef(argname) 13:27:35 # Saves requested fixtures in a list so we later can add our finalizer 13:27:35 # to them, ensuring that if a requested fixture gets torn down we get torn 13:27:35 # down first. This is generally handled by SetupState, but still currently 13:27:35 # needed when this fixture is not parametrized but depends on a parametrized 13:27:35 # fixture. 13:27:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:27:35 13:27:35 # Check for (and return) cached value/exception. 13:27:35 if self.cached_result is not None: 13:27:35 request_cache_key = self.cache_key(request) 13:27:35 cache_key = self.cached_result[1] 13:27:35 try: 13:27:35 # Attempt to make a normal == check: this might fail for objects 13:27:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:27:35 cache_hit = bool(request_cache_key == cache_key) 13:27:35 except (ValueError, RuntimeError): 13:27:35 # If the comparison raises, use 'is' as fallback. 13:27:35 cache_hit = request_cache_key is cache_key 13:27:35 13:27:35 if cache_hit: 13:27:35 if self.cached_result[2] is not None: 13:27:35 exc, exc_tb = self.cached_result[2] 13:27:35 raise exc.with_traceback(exc_tb) 13:27:35 else: 13:27:35 return self.cached_result[0] 13:27:35 # We have a previous but differently parametrized fixture instance 13:27:35 # so we need to tear it down before creating a new one. 13:27:35 self.finish(request) 13:27:35 assert self.cached_result is None 13:27:35 13:27:35 # Add finalizer to requested fixtures we saved previously. 13:27:35 # We make sure to do this after checking for cached value to avoid 13:27:35 # adding our finalizer multiple times. (#12135) 13:27:35 finalizer = functools.partial(self.finish, request=request) 13:27:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:27:35 parent_fixture.addfinalizer(finalizer) 13:27:35 13:27:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:27:35 # which is executed last. 13:27:35 > assert not self._finalizers 13:27:35 ^^^^^^^^^^^^^^^^^^^^ 13:27:35 E AssertionError 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:27:35 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 13:27:35 13:27:35 cls = 13:27:35 func = . at 0x7f8653b9fc40> 13:27:35 when = 'setup' 13:27:35 reraise = (, ) 13:27:35 13:27:35 @classmethod 13:27:35 def from_call( 13:27:35 cls, 13:27:35 func: Callable[[], TResult], 13:27:35 when: Literal["collect", "setup", "call", "teardown"], 13:27:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:27:35 ) -> CallInfo[TResult]: 13:27:35 """Call func, wrapping the result in a CallInfo. 13:27:35 13:27:35 :param func: 13:27:35 The function to call. Called without arguments. 13:27:35 :type func: Callable[[], _pytest.runner.TResult] 13:27:35 :param when: 13:27:35 The phase in which the function is called. 13:27:35 :param reraise: 13:27:35 Exception or exceptions that shall propagate if raised by the 13:27:35 function, instead of being wrapped in the CallInfo. 13:27:35 """ 13:27:35 excinfo = None 13:27:35 instant = timing.Instant() 13:27:35 try: 13:27:35 > result: TResult | None = func() 13:27:35 ^^^^^^ 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:27:35 lambda: runtest_hook(item=item, **kwds), 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:27:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:27:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:27:35 yield 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:27:35 return (yield) 13:27:35 ^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:27:35 item.session._setupstate.setup(item) 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:27:35 col.setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:27:35 super().setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:27:35 self._request._fillfixtures() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:27:35 item.funcargs[argname] = self.getfixturevalue(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:27:35 fixturedef = self._get_active_fixturedef(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:27:35 fixturedef.execute(request=subrequest) 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 13:27:35 self = 13:27:35 request = > 13:27:35 13:27:35 def execute(self, request: SubRequest) -> FixtureValue: 13:27:35 """Return the value of this fixture, executing it if not cached.""" 13:27:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:27:35 # This needs to be done before checking if we have a cached value, since 13:27:35 # if a dependent fixture has their cache invalidated, e.g. due to 13:27:35 # parametrization, they finalize themselves and fixtures depending on it 13:27:35 # (which will likely include this fixture) setting `self.cached_result = None`. 13:27:35 # See #4871 13:27:35 requested_fixtures_that_should_finalize_us = [] 13:27:35 for argname in self.argnames: 13:27:35 fixturedef = request._get_active_fixturedef(argname) 13:27:35 # Saves requested fixtures in a list so we later can add our finalizer 13:27:35 # to them, ensuring that if a requested fixture gets torn down we get torn 13:27:35 # down first. This is generally handled by SetupState, but still currently 13:27:35 # needed when this fixture is not parametrized but depends on a parametrized 13:27:35 # fixture. 13:27:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:27:35 13:27:35 # Check for (and return) cached value/exception. 13:27:35 if self.cached_result is not None: 13:27:35 request_cache_key = self.cache_key(request) 13:27:35 cache_key = self.cached_result[1] 13:27:35 try: 13:27:35 # Attempt to make a normal == check: this might fail for objects 13:27:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:27:35 cache_hit = bool(request_cache_key == cache_key) 13:27:35 except (ValueError, RuntimeError): 13:27:35 # If the comparison raises, use 'is' as fallback. 13:27:35 cache_hit = request_cache_key is cache_key 13:27:35 13:27:35 if cache_hit: 13:27:35 if self.cached_result[2] is not None: 13:27:35 exc, exc_tb = self.cached_result[2] 13:27:35 raise exc.with_traceback(exc_tb) 13:27:35 else: 13:27:35 return self.cached_result[0] 13:27:35 # We have a previous but differently parametrized fixture instance 13:27:35 # so we need to tear it down before creating a new one. 13:27:35 self.finish(request) 13:27:35 assert self.cached_result is None 13:27:35 13:27:35 # Add finalizer to requested fixtures we saved previously. 13:27:35 # We make sure to do this after checking for cached value to avoid 13:27:35 # adding our finalizer multiple times. (#12135) 13:27:35 finalizer = functools.partial(self.finish, request=request) 13:27:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:27:35 parent_fixture.addfinalizer(finalizer) 13:27:35 13:27:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:27:35 # which is executed last. 13:27:35 > assert not self._finalizers 13:27:35 ^^^^^^^^^^^^^^^^^^^^ 13:27:35 E AssertionError 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:27:35 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 13:27:35 13:27:35 cls = 13:27:35 func = . at 0x7f8653b9f420> 13:27:35 when = 'setup' 13:27:35 reraise = (, ) 13:27:35 13:27:35 @classmethod 13:27:35 def from_call( 13:27:35 cls, 13:27:35 func: Callable[[], TResult], 13:27:35 when: Literal["collect", "setup", "call", "teardown"], 13:27:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:27:35 ) -> CallInfo[TResult]: 13:27:35 """Call func, wrapping the result in a CallInfo. 13:27:35 13:27:35 :param func: 13:27:35 The function to call. Called without arguments. 13:27:35 :type func: Callable[[], _pytest.runner.TResult] 13:27:35 :param when: 13:27:35 The phase in which the function is called. 13:27:35 :param reraise: 13:27:35 Exception or exceptions that shall propagate if raised by the 13:27:35 function, instead of being wrapped in the CallInfo. 13:27:35 """ 13:27:35 excinfo = None 13:27:35 instant = timing.Instant() 13:27:35 try: 13:27:35 > result: TResult | None = func() 13:27:35 ^^^^^^ 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:27:35 lambda: runtest_hook(item=item, **kwds), 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:27:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:27:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:27:35 yield 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:27:35 return (yield) 13:27:35 ^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:27:35 item.session._setupstate.setup(item) 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:27:35 col.setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:27:35 super().setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:27:35 self._request._fillfixtures() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:27:35 item.funcargs[argname] = self.getfixturevalue(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:27:35 fixturedef = self._get_active_fixturedef(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:27:35 fixturedef.execute(request=subrequest) 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 13:27:35 self = 13:27:35 request = > 13:27:35 13:27:35 def execute(self, request: SubRequest) -> FixtureValue: 13:27:35 """Return the value of this fixture, executing it if not cached.""" 13:27:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:27:35 # This needs to be done before checking if we have a cached value, since 13:27:35 # if a dependent fixture has their cache invalidated, e.g. due to 13:27:35 # parametrization, they finalize themselves and fixtures depending on it 13:27:35 # (which will likely include this fixture) setting `self.cached_result = None`. 13:27:35 # See #4871 13:27:35 requested_fixtures_that_should_finalize_us = [] 13:27:35 for argname in self.argnames: 13:27:35 fixturedef = request._get_active_fixturedef(argname) 13:27:35 # Saves requested fixtures in a list so we later can add our finalizer 13:27:35 # to them, ensuring that if a requested fixture gets torn down we get torn 13:27:35 # down first. This is generally handled by SetupState, but still currently 13:27:35 # needed when this fixture is not parametrized but depends on a parametrized 13:27:35 # fixture. 13:27:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:27:35 13:27:35 # Check for (and return) cached value/exception. 13:27:35 if self.cached_result is not None: 13:27:35 request_cache_key = self.cache_key(request) 13:27:35 cache_key = self.cached_result[1] 13:27:35 try: 13:27:35 # Attempt to make a normal == check: this might fail for objects 13:27:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:27:35 cache_hit = bool(request_cache_key == cache_key) 13:27:35 except (ValueError, RuntimeError): 13:27:35 # If the comparison raises, use 'is' as fallback. 13:27:35 cache_hit = request_cache_key is cache_key 13:27:35 13:27:35 if cache_hit: 13:27:35 if self.cached_result[2] is not None: 13:27:35 exc, exc_tb = self.cached_result[2] 13:27:35 raise exc.with_traceback(exc_tb) 13:27:35 else: 13:27:35 return self.cached_result[0] 13:27:35 # We have a previous but differently parametrized fixture instance 13:27:35 # so we need to tear it down before creating a new one. 13:27:35 self.finish(request) 13:27:35 assert self.cached_result is None 13:27:35 13:27:35 # Add finalizer to requested fixtures we saved previously. 13:27:35 # We make sure to do this after checking for cached value to avoid 13:27:35 # adding our finalizer multiple times. (#12135) 13:27:35 finalizer = functools.partial(self.finish, request=request) 13:27:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:27:35 parent_fixture.addfinalizer(finalizer) 13:27:35 13:27:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:27:35 # which is executed last. 13:27:35 > assert not self._finalizers 13:27:35 ^^^^^^^^^^^^^^^^^^^^ 13:27:35 E AssertionError 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:27:35 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 13:27:35 13:27:35 cls = 13:27:35 func = . at 0x7f8653b8b380> 13:27:35 when = 'setup' 13:27:35 reraise = (, ) 13:27:35 13:27:35 @classmethod 13:27:35 def from_call( 13:27:35 cls, 13:27:35 func: Callable[[], TResult], 13:27:35 when: Literal["collect", "setup", "call", "teardown"], 13:27:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:27:35 ) -> CallInfo[TResult]: 13:27:35 """Call func, wrapping the result in a CallInfo. 13:27:35 13:27:35 :param func: 13:27:35 The function to call. Called without arguments. 13:27:35 :type func: Callable[[], _pytest.runner.TResult] 13:27:35 :param when: 13:27:35 The phase in which the function is called. 13:27:35 :param reraise: 13:27:35 Exception or exceptions that shall propagate if raised by the 13:27:35 function, instead of being wrapped in the CallInfo. 13:27:35 """ 13:27:35 excinfo = None 13:27:35 instant = timing.Instant() 13:27:35 try: 13:27:35 > result: TResult | None = func() 13:27:35 ^^^^^^ 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:27:35 lambda: runtest_hook(item=item, **kwds), 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:27:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:27:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:27:35 yield 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:27:35 return (yield) 13:27:35 ^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:27:35 item.session._setupstate.setup(item) 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:27:35 col.setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:27:35 super().setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:27:35 self._request._fillfixtures() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:27:35 item.funcargs[argname] = self.getfixturevalue(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:27:35 fixturedef = self._get_active_fixturedef(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:27:35 fixturedef.execute(request=subrequest) 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 13:27:35 self = 13:27:35 request = > 13:27:35 13:27:35 def execute(self, request: SubRequest) -> FixtureValue: 13:27:35 """Return the value of this fixture, executing it if not cached.""" 13:27:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:27:35 # This needs to be done before checking if we have a cached value, since 13:27:35 # if a dependent fixture has their cache invalidated, e.g. due to 13:27:35 # parametrization, they finalize themselves and fixtures depending on it 13:27:35 # (which will likely include this fixture) setting `self.cached_result = None`. 13:27:35 # See #4871 13:27:35 requested_fixtures_that_should_finalize_us = [] 13:27:35 for argname in self.argnames: 13:27:35 fixturedef = request._get_active_fixturedef(argname) 13:27:35 # Saves requested fixtures in a list so we later can add our finalizer 13:27:35 # to them, ensuring that if a requested fixture gets torn down we get torn 13:27:35 # down first. This is generally handled by SetupState, but still currently 13:27:35 # needed when this fixture is not parametrized but depends on a parametrized 13:27:35 # fixture. 13:27:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:27:35 13:27:35 # Check for (and return) cached value/exception. 13:27:35 if self.cached_result is not None: 13:27:35 request_cache_key = self.cache_key(request) 13:27:35 cache_key = self.cached_result[1] 13:27:35 try: 13:27:35 # Attempt to make a normal == check: this might fail for objects 13:27:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:27:35 cache_hit = bool(request_cache_key == cache_key) 13:27:35 except (ValueError, RuntimeError): 13:27:35 # If the comparison raises, use 'is' as fallback. 13:27:35 cache_hit = request_cache_key is cache_key 13:27:35 13:27:35 if cache_hit: 13:27:35 if self.cached_result[2] is not None: 13:27:35 exc, exc_tb = self.cached_result[2] 13:27:35 raise exc.with_traceback(exc_tb) 13:27:35 else: 13:27:35 return self.cached_result[0] 13:27:35 # We have a previous but differently parametrized fixture instance 13:27:35 # so we need to tear it down before creating a new one. 13:27:35 self.finish(request) 13:27:35 assert self.cached_result is None 13:27:35 13:27:35 # Add finalizer to requested fixtures we saved previously. 13:27:35 # We make sure to do this after checking for cached value to avoid 13:27:35 # adding our finalizer multiple times. (#12135) 13:27:35 finalizer = functools.partial(self.finish, request=request) 13:27:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:27:35 parent_fixture.addfinalizer(finalizer) 13:27:35 13:27:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:27:35 # which is executed last. 13:27:35 > assert not self._finalizers 13:27:35 ^^^^^^^^^^^^^^^^^^^^ 13:27:35 E AssertionError 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:27:35 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 13:27:35 13:27:35 cls = 13:27:35 func = . at 0x7f8653b9f1a0> 13:27:35 when = 'setup' 13:27:35 reraise = (, ) 13:27:35 13:27:35 @classmethod 13:27:35 def from_call( 13:27:35 cls, 13:27:35 func: Callable[[], TResult], 13:27:35 when: Literal["collect", "setup", "call", "teardown"], 13:27:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:27:35 ) -> CallInfo[TResult]: 13:27:35 """Call func, wrapping the result in a CallInfo. 13:27:35 13:27:35 :param func: 13:27:35 The function to call. Called without arguments. 13:27:35 :type func: Callable[[], _pytest.runner.TResult] 13:27:35 :param when: 13:27:35 The phase in which the function is called. 13:27:35 :param reraise: 13:27:35 Exception or exceptions that shall propagate if raised by the 13:27:35 function, instead of being wrapped in the CallInfo. 13:27:35 """ 13:27:35 excinfo = None 13:27:35 instant = timing.Instant() 13:27:35 try: 13:27:35 > result: TResult | None = func() 13:27:35 ^^^^^^ 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:27:35 lambda: runtest_hook(item=item, **kwds), 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:27:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:27:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:27:35 yield 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:27:35 return (yield) 13:27:35 ^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:27:35 item.session._setupstate.setup(item) 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:27:35 col.setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:27:35 super().setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:27:35 self._request._fillfixtures() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:27:35 item.funcargs[argname] = self.getfixturevalue(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:27:35 fixturedef = self._get_active_fixturedef(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:27:35 fixturedef.execute(request=subrequest) 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 13:27:35 self = 13:27:35 request = > 13:27:35 13:27:35 def execute(self, request: SubRequest) -> FixtureValue: 13:27:35 """Return the value of this fixture, executing it if not cached.""" 13:27:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:27:35 # This needs to be done before checking if we have a cached value, since 13:27:35 # if a dependent fixture has their cache invalidated, e.g. due to 13:27:35 # parametrization, they finalize themselves and fixtures depending on it 13:27:35 # (which will likely include this fixture) setting `self.cached_result = None`. 13:27:35 # See #4871 13:27:35 requested_fixtures_that_should_finalize_us = [] 13:27:35 for argname in self.argnames: 13:27:35 fixturedef = request._get_active_fixturedef(argname) 13:27:35 # Saves requested fixtures in a list so we later can add our finalizer 13:27:35 # to them, ensuring that if a requested fixture gets torn down we get torn 13:27:35 # down first. This is generally handled by SetupState, but still currently 13:27:35 # needed when this fixture is not parametrized but depends on a parametrized 13:27:35 # fixture. 13:27:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:27:35 13:27:35 # Check for (and return) cached value/exception. 13:27:35 if self.cached_result is not None: 13:27:35 request_cache_key = self.cache_key(request) 13:27:35 cache_key = self.cached_result[1] 13:27:35 try: 13:27:35 # Attempt to make a normal == check: this might fail for objects 13:27:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:27:35 cache_hit = bool(request_cache_key == cache_key) 13:27:35 except (ValueError, RuntimeError): 13:27:35 # If the comparison raises, use 'is' as fallback. 13:27:35 cache_hit = request_cache_key is cache_key 13:27:35 13:27:35 if cache_hit: 13:27:35 if self.cached_result[2] is not None: 13:27:35 exc, exc_tb = self.cached_result[2] 13:27:35 raise exc.with_traceback(exc_tb) 13:27:35 else: 13:27:35 return self.cached_result[0] 13:27:35 # We have a previous but differently parametrized fixture instance 13:27:35 # so we need to tear it down before creating a new one. 13:27:35 self.finish(request) 13:27:35 assert self.cached_result is None 13:27:35 13:27:35 # Add finalizer to requested fixtures we saved previously. 13:27:35 # We make sure to do this after checking for cached value to avoid 13:27:35 # adding our finalizer multiple times. (#12135) 13:27:35 finalizer = functools.partial(self.finish, request=request) 13:27:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:27:35 parent_fixture.addfinalizer(finalizer) 13:27:35 13:27:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:27:35 # which is executed last. 13:27:35 > assert not self._finalizers 13:27:35 ^^^^^^^^^^^^^^^^^^^^ 13:27:35 E AssertionError 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:27:35 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 13:27:35 13:27:35 cls = 13:27:35 func = . at 0x7f8653b9f6a0> 13:27:35 when = 'setup' 13:27:35 reraise = (, ) 13:27:35 13:27:35 @classmethod 13:27:35 def from_call( 13:27:35 cls, 13:27:35 func: Callable[[], TResult], 13:27:35 when: Literal["collect", "setup", "call", "teardown"], 13:27:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:27:35 ) -> CallInfo[TResult]: 13:27:35 """Call func, wrapping the result in a CallInfo. 13:27:35 13:27:35 :param func: 13:27:35 The function to call. Called without arguments. 13:27:35 :type func: Callable[[], _pytest.runner.TResult] 13:27:35 :param when: 13:27:35 The phase in which the function is called. 13:27:35 :param reraise: 13:27:35 Exception or exceptions that shall propagate if raised by the 13:27:35 function, instead of being wrapped in the CallInfo. 13:27:35 """ 13:27:35 excinfo = None 13:27:35 instant = timing.Instant() 13:27:35 try: 13:27:35 > result: TResult | None = func() 13:27:35 ^^^^^^ 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:27:35 lambda: runtest_hook(item=item, **kwds), 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:27:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:27:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:27:35 yield 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:27:35 return (yield) 13:27:35 ^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:27:35 item.session._setupstate.setup(item) 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:27:35 col.setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:27:35 super().setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:27:35 self._request._fillfixtures() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:27:35 item.funcargs[argname] = self.getfixturevalue(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:27:35 fixturedef = self._get_active_fixturedef(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:27:35 fixturedef.execute(request=subrequest) 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 13:27:35 self = 13:27:35 request = > 13:27:35 13:27:35 def execute(self, request: SubRequest) -> FixtureValue: 13:27:35 """Return the value of this fixture, executing it if not cached.""" 13:27:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:27:35 # This needs to be done before checking if we have a cached value, since 13:27:35 # if a dependent fixture has their cache invalidated, e.g. due to 13:27:35 # parametrization, they finalize themselves and fixtures depending on it 13:27:35 # (which will likely include this fixture) setting `self.cached_result = None`. 13:27:35 # See #4871 13:27:35 requested_fixtures_that_should_finalize_us = [] 13:27:35 for argname in self.argnames: 13:27:35 fixturedef = request._get_active_fixturedef(argname) 13:27:35 # Saves requested fixtures in a list so we later can add our finalizer 13:27:35 # to them, ensuring that if a requested fixture gets torn down we get torn 13:27:35 # down first. This is generally handled by SetupState, but still currently 13:27:35 # needed when this fixture is not parametrized but depends on a parametrized 13:27:35 # fixture. 13:27:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:27:35 13:27:35 # Check for (and return) cached value/exception. 13:27:35 if self.cached_result is not None: 13:27:35 request_cache_key = self.cache_key(request) 13:27:35 cache_key = self.cached_result[1] 13:27:35 try: 13:27:35 # Attempt to make a normal == check: this might fail for objects 13:27:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:27:35 cache_hit = bool(request_cache_key == cache_key) 13:27:35 except (ValueError, RuntimeError): 13:27:35 # If the comparison raises, use 'is' as fallback. 13:27:35 cache_hit = request_cache_key is cache_key 13:27:35 13:27:35 if cache_hit: 13:27:35 if self.cached_result[2] is not None: 13:27:35 exc, exc_tb = self.cached_result[2] 13:27:35 raise exc.with_traceback(exc_tb) 13:27:35 else: 13:27:35 return self.cached_result[0] 13:27:35 # We have a previous but differently parametrized fixture instance 13:27:35 # so we need to tear it down before creating a new one. 13:27:35 self.finish(request) 13:27:35 assert self.cached_result is None 13:27:35 13:27:35 # Add finalizer to requested fixtures we saved previously. 13:27:35 # We make sure to do this after checking for cached value to avoid 13:27:35 # adding our finalizer multiple times. (#12135) 13:27:35 finalizer = functools.partial(self.finish, request=request) 13:27:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:27:35 parent_fixture.addfinalizer(finalizer) 13:27:35 13:27:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:27:35 # which is executed last. 13:27:35 > assert not self._finalizers 13:27:35 ^^^^^^^^^^^^^^^^^^^^ 13:27:35 E AssertionError 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:27:35 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 13:27:35 13:27:35 cls = 13:27:35 func = . at 0x7f86534a1da0> 13:27:35 when = 'setup' 13:27:35 reraise = (, ) 13:27:35 13:27:35 @classmethod 13:27:35 def from_call( 13:27:35 cls, 13:27:35 func: Callable[[], TResult], 13:27:35 when: Literal["collect", "setup", "call", "teardown"], 13:27:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:27:35 ) -> CallInfo[TResult]: 13:27:35 """Call func, wrapping the result in a CallInfo. 13:27:35 13:27:35 :param func: 13:27:35 The function to call. Called without arguments. 13:27:35 :type func: Callable[[], _pytest.runner.TResult] 13:27:35 :param when: 13:27:35 The phase in which the function is called. 13:27:35 :param reraise: 13:27:35 Exception or exceptions that shall propagate if raised by the 13:27:35 function, instead of being wrapped in the CallInfo. 13:27:35 """ 13:27:35 excinfo = None 13:27:35 instant = timing.Instant() 13:27:35 try: 13:27:35 > result: TResult | None = func() 13:27:35 ^^^^^^ 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:27:35 lambda: runtest_hook(item=item, **kwds), 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:27:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:27:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:27:35 yield 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:27:35 return (yield) 13:27:35 ^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:27:35 item.session._setupstate.setup(item) 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:27:35 col.setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:27:35 super().setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:27:35 self._request._fillfixtures() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:27:35 item.funcargs[argname] = self.getfixturevalue(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:27:35 fixturedef = self._get_active_fixturedef(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:27:35 fixturedef.execute(request=subrequest) 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 13:27:35 self = 13:27:35 request = > 13:27:35 13:27:35 def execute(self, request: SubRequest) -> FixtureValue: 13:27:35 """Return the value of this fixture, executing it if not cached.""" 13:27:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:27:35 # This needs to be done before checking if we have a cached value, since 13:27:35 # if a dependent fixture has their cache invalidated, e.g. due to 13:27:35 # parametrization, they finalize themselves and fixtures depending on it 13:27:35 # (which will likely include this fixture) setting `self.cached_result = None`. 13:27:35 # See #4871 13:27:35 requested_fixtures_that_should_finalize_us = [] 13:27:35 for argname in self.argnames: 13:27:35 fixturedef = request._get_active_fixturedef(argname) 13:27:35 # Saves requested fixtures in a list so we later can add our finalizer 13:27:35 # to them, ensuring that if a requested fixture gets torn down we get torn 13:27:35 # down first. This is generally handled by SetupState, but still currently 13:27:35 # needed when this fixture is not parametrized but depends on a parametrized 13:27:35 # fixture. 13:27:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:27:35 13:27:35 # Check for (and return) cached value/exception. 13:27:35 if self.cached_result is not None: 13:27:35 request_cache_key = self.cache_key(request) 13:27:35 cache_key = self.cached_result[1] 13:27:35 try: 13:27:35 # Attempt to make a normal == check: this might fail for objects 13:27:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:27:35 cache_hit = bool(request_cache_key == cache_key) 13:27:35 except (ValueError, RuntimeError): 13:27:35 # If the comparison raises, use 'is' as fallback. 13:27:35 cache_hit = request_cache_key is cache_key 13:27:35 13:27:35 if cache_hit: 13:27:35 if self.cached_result[2] is not None: 13:27:35 exc, exc_tb = self.cached_result[2] 13:27:35 raise exc.with_traceback(exc_tb) 13:27:35 else: 13:27:35 return self.cached_result[0] 13:27:35 # We have a previous but differently parametrized fixture instance 13:27:35 # so we need to tear it down before creating a new one. 13:27:35 self.finish(request) 13:27:35 assert self.cached_result is None 13:27:35 13:27:35 # Add finalizer to requested fixtures we saved previously. 13:27:35 # We make sure to do this after checking for cached value to avoid 13:27:35 # adding our finalizer multiple times. (#12135) 13:27:35 finalizer = functools.partial(self.finish, request=request) 13:27:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:27:35 parent_fixture.addfinalizer(finalizer) 13:27:35 13:27:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:27:35 # which is executed last. 13:27:35 > assert not self._finalizers 13:27:35 ^^^^^^^^^^^^^^^^^^^^ 13:27:35 E AssertionError 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:27:35 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 13:27:35 13:27:35 cls = 13:27:35 func = . at 0x7f8653b8bec0> 13:27:35 when = 'setup' 13:27:35 reraise = (, ) 13:27:35 13:27:35 @classmethod 13:27:35 def from_call( 13:27:35 cls, 13:27:35 func: Callable[[], TResult], 13:27:35 when: Literal["collect", "setup", "call", "teardown"], 13:27:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:27:35 ) -> CallInfo[TResult]: 13:27:35 """Call func, wrapping the result in a CallInfo. 13:27:35 13:27:35 :param func: 13:27:35 The function to call. Called without arguments. 13:27:35 :type func: Callable[[], _pytest.runner.TResult] 13:27:35 :param when: 13:27:35 The phase in which the function is called. 13:27:35 :param reraise: 13:27:35 Exception or exceptions that shall propagate if raised by the 13:27:35 function, instead of being wrapped in the CallInfo. 13:27:35 """ 13:27:35 excinfo = None 13:27:35 instant = timing.Instant() 13:27:35 try: 13:27:35 > result: TResult | None = func() 13:27:35 ^^^^^^ 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:27:35 lambda: runtest_hook(item=item, **kwds), 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:27:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:27:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:27:35 yield 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:27:35 return (yield) 13:27:35 ^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:27:35 item.session._setupstate.setup(item) 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:27:35 col.setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:27:35 super().setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:27:35 self._request._fillfixtures() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:27:35 item.funcargs[argname] = self.getfixturevalue(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:27:35 fixturedef = self._get_active_fixturedef(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:27:35 fixturedef.execute(request=subrequest) 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 13:27:35 self = 13:27:35 request = > 13:27:35 13:27:35 def execute(self, request: SubRequest) -> FixtureValue: 13:27:35 """Return the value of this fixture, executing it if not cached.""" 13:27:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:27:35 # This needs to be done before checking if we have a cached value, since 13:27:35 # if a dependent fixture has their cache invalidated, e.g. due to 13:27:35 # parametrization, they finalize themselves and fixtures depending on it 13:27:35 # (which will likely include this fixture) setting `self.cached_result = None`. 13:27:35 # See #4871 13:27:35 requested_fixtures_that_should_finalize_us = [] 13:27:35 for argname in self.argnames: 13:27:35 fixturedef = request._get_active_fixturedef(argname) 13:27:35 # Saves requested fixtures in a list so we later can add our finalizer 13:27:35 # to them, ensuring that if a requested fixture gets torn down we get torn 13:27:35 # down first. This is generally handled by SetupState, but still currently 13:27:35 # needed when this fixture is not parametrized but depends on a parametrized 13:27:35 # fixture. 13:27:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:27:35 13:27:35 # Check for (and return) cached value/exception. 13:27:35 if self.cached_result is not None: 13:27:35 request_cache_key = self.cache_key(request) 13:27:35 cache_key = self.cached_result[1] 13:27:35 try: 13:27:35 # Attempt to make a normal == check: this might fail for objects 13:27:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:27:35 cache_hit = bool(request_cache_key == cache_key) 13:27:35 except (ValueError, RuntimeError): 13:27:35 # If the comparison raises, use 'is' as fallback. 13:27:35 cache_hit = request_cache_key is cache_key 13:27:35 13:27:35 if cache_hit: 13:27:35 if self.cached_result[2] is not None: 13:27:35 exc, exc_tb = self.cached_result[2] 13:27:35 raise exc.with_traceback(exc_tb) 13:27:35 else: 13:27:35 return self.cached_result[0] 13:27:35 # We have a previous but differently parametrized fixture instance 13:27:35 # so we need to tear it down before creating a new one. 13:27:35 self.finish(request) 13:27:35 assert self.cached_result is None 13:27:35 13:27:35 # Add finalizer to requested fixtures we saved previously. 13:27:35 # We make sure to do this after checking for cached value to avoid 13:27:35 # adding our finalizer multiple times. (#12135) 13:27:35 finalizer = functools.partial(self.finish, request=request) 13:27:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:27:35 parent_fixture.addfinalizer(finalizer) 13:27:35 13:27:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:27:35 # which is executed last. 13:27:35 > assert not self._finalizers 13:27:35 ^^^^^^^^^^^^^^^^^^^^ 13:27:35 E AssertionError 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:27:35 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 13:27:35 13:27:35 cls = 13:27:35 func = . at 0x7f8653b8b380> 13:27:35 when = 'setup' 13:27:35 reraise = (, ) 13:27:35 13:27:35 @classmethod 13:27:35 def from_call( 13:27:35 cls, 13:27:35 func: Callable[[], TResult], 13:27:35 when: Literal["collect", "setup", "call", "teardown"], 13:27:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:27:35 ) -> CallInfo[TResult]: 13:27:35 """Call func, wrapping the result in a CallInfo. 13:27:35 13:27:35 :param func: 13:27:35 The function to call. Called without arguments. 13:27:35 :type func: Callable[[], _pytest.runner.TResult] 13:27:35 :param when: 13:27:35 The phase in which the function is called. 13:27:35 :param reraise: 13:27:35 Exception or exceptions that shall propagate if raised by the 13:27:35 function, instead of being wrapped in the CallInfo. 13:27:35 """ 13:27:35 excinfo = None 13:27:35 instant = timing.Instant() 13:27:35 try: 13:27:35 > result: TResult | None = func() 13:27:35 ^^^^^^ 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:27:35 lambda: runtest_hook(item=item, **kwds), 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:27:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:27:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:27:35 yield 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:27:35 return (yield) 13:27:35 ^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:27:35 item.session._setupstate.setup(item) 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:27:35 col.setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:27:35 super().setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:27:35 self._request._fillfixtures() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:27:35 item.funcargs[argname] = self.getfixturevalue(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:27:35 fixturedef = self._get_active_fixturedef(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:27:35 fixturedef.execute(request=subrequest) 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 13:27:35 self = 13:27:35 request = > 13:27:35 13:27:35 def execute(self, request: SubRequest) -> FixtureValue: 13:27:35 """Return the value of this fixture, executing it if not cached.""" 13:27:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:27:35 # This needs to be done before checking if we have a cached value, since 13:27:35 # if a dependent fixture has their cache invalidated, e.g. due to 13:27:35 # parametrization, they finalize themselves and fixtures depending on it 13:27:35 # (which will likely include this fixture) setting `self.cached_result = None`. 13:27:35 # See #4871 13:27:35 requested_fixtures_that_should_finalize_us = [] 13:27:35 for argname in self.argnames: 13:27:35 fixturedef = request._get_active_fixturedef(argname) 13:27:35 # Saves requested fixtures in a list so we later can add our finalizer 13:27:35 # to them, ensuring that if a requested fixture gets torn down we get torn 13:27:35 # down first. This is generally handled by SetupState, but still currently 13:27:35 # needed when this fixture is not parametrized but depends on a parametrized 13:27:35 # fixture. 13:27:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:27:35 13:27:35 # Check for (and return) cached value/exception. 13:27:35 if self.cached_result is not None: 13:27:35 request_cache_key = self.cache_key(request) 13:27:35 cache_key = self.cached_result[1] 13:27:35 try: 13:27:35 # Attempt to make a normal == check: this might fail for objects 13:27:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:27:35 cache_hit = bool(request_cache_key == cache_key) 13:27:35 except (ValueError, RuntimeError): 13:27:35 # If the comparison raises, use 'is' as fallback. 13:27:35 cache_hit = request_cache_key is cache_key 13:27:35 13:27:35 if cache_hit: 13:27:35 if self.cached_result[2] is not None: 13:27:35 exc, exc_tb = self.cached_result[2] 13:27:35 raise exc.with_traceback(exc_tb) 13:27:35 else: 13:27:35 return self.cached_result[0] 13:27:35 # We have a previous but differently parametrized fixture instance 13:27:35 # so we need to tear it down before creating a new one. 13:27:35 self.finish(request) 13:27:35 assert self.cached_result is None 13:27:35 13:27:35 # Add finalizer to requested fixtures we saved previously. 13:27:35 # We make sure to do this after checking for cached value to avoid 13:27:35 # adding our finalizer multiple times. (#12135) 13:27:35 finalizer = functools.partial(self.finish, request=request) 13:27:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:27:35 parent_fixture.addfinalizer(finalizer) 13:27:35 13:27:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:27:35 # which is executed last. 13:27:35 > assert not self._finalizers 13:27:35 ^^^^^^^^^^^^^^^^^^^^ 13:27:35 E AssertionError 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:27:35 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 13:27:35 13:27:35 cls = 13:27:35 func = . at 0x7f8653b8bec0> 13:27:35 when = 'setup' 13:27:35 reraise = (, ) 13:27:35 13:27:35 @classmethod 13:27:35 def from_call( 13:27:35 cls, 13:27:35 func: Callable[[], TResult], 13:27:35 when: Literal["collect", "setup", "call", "teardown"], 13:27:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:27:35 ) -> CallInfo[TResult]: 13:27:35 """Call func, wrapping the result in a CallInfo. 13:27:35 13:27:35 :param func: 13:27:35 The function to call. Called without arguments. 13:27:35 :type func: Callable[[], _pytest.runner.TResult] 13:27:35 :param when: 13:27:35 The phase in which the function is called. 13:27:35 :param reraise: 13:27:35 Exception or exceptions that shall propagate if raised by the 13:27:35 function, instead of being wrapped in the CallInfo. 13:27:35 """ 13:27:35 excinfo = None 13:27:35 instant = timing.Instant() 13:27:35 try: 13:27:35 > result: TResult | None = func() 13:27:35 ^^^^^^ 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:27:35 lambda: runtest_hook(item=item, **kwds), 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:27:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:27:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:27:35 yield 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:27:35 return (yield) 13:27:35 ^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:27:35 item.session._setupstate.setup(item) 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:27:35 col.setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:27:35 super().setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:27:35 self._request._fillfixtures() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:27:35 item.funcargs[argname] = self.getfixturevalue(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:27:35 fixturedef = self._get_active_fixturedef(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:27:35 fixturedef.execute(request=subrequest) 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 13:27:35 self = 13:27:35 request = > 13:27:35 13:27:35 def execute(self, request: SubRequest) -> FixtureValue: 13:27:35 """Return the value of this fixture, executing it if not cached.""" 13:27:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:27:35 # This needs to be done before checking if we have a cached value, since 13:27:35 # if a dependent fixture has their cache invalidated, e.g. due to 13:27:35 # parametrization, they finalize themselves and fixtures depending on it 13:27:35 # (which will likely include this fixture) setting `self.cached_result = None`. 13:27:35 # See #4871 13:27:35 requested_fixtures_that_should_finalize_us = [] 13:27:35 for argname in self.argnames: 13:27:35 fixturedef = request._get_active_fixturedef(argname) 13:27:35 # Saves requested fixtures in a list so we later can add our finalizer 13:27:35 # to them, ensuring that if a requested fixture gets torn down we get torn 13:27:35 # down first. This is generally handled by SetupState, but still currently 13:27:35 # needed when this fixture is not parametrized but depends on a parametrized 13:27:35 # fixture. 13:27:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:27:35 13:27:35 # Check for (and return) cached value/exception. 13:27:35 if self.cached_result is not None: 13:27:35 request_cache_key = self.cache_key(request) 13:27:35 cache_key = self.cached_result[1] 13:27:35 try: 13:27:35 # Attempt to make a normal == check: this might fail for objects 13:27:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:27:35 cache_hit = bool(request_cache_key == cache_key) 13:27:35 except (ValueError, RuntimeError): 13:27:35 # If the comparison raises, use 'is' as fallback. 13:27:35 cache_hit = request_cache_key is cache_key 13:27:35 13:27:35 if cache_hit: 13:27:35 if self.cached_result[2] is not None: 13:27:35 exc, exc_tb = self.cached_result[2] 13:27:35 raise exc.with_traceback(exc_tb) 13:27:35 else: 13:27:35 return self.cached_result[0] 13:27:35 # We have a previous but differently parametrized fixture instance 13:27:35 # so we need to tear it down before creating a new one. 13:27:35 self.finish(request) 13:27:35 assert self.cached_result is None 13:27:35 13:27:35 # Add finalizer to requested fixtures we saved previously. 13:27:35 # We make sure to do this after checking for cached value to avoid 13:27:35 # adding our finalizer multiple times. (#12135) 13:27:35 finalizer = functools.partial(self.finish, request=request) 13:27:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:27:35 parent_fixture.addfinalizer(finalizer) 13:27:35 13:27:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:27:35 # which is executed last. 13:27:35 > assert not self._finalizers 13:27:35 ^^^^^^^^^^^^^^^^^^^^ 13:27:35 E AssertionError 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:27:35 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 13:27:35 13:27:35 cls = 13:27:35 func = . at 0x7f86534a1940> 13:27:35 when = 'setup' 13:27:35 reraise = (, ) 13:27:35 13:27:35 @classmethod 13:27:35 def from_call( 13:27:35 cls, 13:27:35 func: Callable[[], TResult], 13:27:35 when: Literal["collect", "setup", "call", "teardown"], 13:27:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:27:35 ) -> CallInfo[TResult]: 13:27:35 """Call func, wrapping the result in a CallInfo. 13:27:35 13:27:35 :param func: 13:27:35 The function to call. Called without arguments. 13:27:35 :type func: Callable[[], _pytest.runner.TResult] 13:27:35 :param when: 13:27:35 The phase in which the function is called. 13:27:35 :param reraise: 13:27:35 Exception or exceptions that shall propagate if raised by the 13:27:35 function, instead of being wrapped in the CallInfo. 13:27:35 """ 13:27:35 excinfo = None 13:27:35 instant = timing.Instant() 13:27:35 try: 13:27:35 > result: TResult | None = func() 13:27:35 ^^^^^^ 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:27:35 lambda: runtest_hook(item=item, **kwds), 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:27:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:27:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:27:35 yield 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:27:35 return (yield) 13:27:35 ^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:27:35 item.session._setupstate.setup(item) 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:27:35 col.setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:27:35 super().setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:27:35 self._request._fillfixtures() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:27:35 item.funcargs[argname] = self.getfixturevalue(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:27:35 fixturedef = self._get_active_fixturedef(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:27:35 fixturedef.execute(request=subrequest) 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 13:27:35 self = 13:27:35 request = > 13:27:35 13:27:35 def execute(self, request: SubRequest) -> FixtureValue: 13:27:35 """Return the value of this fixture, executing it if not cached.""" 13:27:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:27:35 # This needs to be done before checking if we have a cached value, since 13:27:35 # if a dependent fixture has their cache invalidated, e.g. due to 13:27:35 # parametrization, they finalize themselves and fixtures depending on it 13:27:35 # (which will likely include this fixture) setting `self.cached_result = None`. 13:27:35 # See #4871 13:27:35 requested_fixtures_that_should_finalize_us = [] 13:27:35 for argname in self.argnames: 13:27:35 fixturedef = request._get_active_fixturedef(argname) 13:27:35 # Saves requested fixtures in a list so we later can add our finalizer 13:27:35 # to them, ensuring that if a requested fixture gets torn down we get torn 13:27:35 # down first. This is generally handled by SetupState, but still currently 13:27:35 # needed when this fixture is not parametrized but depends on a parametrized 13:27:35 # fixture. 13:27:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:27:35 13:27:35 # Check for (and return) cached value/exception. 13:27:35 if self.cached_result is not None: 13:27:35 request_cache_key = self.cache_key(request) 13:27:35 cache_key = self.cached_result[1] 13:27:35 try: 13:27:35 # Attempt to make a normal == check: this might fail for objects 13:27:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:27:35 cache_hit = bool(request_cache_key == cache_key) 13:27:35 except (ValueError, RuntimeError): 13:27:35 # If the comparison raises, use 'is' as fallback. 13:27:35 cache_hit = request_cache_key is cache_key 13:27:35 13:27:35 if cache_hit: 13:27:35 if self.cached_result[2] is not None: 13:27:35 exc, exc_tb = self.cached_result[2] 13:27:35 raise exc.with_traceback(exc_tb) 13:27:35 else: 13:27:35 return self.cached_result[0] 13:27:35 # We have a previous but differently parametrized fixture instance 13:27:35 # so we need to tear it down before creating a new one. 13:27:35 self.finish(request) 13:27:35 assert self.cached_result is None 13:27:35 13:27:35 # Add finalizer to requested fixtures we saved previously. 13:27:35 # We make sure to do this after checking for cached value to avoid 13:27:35 # adding our finalizer multiple times. (#12135) 13:27:35 finalizer = functools.partial(self.finish, request=request) 13:27:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:27:35 parent_fixture.addfinalizer(finalizer) 13:27:35 13:27:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:27:35 # which is executed last. 13:27:35 > assert not self._finalizers 13:27:35 ^^^^^^^^^^^^^^^^^^^^ 13:27:35 E AssertionError 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:27:35 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 13:27:35 13:27:35 cls = 13:27:35 func = . at 0x7f8653b9f1a0> 13:27:35 when = 'setup' 13:27:35 reraise = (, ) 13:27:35 13:27:35 @classmethod 13:27:35 def from_call( 13:27:35 cls, 13:27:35 func: Callable[[], TResult], 13:27:35 when: Literal["collect", "setup", "call", "teardown"], 13:27:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:27:35 ) -> CallInfo[TResult]: 13:27:35 """Call func, wrapping the result in a CallInfo. 13:27:35 13:27:35 :param func: 13:27:35 The function to call. Called without arguments. 13:27:35 :type func: Callable[[], _pytest.runner.TResult] 13:27:35 :param when: 13:27:35 The phase in which the function is called. 13:27:35 :param reraise: 13:27:35 Exception or exceptions that shall propagate if raised by the 13:27:35 function, instead of being wrapped in the CallInfo. 13:27:35 """ 13:27:35 excinfo = None 13:27:35 instant = timing.Instant() 13:27:35 try: 13:27:35 > result: TResult | None = func() 13:27:35 ^^^^^^ 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:27:35 lambda: runtest_hook(item=item, **kwds), 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:27:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:27:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:27:35 yield 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:27:35 return (yield) 13:27:35 ^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:27:35 item.session._setupstate.setup(item) 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:27:35 col.setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:27:35 super().setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:27:35 self._request._fillfixtures() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:27:35 item.funcargs[argname] = self.getfixturevalue(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:27:35 fixturedef = self._get_active_fixturedef(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:27:35 fixturedef.execute(request=subrequest) 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 13:27:35 self = 13:27:35 request = > 13:27:35 13:27:35 def execute(self, request: SubRequest) -> FixtureValue: 13:27:35 """Return the value of this fixture, executing it if not cached.""" 13:27:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:27:35 # This needs to be done before checking if we have a cached value, since 13:27:35 # if a dependent fixture has their cache invalidated, e.g. due to 13:27:35 # parametrization, they finalize themselves and fixtures depending on it 13:27:35 # (which will likely include this fixture) setting `self.cached_result = None`. 13:27:35 # See #4871 13:27:35 requested_fixtures_that_should_finalize_us = [] 13:27:35 for argname in self.argnames: 13:27:35 fixturedef = request._get_active_fixturedef(argname) 13:27:35 # Saves requested fixtures in a list so we later can add our finalizer 13:27:35 # to them, ensuring that if a requested fixture gets torn down we get torn 13:27:35 # down first. This is generally handled by SetupState, but still currently 13:27:35 # needed when this fixture is not parametrized but depends on a parametrized 13:27:35 # fixture. 13:27:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:27:35 13:27:35 # Check for (and return) cached value/exception. 13:27:35 if self.cached_result is not None: 13:27:35 request_cache_key = self.cache_key(request) 13:27:35 cache_key = self.cached_result[1] 13:27:35 try: 13:27:35 # Attempt to make a normal == check: this might fail for objects 13:27:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:27:35 cache_hit = bool(request_cache_key == cache_key) 13:27:35 except (ValueError, RuntimeError): 13:27:35 # If the comparison raises, use 'is' as fallback. 13:27:35 cache_hit = request_cache_key is cache_key 13:27:35 13:27:35 if cache_hit: 13:27:35 if self.cached_result[2] is not None: 13:27:35 exc, exc_tb = self.cached_result[2] 13:27:35 raise exc.with_traceback(exc_tb) 13:27:35 else: 13:27:35 return self.cached_result[0] 13:27:35 # We have a previous but differently parametrized fixture instance 13:27:35 # so we need to tear it down before creating a new one. 13:27:35 self.finish(request) 13:27:35 assert self.cached_result is None 13:27:35 13:27:35 # Add finalizer to requested fixtures we saved previously. 13:27:35 # We make sure to do this after checking for cached value to avoid 13:27:35 # adding our finalizer multiple times. (#12135) 13:27:35 finalizer = functools.partial(self.finish, request=request) 13:27:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:27:35 parent_fixture.addfinalizer(finalizer) 13:27:35 13:27:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:27:35 # which is executed last. 13:27:35 > assert not self._finalizers 13:27:35 ^^^^^^^^^^^^^^^^^^^^ 13:27:35 E AssertionError 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:27:35 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 13:27:35 13:27:35 cls = 13:27:35 func = . at 0x7f8653b8b380> 13:27:35 when = 'setup' 13:27:35 reraise = (, ) 13:27:35 13:27:35 @classmethod 13:27:35 def from_call( 13:27:35 cls, 13:27:35 func: Callable[[], TResult], 13:27:35 when: Literal["collect", "setup", "call", "teardown"], 13:27:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:27:35 ) -> CallInfo[TResult]: 13:27:35 """Call func, wrapping the result in a CallInfo. 13:27:35 13:27:35 :param func: 13:27:35 The function to call. Called without arguments. 13:27:35 :type func: Callable[[], _pytest.runner.TResult] 13:27:35 :param when: 13:27:35 The phase in which the function is called. 13:27:35 :param reraise: 13:27:35 Exception or exceptions that shall propagate if raised by the 13:27:35 function, instead of being wrapped in the CallInfo. 13:27:35 """ 13:27:35 excinfo = None 13:27:35 instant = timing.Instant() 13:27:35 try: 13:27:35 > result: TResult | None = func() 13:27:35 ^^^^^^ 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:27:35 lambda: runtest_hook(item=item, **kwds), 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:27:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:27:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:27:35 yield 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:27:35 return (yield) 13:27:35 ^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:27:35 item.session._setupstate.setup(item) 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:27:35 col.setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:27:35 super().setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:27:35 self._request._fillfixtures() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:27:35 item.funcargs[argname] = self.getfixturevalue(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:27:35 fixturedef = self._get_active_fixturedef(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:27:35 fixturedef.execute(request=subrequest) 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 13:27:35 self = 13:27:35 request = > 13:27:35 13:27:35 def execute(self, request: SubRequest) -> FixtureValue: 13:27:35 """Return the value of this fixture, executing it if not cached.""" 13:27:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:27:35 # This needs to be done before checking if we have a cached value, since 13:27:35 # if a dependent fixture has their cache invalidated, e.g. due to 13:27:35 # parametrization, they finalize themselves and fixtures depending on it 13:27:35 # (which will likely include this fixture) setting `self.cached_result = None`. 13:27:35 # See #4871 13:27:35 requested_fixtures_that_should_finalize_us = [] 13:27:35 for argname in self.argnames: 13:27:35 fixturedef = request._get_active_fixturedef(argname) 13:27:35 # Saves requested fixtures in a list so we later can add our finalizer 13:27:35 # to them, ensuring that if a requested fixture gets torn down we get torn 13:27:35 # down first. This is generally handled by SetupState, but still currently 13:27:35 # needed when this fixture is not parametrized but depends on a parametrized 13:27:35 # fixture. 13:27:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:27:35 13:27:35 # Check for (and return) cached value/exception. 13:27:35 if self.cached_result is not None: 13:27:35 request_cache_key = self.cache_key(request) 13:27:35 cache_key = self.cached_result[1] 13:27:35 try: 13:27:35 # Attempt to make a normal == check: this might fail for objects 13:27:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:27:35 cache_hit = bool(request_cache_key == cache_key) 13:27:35 except (ValueError, RuntimeError): 13:27:35 # If the comparison raises, use 'is' as fallback. 13:27:35 cache_hit = request_cache_key is cache_key 13:27:35 13:27:35 if cache_hit: 13:27:35 if self.cached_result[2] is not None: 13:27:35 exc, exc_tb = self.cached_result[2] 13:27:35 raise exc.with_traceback(exc_tb) 13:27:35 else: 13:27:35 return self.cached_result[0] 13:27:35 # We have a previous but differently parametrized fixture instance 13:27:35 # so we need to tear it down before creating a new one. 13:27:35 self.finish(request) 13:27:35 assert self.cached_result is None 13:27:35 13:27:35 # Add finalizer to requested fixtures we saved previously. 13:27:35 # We make sure to do this after checking for cached value to avoid 13:27:35 # adding our finalizer multiple times. (#12135) 13:27:35 finalizer = functools.partial(self.finish, request=request) 13:27:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:27:35 parent_fixture.addfinalizer(finalizer) 13:27:35 13:27:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:27:35 # which is executed last. 13:27:35 > assert not self._finalizers 13:27:35 ^^^^^^^^^^^^^^^^^^^^ 13:27:35 E AssertionError 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:27:35 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 13:27:35 13:27:35 cls = 13:27:35 func = . at 0x7f86534a2980> 13:27:35 when = 'setup' 13:27:35 reraise = (, ) 13:27:35 13:27:35 @classmethod 13:27:35 def from_call( 13:27:35 cls, 13:27:35 func: Callable[[], TResult], 13:27:35 when: Literal["collect", "setup", "call", "teardown"], 13:27:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:27:35 ) -> CallInfo[TResult]: 13:27:35 """Call func, wrapping the result in a CallInfo. 13:27:35 13:27:35 :param func: 13:27:35 The function to call. Called without arguments. 13:27:35 :type func: Callable[[], _pytest.runner.TResult] 13:27:35 :param when: 13:27:35 The phase in which the function is called. 13:27:35 :param reraise: 13:27:35 Exception or exceptions that shall propagate if raised by the 13:27:35 function, instead of being wrapped in the CallInfo. 13:27:35 """ 13:27:35 excinfo = None 13:27:35 instant = timing.Instant() 13:27:35 try: 13:27:35 > result: TResult | None = func() 13:27:35 ^^^^^^ 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:27:35 lambda: runtest_hook(item=item, **kwds), 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:27:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:27:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:27:35 yield 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:27:35 return (yield) 13:27:35 ^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:27:35 item.session._setupstate.setup(item) 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:27:35 col.setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:27:35 super().setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:27:35 self._request._fillfixtures() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:27:35 item.funcargs[argname] = self.getfixturevalue(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:27:35 fixturedef = self._get_active_fixturedef(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:27:35 fixturedef.execute(request=subrequest) 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 13:27:35 self = 13:27:35 request = > 13:27:35 13:27:35 def execute(self, request: SubRequest) -> FixtureValue: 13:27:35 """Return the value of this fixture, executing it if not cached.""" 13:27:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:27:35 # This needs to be done before checking if we have a cached value, since 13:27:35 # if a dependent fixture has their cache invalidated, e.g. due to 13:27:35 # parametrization, they finalize themselves and fixtures depending on it 13:27:35 # (which will likely include this fixture) setting `self.cached_result = None`. 13:27:35 # See #4871 13:27:35 requested_fixtures_that_should_finalize_us = [] 13:27:35 for argname in self.argnames: 13:27:35 fixturedef = request._get_active_fixturedef(argname) 13:27:35 # Saves requested fixtures in a list so we later can add our finalizer 13:27:35 # to them, ensuring that if a requested fixture gets torn down we get torn 13:27:35 # down first. This is generally handled by SetupState, but still currently 13:27:35 # needed when this fixture is not parametrized but depends on a parametrized 13:27:35 # fixture. 13:27:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:27:35 13:27:35 # Check for (and return) cached value/exception. 13:27:35 if self.cached_result is not None: 13:27:35 request_cache_key = self.cache_key(request) 13:27:35 cache_key = self.cached_result[1] 13:27:35 try: 13:27:35 # Attempt to make a normal == check: this might fail for objects 13:27:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:27:35 cache_hit = bool(request_cache_key == cache_key) 13:27:35 except (ValueError, RuntimeError): 13:27:35 # If the comparison raises, use 'is' as fallback. 13:27:35 cache_hit = request_cache_key is cache_key 13:27:35 13:27:35 if cache_hit: 13:27:35 if self.cached_result[2] is not None: 13:27:35 exc, exc_tb = self.cached_result[2] 13:27:35 raise exc.with_traceback(exc_tb) 13:27:35 else: 13:27:35 return self.cached_result[0] 13:27:35 # We have a previous but differently parametrized fixture instance 13:27:35 # so we need to tear it down before creating a new one. 13:27:35 self.finish(request) 13:27:35 assert self.cached_result is None 13:27:35 13:27:35 # Add finalizer to requested fixtures we saved previously. 13:27:35 # We make sure to do this after checking for cached value to avoid 13:27:35 # adding our finalizer multiple times. (#12135) 13:27:35 finalizer = functools.partial(self.finish, request=request) 13:27:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:27:35 parent_fixture.addfinalizer(finalizer) 13:27:35 13:27:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:27:35 # which is executed last. 13:27:35 > assert not self._finalizers 13:27:35 ^^^^^^^^^^^^^^^^^^^^ 13:27:35 E AssertionError 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:27:35 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 13:27:35 13:27:35 cls = 13:27:35 func = . at 0x7f8653b9c540> 13:27:35 when = 'setup' 13:27:35 reraise = (, ) 13:27:35 13:27:35 @classmethod 13:27:35 def from_call( 13:27:35 cls, 13:27:35 func: Callable[[], TResult], 13:27:35 when: Literal["collect", "setup", "call", "teardown"], 13:27:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:27:35 ) -> CallInfo[TResult]: 13:27:35 """Call func, wrapping the result in a CallInfo. 13:27:35 13:27:35 :param func: 13:27:35 The function to call. Called without arguments. 13:27:35 :type func: Callable[[], _pytest.runner.TResult] 13:27:35 :param when: 13:27:35 The phase in which the function is called. 13:27:35 :param reraise: 13:27:35 Exception or exceptions that shall propagate if raised by the 13:27:35 function, instead of being wrapped in the CallInfo. 13:27:35 """ 13:27:35 excinfo = None 13:27:35 instant = timing.Instant() 13:27:35 try: 13:27:35 > result: TResult | None = func() 13:27:35 ^^^^^^ 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:27:35 lambda: runtest_hook(item=item, **kwds), 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:27:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:27:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:27:35 yield 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:27:35 return (yield) 13:27:35 ^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:27:35 item.session._setupstate.setup(item) 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:27:35 col.setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:27:35 super().setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:27:35 self._request._fillfixtures() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:27:35 item.funcargs[argname] = self.getfixturevalue(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:27:35 fixturedef = self._get_active_fixturedef(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:27:35 fixturedef.execute(request=subrequest) 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 13:27:35 self = 13:27:35 request = > 13:27:35 13:27:35 def execute(self, request: SubRequest) -> FixtureValue: 13:27:35 """Return the value of this fixture, executing it if not cached.""" 13:27:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:27:35 # This needs to be done before checking if we have a cached value, since 13:27:35 # if a dependent fixture has their cache invalidated, e.g. due to 13:27:35 # parametrization, they finalize themselves and fixtures depending on it 13:27:35 # (which will likely include this fixture) setting `self.cached_result = None`. 13:27:35 # See #4871 13:27:35 requested_fixtures_that_should_finalize_us = [] 13:27:35 for argname in self.argnames: 13:27:35 fixturedef = request._get_active_fixturedef(argname) 13:27:35 # Saves requested fixtures in a list so we later can add our finalizer 13:27:35 # to them, ensuring that if a requested fixture gets torn down we get torn 13:27:35 # down first. This is generally handled by SetupState, but still currently 13:27:35 # needed when this fixture is not parametrized but depends on a parametrized 13:27:35 # fixture. 13:27:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:27:35 13:27:35 # Check for (and return) cached value/exception. 13:27:35 if self.cached_result is not None: 13:27:35 request_cache_key = self.cache_key(request) 13:27:35 cache_key = self.cached_result[1] 13:27:35 try: 13:27:35 # Attempt to make a normal == check: this might fail for objects 13:27:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:27:35 cache_hit = bool(request_cache_key == cache_key) 13:27:35 except (ValueError, RuntimeError): 13:27:35 # If the comparison raises, use 'is' as fallback. 13:27:35 cache_hit = request_cache_key is cache_key 13:27:35 13:27:35 if cache_hit: 13:27:35 if self.cached_result[2] is not None: 13:27:35 exc, exc_tb = self.cached_result[2] 13:27:35 raise exc.with_traceback(exc_tb) 13:27:35 else: 13:27:35 return self.cached_result[0] 13:27:35 # We have a previous but differently parametrized fixture instance 13:27:35 # so we need to tear it down before creating a new one. 13:27:35 self.finish(request) 13:27:35 assert self.cached_result is None 13:27:35 13:27:35 # Add finalizer to requested fixtures we saved previously. 13:27:35 # We make sure to do this after checking for cached value to avoid 13:27:35 # adding our finalizer multiple times. (#12135) 13:27:35 finalizer = functools.partial(self.finish, request=request) 13:27:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:27:35 parent_fixture.addfinalizer(finalizer) 13:27:35 13:27:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:27:35 # which is executed last. 13:27:35 > assert not self._finalizers 13:27:35 ^^^^^^^^^^^^^^^^^^^^ 13:27:35 E AssertionError 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:27:35 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 13:27:35 13:27:35 cls = 13:27:35 func = . at 0x7f8653b8b380> 13:27:35 when = 'setup' 13:27:35 reraise = (, ) 13:27:35 13:27:35 @classmethod 13:27:35 def from_call( 13:27:35 cls, 13:27:35 func: Callable[[], TResult], 13:27:35 when: Literal["collect", "setup", "call", "teardown"], 13:27:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:27:35 ) -> CallInfo[TResult]: 13:27:35 """Call func, wrapping the result in a CallInfo. 13:27:35 13:27:35 :param func: 13:27:35 The function to call. Called without arguments. 13:27:35 :type func: Callable[[], _pytest.runner.TResult] 13:27:35 :param when: 13:27:35 The phase in which the function is called. 13:27:35 :param reraise: 13:27:35 Exception or exceptions that shall propagate if raised by the 13:27:35 function, instead of being wrapped in the CallInfo. 13:27:35 """ 13:27:35 excinfo = None 13:27:35 instant = timing.Instant() 13:27:35 try: 13:27:35 > result: TResult | None = func() 13:27:35 ^^^^^^ 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:27:35 lambda: runtest_hook(item=item, **kwds), 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:27:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:27:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:27:35 yield 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:27:35 return (yield) 13:27:35 ^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:27:35 item.session._setupstate.setup(item) 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:27:35 col.setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:27:35 super().setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:27:35 self._request._fillfixtures() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:27:35 item.funcargs[argname] = self.getfixturevalue(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:27:35 fixturedef = self._get_active_fixturedef(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:27:35 fixturedef.execute(request=subrequest) 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 13:27:35 self = 13:27:35 request = > 13:27:35 13:27:35 def execute(self, request: SubRequest) -> FixtureValue: 13:27:35 """Return the value of this fixture, executing it if not cached.""" 13:27:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:27:35 # This needs to be done before checking if we have a cached value, since 13:27:35 # if a dependent fixture has their cache invalidated, e.g. due to 13:27:35 # parametrization, they finalize themselves and fixtures depending on it 13:27:35 # (which will likely include this fixture) setting `self.cached_result = None`. 13:27:35 # See #4871 13:27:35 requested_fixtures_that_should_finalize_us = [] 13:27:35 for argname in self.argnames: 13:27:35 fixturedef = request._get_active_fixturedef(argname) 13:27:35 # Saves requested fixtures in a list so we later can add our finalizer 13:27:35 # to them, ensuring that if a requested fixture gets torn down we get torn 13:27:35 # down first. This is generally handled by SetupState, but still currently 13:27:35 # needed when this fixture is not parametrized but depends on a parametrized 13:27:35 # fixture. 13:27:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:27:35 13:27:35 # Check for (and return) cached value/exception. 13:27:35 if self.cached_result is not None: 13:27:35 request_cache_key = self.cache_key(request) 13:27:35 cache_key = self.cached_result[1] 13:27:35 try: 13:27:35 # Attempt to make a normal == check: this might fail for objects 13:27:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:27:35 cache_hit = bool(request_cache_key == cache_key) 13:27:35 except (ValueError, RuntimeError): 13:27:35 # If the comparison raises, use 'is' as fallback. 13:27:35 cache_hit = request_cache_key is cache_key 13:27:35 13:27:35 if cache_hit: 13:27:35 if self.cached_result[2] is not None: 13:27:35 exc, exc_tb = self.cached_result[2] 13:27:35 raise exc.with_traceback(exc_tb) 13:27:35 else: 13:27:35 return self.cached_result[0] 13:27:35 # We have a previous but differently parametrized fixture instance 13:27:35 # so we need to tear it down before creating a new one. 13:27:35 self.finish(request) 13:27:35 assert self.cached_result is None 13:27:35 13:27:35 # Add finalizer to requested fixtures we saved previously. 13:27:35 # We make sure to do this after checking for cached value to avoid 13:27:35 # adding our finalizer multiple times. (#12135) 13:27:35 finalizer = functools.partial(self.finish, request=request) 13:27:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:27:35 parent_fixture.addfinalizer(finalizer) 13:27:35 13:27:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:27:35 # which is executed last. 13:27:35 > assert not self._finalizers 13:27:35 ^^^^^^^^^^^^^^^^^^^^ 13:27:35 E AssertionError 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:27:35 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 13:27:35 13:27:35 cls = 13:27:35 func = . at 0x7f86534a22a0> 13:27:35 when = 'setup' 13:27:35 reraise = (, ) 13:27:35 13:27:35 @classmethod 13:27:35 def from_call( 13:27:35 cls, 13:27:35 func: Callable[[], TResult], 13:27:35 when: Literal["collect", "setup", "call", "teardown"], 13:27:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:27:35 ) -> CallInfo[TResult]: 13:27:35 """Call func, wrapping the result in a CallInfo. 13:27:35 13:27:35 :param func: 13:27:35 The function to call. Called without arguments. 13:27:35 :type func: Callable[[], _pytest.runner.TResult] 13:27:35 :param when: 13:27:35 The phase in which the function is called. 13:27:35 :param reraise: 13:27:35 Exception or exceptions that shall propagate if raised by the 13:27:35 function, instead of being wrapped in the CallInfo. 13:27:35 """ 13:27:35 excinfo = None 13:27:35 instant = timing.Instant() 13:27:35 try: 13:27:35 > result: TResult | None = func() 13:27:35 ^^^^^^ 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:27:35 lambda: runtest_hook(item=item, **kwds), 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:27:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:27:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:27:35 yield 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:27:35 return (yield) 13:27:35 ^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:27:35 item.session._setupstate.setup(item) 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:27:35 col.setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:27:35 super().setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:27:35 self._request._fillfixtures() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:27:35 item.funcargs[argname] = self.getfixturevalue(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:27:35 fixturedef = self._get_active_fixturedef(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:27:35 fixturedef.execute(request=subrequest) 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 13:27:35 self = 13:27:35 request = > 13:27:35 13:27:35 def execute(self, request: SubRequest) -> FixtureValue: 13:27:35 """Return the value of this fixture, executing it if not cached.""" 13:27:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:27:35 # This needs to be done before checking if we have a cached value, since 13:27:35 # if a dependent fixture has their cache invalidated, e.g. due to 13:27:35 # parametrization, they finalize themselves and fixtures depending on it 13:27:35 # (which will likely include this fixture) setting `self.cached_result = None`. 13:27:35 # See #4871 13:27:35 requested_fixtures_that_should_finalize_us = [] 13:27:35 for argname in self.argnames: 13:27:35 fixturedef = request._get_active_fixturedef(argname) 13:27:35 # Saves requested fixtures in a list so we later can add our finalizer 13:27:35 # to them, ensuring that if a requested fixture gets torn down we get torn 13:27:35 # down first. This is generally handled by SetupState, but still currently 13:27:35 # needed when this fixture is not parametrized but depends on a parametrized 13:27:35 # fixture. 13:27:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:27:35 13:27:35 # Check for (and return) cached value/exception. 13:27:35 if self.cached_result is not None: 13:27:35 request_cache_key = self.cache_key(request) 13:27:35 cache_key = self.cached_result[1] 13:27:35 try: 13:27:35 # Attempt to make a normal == check: this might fail for objects 13:27:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:27:35 cache_hit = bool(request_cache_key == cache_key) 13:27:35 except (ValueError, RuntimeError): 13:27:35 # If the comparison raises, use 'is' as fallback. 13:27:35 cache_hit = request_cache_key is cache_key 13:27:35 13:27:35 if cache_hit: 13:27:35 if self.cached_result[2] is not None: 13:27:35 exc, exc_tb = self.cached_result[2] 13:27:35 raise exc.with_traceback(exc_tb) 13:27:35 else: 13:27:35 return self.cached_result[0] 13:27:35 # We have a previous but differently parametrized fixture instance 13:27:35 # so we need to tear it down before creating a new one. 13:27:35 self.finish(request) 13:27:35 assert self.cached_result is None 13:27:35 13:27:35 # Add finalizer to requested fixtures we saved previously. 13:27:35 # We make sure to do this after checking for cached value to avoid 13:27:35 # adding our finalizer multiple times. (#12135) 13:27:35 finalizer = functools.partial(self.finish, request=request) 13:27:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:27:35 parent_fixture.addfinalizer(finalizer) 13:27:35 13:27:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:27:35 # which is executed last. 13:27:35 > assert not self._finalizers 13:27:35 ^^^^^^^^^^^^^^^^^^^^ 13:27:35 E AssertionError 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:27:35 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 13:27:35 13:27:35 cls = 13:27:35 func = . at 0x7f8653b9f1a0> 13:27:35 when = 'setup' 13:27:35 reraise = (, ) 13:27:35 13:27:35 @classmethod 13:27:35 def from_call( 13:27:35 cls, 13:27:35 func: Callable[[], TResult], 13:27:35 when: Literal["collect", "setup", "call", "teardown"], 13:27:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:27:35 ) -> CallInfo[TResult]: 13:27:35 """Call func, wrapping the result in a CallInfo. 13:27:35 13:27:35 :param func: 13:27:35 The function to call. Called without arguments. 13:27:35 :type func: Callable[[], _pytest.runner.TResult] 13:27:35 :param when: 13:27:35 The phase in which the function is called. 13:27:35 :param reraise: 13:27:35 Exception or exceptions that shall propagate if raised by the 13:27:35 function, instead of being wrapped in the CallInfo. 13:27:35 """ 13:27:35 excinfo = None 13:27:35 instant = timing.Instant() 13:27:35 try: 13:27:35 > result: TResult | None = func() 13:27:35 ^^^^^^ 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:27:35 lambda: runtest_hook(item=item, **kwds), 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:27:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:27:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:27:35 yield 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:27:35 return (yield) 13:27:35 ^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:27:35 item.session._setupstate.setup(item) 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:27:35 col.setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:27:35 super().setup() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:27:35 self._request._fillfixtures() 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:27:35 item.funcargs[argname] = self.getfixturevalue(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:27:35 fixturedef = self._get_active_fixturedef(argname) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:27:35 fixturedef.execute(request=subrequest) 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 13:27:35 self = 13:27:35 request = > 13:27:35 13:27:35 def execute(self, request: SubRequest) -> FixtureValue: 13:27:35 """Return the value of this fixture, executing it if not cached.""" 13:27:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:27:35 # This needs to be done before checking if we have a cached value, since 13:27:35 # if a dependent fixture has their cache invalidated, e.g. due to 13:27:35 # parametrization, they finalize themselves and fixtures depending on it 13:27:35 # (which will likely include this fixture) setting `self.cached_result = None`. 13:27:35 # See #4871 13:27:35 requested_fixtures_that_should_finalize_us = [] 13:27:35 for argname in self.argnames: 13:27:35 fixturedef = request._get_active_fixturedef(argname) 13:27:35 # Saves requested fixtures in a list so we later can add our finalizer 13:27:35 # to them, ensuring that if a requested fixture gets torn down we get torn 13:27:35 # down first. This is generally handled by SetupState, but still currently 13:27:35 # needed when this fixture is not parametrized but depends on a parametrized 13:27:35 # fixture. 13:27:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:27:35 13:27:35 # Check for (and return) cached value/exception. 13:27:35 if self.cached_result is not None: 13:27:35 request_cache_key = self.cache_key(request) 13:27:35 cache_key = self.cached_result[1] 13:27:35 try: 13:27:35 # Attempt to make a normal == check: this might fail for objects 13:27:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:27:35 cache_hit = bool(request_cache_key == cache_key) 13:27:35 except (ValueError, RuntimeError): 13:27:35 # If the comparison raises, use 'is' as fallback. 13:27:35 cache_hit = request_cache_key is cache_key 13:27:35 13:27:35 if cache_hit: 13:27:35 if self.cached_result[2] is not None: 13:27:35 exc, exc_tb = self.cached_result[2] 13:27:35 raise exc.with_traceback(exc_tb) 13:27:35 else: 13:27:35 return self.cached_result[0] 13:27:35 # We have a previous but differently parametrized fixture instance 13:27:35 # so we need to tear it down before creating a new one. 13:27:35 self.finish(request) 13:27:35 assert self.cached_result is None 13:27:35 13:27:35 # Add finalizer to requested fixtures we saved previously. 13:27:35 # We make sure to do this after checking for cached value to avoid 13:27:35 # adding our finalizer multiple times. (#12135) 13:27:35 finalizer = functools.partial(self.finish, request=request) 13:27:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:27:35 parent_fixture.addfinalizer(finalizer) 13:27:35 13:27:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:27:35 # which is executed last. 13:27:35 > assert not self._finalizers 13:27:35 ^^^^^^^^^^^^^^^^^^^^ 13:27:35 E AssertionError 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:27:35 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 13:27:35 13:27:35 cls = 13:27:35 func = . at 0x7f8653b9c2c0> 13:27:35 when = 'setup' 13:27:35 reraise = (, ) 13:27:35 13:27:35 @classmethod 13:27:35 def from_call( 13:27:35 cls, 13:27:35 func: Callable[[], TResult], 13:27:35 when: Literal["collect", "setup", "call", "teardown"], 13:27:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:27:35 ) -> CallInfo[TResult]: 13:27:35 """Call func, wrapping the result in a CallInfo. 13:27:35 13:27:35 :param func: 13:27:35 The function to call. Called without arguments. 13:27:35 :type func: Callable[[], _pytest.runner.TResult] 13:27:35 :param when: 13:27:35 The phase in which the function is called. 13:27:35 :param reraise: 13:27:35 Exception or exceptions that shall propagate if raised by the 13:27:35 function, instead of being wrapped in the CallInfo. 13:27:35 """ 13:27:35 excinfo = None 13:27:35 instant = timing.Instant() 13:27:35 try: 13:27:35 > result: TResult | None = func() 13:27:35 ^^^^^^ 13:27:35 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:27:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:27:35 lambda: runtest_hook(item=item, **kwds), 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:27:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:27:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:27:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:35 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:27:35 yield 13:27:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:27:36 return (yield) 13:27:36 ^^^^^ 13:27:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:27:36 item.session._setupstate.setup(item) 13:27:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:27:36 col.setup() 13:27:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:27:36 super().setup() 13:27:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:27:36 self._request._fillfixtures() 13:27:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:27:36 item.funcargs[argname] = self.getfixturevalue(argname) 13:27:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:27:36 fixturedef = self._get_active_fixturedef(argname) 13:27:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:27:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:27:36 fixturedef.execute(request=subrequest) 13:27:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:27:36 13:27:36 self = 13:27:36 request = > 13:27:36 13:27:36 def execute(self, request: SubRequest) -> FixtureValue: 13:27:36 """Return the value of this fixture, executing it if not cached.""" 13:27:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:27:36 # This needs to be done before checking if we have a cached value, since 13:27:36 # if a dependent fixture has their cache invalidated, e.g. due to 13:27:36 # parametrization, they finalize themselves and fixtures depending on it 13:27:36 # (which will likely include this fixture) setting `self.cached_result = None`. 13:27:36 # See #4871 13:27:36 requested_fixtures_that_should_finalize_us = [] 13:27:36 for argname in self.argnames: 13:27:36 fixturedef = request._get_active_fixturedef(argname) 13:27:36 # Saves requested fixtures in a list so we later can add our finalizer 13:27:36 # to them, ensuring that if a requested fixture gets torn down we get torn 13:27:36 # down first. This is generally handled by SetupState, but still currently 13:27:36 # needed when this fixture is not parametrized but depends on a parametrized 13:27:36 # fixture. 13:27:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:27:36 13:27:36 # Check for (and return) cached value/exception. 13:27:36 if self.cached_result is not None: 13:27:36 request_cache_key = self.cache_key(request) 13:27:36 cache_key = self.cached_result[1] 13:27:36 try: 13:27:36 # Attempt to make a normal == check: this might fail for objects 13:27:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:27:36 cache_hit = bool(request_cache_key == cache_key) 13:27:36 except (ValueError, RuntimeError): 13:27:36 # If the comparison raises, use 'is' as fallback. 13:27:36 cache_hit = request_cache_key is cache_key 13:27:36 13:27:36 if cache_hit: 13:27:36 if self.cached_result[2] is not None: 13:27:36 exc, exc_tb = self.cached_result[2] 13:27:36 raise exc.with_traceback(exc_tb) 13:27:36 else: 13:27:36 return self.cached_result[0] 13:27:36 # We have a previous but differently parametrized fixture instance 13:27:36 # so we need to tear it down before creating a new one. 13:27:36 self.finish(request) 13:27:36 assert self.cached_result is None 13:27:36 13:27:36 # Add finalizer to requested fixtures we saved previously. 13:27:36 # We make sure to do this after checking for cached value to avoid 13:27:36 # adding our finalizer multiple times. (#12135) 13:27:36 finalizer = functools.partial(self.finish, request=request) 13:27:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:27:36 parent_fixture.addfinalizer(finalizer) 13:27:36 13:27:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:27:36 # which is executed last. 13:27:36 > assert not self._finalizers 13:27:36 ^^^^^^^^^^^^^^^^^^^^ 13:27:36 E AssertionError 13:27:36 13:27:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:27:36 =========================== short test summary info ============================ 13:27:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 13:27:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 13:27:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 13:27:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 13:27:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 13:27:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 13:27:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 13:27:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 13:27:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 13:27:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 13:27:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 13:27:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 13:27:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 13:27:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 13:27:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 13:27:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 13:27:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 13:27:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 13:27:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 13:27:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 13:27:36 20 errors in 123.75s (0:02:03) 13:27:36 testsPCE: exit 1 (124.05 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce pid=4169 13:27:36 testsPCE: FAIL ✖ in 3 minutes 0.42 seconds 13:27:36 tests_tapi: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:27:44 tests_tapi: freeze> python -m pip freeze --all 13:27:44 tests_tapi: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.1,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 13:27:44 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi 13:27:44 using environment variables from ./karaf221.env 13:27:44 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 13:29:25 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 13:29:34 ==================================== ERRORS ==================================== 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 13:29:34 13:29:34 cls = 13:29:34 13:29:34 @classmethod 13:29:34 def setUpClass(cls): 13:29:34 cls.init_failed = False 13:29:34 os.environ['JAVA_MIN_MEM'] = '1024M' 13:29:34 os.environ['JAVA_MAX_MEM'] = '4096M' 13:29:34 > cls.processes = test_utils.start_tpce() 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 13:29:34 transportpce_tests/tapi/test01_abstracted_topology.py:148: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 def start_tpce(): 13:29:34 if 'NO_ODL_STARTUP' in os.environ: 13:29:34 print('No OpenDaylight instance to start!') 13:29:34 return [] 13:29:34 print('starting OpenDaylight...') 13:29:34 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 13:29:34 process = start_lighty() 13:29:34 else: 13:29:34 process = start_karaf() 13:29:34 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 13:29:34 print('OpenDaylight started !') 13:29:34 else: 13:29:34 print('OpenDaylight failed to start !') 13:29:34 shutdown_process(process) 13:29:34 for pid in process_list: 13:29:34 shutdown_process(pid) 13:29:34 > sys.exit(1) 13:29:34 E SystemExit: 1 13:29:34 13:29:34 transportpce_tests/common/test_utils.py:234: SystemExit 13:29:34 ---------------------------- Captured stdout setup ----------------------------- 13:29:34 starting OpenDaylight... 13:29:34 starting KARAF (karaf221) TransportPCE build... 13:29:34 Pattern not found after 100 seconds! OpenDaylight failed to start ! 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c6ef740> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c747c40> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43edcf060> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43e053060> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c747100> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c6edb20> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c7476a0> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43edcf060> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c6ee2a0> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43edcf060> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c31e020> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43edcf060> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c6eda80> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c31e5c0> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c6ee8e0> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c6ee480> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c747100> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c6ee480> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43edcf060> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c6ee8e0> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43edcf060> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c31dbc0> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c6ee8e0> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c31dbc0> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c31cd60> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c6ee8e0> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c31c7c0> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c31eac0> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c6ee8e0> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c31d300> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c31eac0> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c6ee8e0> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c31da80> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c31efc0> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c6ee8e0> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c31de40> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c6ee8e0> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c31e020> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c31e340> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c6ee8e0> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c31e340> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c31f240> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c6ee8e0> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c31f420> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c31f560> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c6ee8e0> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c31e3e0> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c31da80> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c6ee8e0> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 13:29:34 13:29:34 cls = 13:29:34 func = . at 0x7fd43c31f060> 13:29:34 when = 'setup' 13:29:34 reraise = (, ) 13:29:34 13:29:34 @classmethod 13:29:34 def from_call( 13:29:34 cls, 13:29:34 func: Callable[[], TResult], 13:29:34 when: Literal["collect", "setup", "call", "teardown"], 13:29:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:29:34 ) -> CallInfo[TResult]: 13:29:34 """Call func, wrapping the result in a CallInfo. 13:29:34 13:29:34 :param func: 13:29:34 The function to call. Called without arguments. 13:29:34 :type func: Callable[[], _pytest.runner.TResult] 13:29:34 :param when: 13:29:34 The phase in which the function is called. 13:29:34 :param reraise: 13:29:34 Exception or exceptions that shall propagate if raised by the 13:29:34 function, instead of being wrapped in the CallInfo. 13:29:34 """ 13:29:34 excinfo = None 13:29:34 instant = timing.Instant() 13:29:34 try: 13:29:34 > result: TResult | None = func() 13:29:34 ^^^^^^ 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:29:34 lambda: runtest_hook(item=item, **kwds), 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:29:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:29:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:29:34 yield 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:29:34 return (yield) 13:29:34 ^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:29:34 item.session._setupstate.setup(item) 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:29:34 col.setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:29:34 super().setup() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:29:34 self._request._fillfixtures() 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:29:34 item.funcargs[argname] = self.getfixturevalue(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:29:34 fixturedef = self._get_active_fixturedef(argname) 13:29:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:29:34 fixturedef.execute(request=subrequest) 13:29:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:29:34 13:29:34 self = 13:29:34 request = > 13:29:34 13:29:34 def execute(self, request: SubRequest) -> FixtureValue: 13:29:34 """Return the value of this fixture, executing it if not cached.""" 13:29:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:29:34 # This needs to be done before checking if we have a cached value, since 13:29:34 # if a dependent fixture has their cache invalidated, e.g. due to 13:29:34 # parametrization, they finalize themselves and fixtures depending on it 13:29:34 # (which will likely include this fixture) setting `self.cached_result = None`. 13:29:34 # See #4871 13:29:34 requested_fixtures_that_should_finalize_us = [] 13:29:34 for argname in self.argnames: 13:29:34 fixturedef = request._get_active_fixturedef(argname) 13:29:34 # Saves requested fixtures in a list so we later can add our finalizer 13:29:34 # to them, ensuring that if a requested fixture gets torn down we get torn 13:29:34 # down first. This is generally handled by SetupState, but still currently 13:29:34 # needed when this fixture is not parametrized but depends on a parametrized 13:29:34 # fixture. 13:29:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:29:34 13:29:34 # Check for (and return) cached value/exception. 13:29:34 if self.cached_result is not None: 13:29:34 request_cache_key = self.cache_key(request) 13:29:34 cache_key = self.cached_result[1] 13:29:34 try: 13:29:34 # Attempt to make a normal == check: this might fail for objects 13:29:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:29:34 cache_hit = bool(request_cache_key == cache_key) 13:29:34 except (ValueError, RuntimeError): 13:29:34 # If the comparison raises, use 'is' as fallback. 13:29:34 cache_hit = request_cache_key is cache_key 13:29:34 13:29:34 if cache_hit: 13:29:34 if self.cached_result[2] is not None: 13:29:34 exc, exc_tb = self.cached_result[2] 13:29:34 raise exc.with_traceback(exc_tb) 13:29:34 else: 13:29:34 return self.cached_result[0] 13:29:34 # We have a previous but differently parametrized fixture instance 13:29:34 # so we need to tear it down before creating a new one. 13:29:34 self.finish(request) 13:29:34 assert self.cached_result is None 13:29:34 13:29:34 # Add finalizer to requested fixtures we saved previously. 13:29:34 # We make sure to do this after checking for cached value to avoid 13:29:34 # adding our finalizer multiple times. (#12135) 13:29:34 finalizer = functools.partial(self.finish, request=request) 13:29:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:29:34 parent_fixture.addfinalizer(finalizer) 13:29:34 13:29:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:29:34 # which is executed last. 13:29:34 > assert not self._finalizers 13:29:34 ^^^^^^^^^^^^^^^^^^^^ 13:29:34 E AssertionError 13:29:34 13:29:34 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:29:34 =========================== short test summary info ============================ 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 13:29:34 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 13:29:34 51 errors in 109.23s (0:01:49) 13:29:34 tests_tapi: exit 1 (109.51 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi pid=4246 13:29:34 tests_tapi: FAIL ✖ in 1 minute 58.19 seconds 13:29:34 tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:29:34 tests200: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:29:42 tests221: freeze> python -m pip freeze --all 13:29:42 tests200: freeze> python -m pip freeze --all 13:29:42 tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.1,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 13:29:42 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 13:29:42 using environment variables from ./karaf221.env 13:29:42 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 13:29:42 tests200: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.1,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 13:29:42 tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 13:29:42 using environment variables from ./karafoc200.env 13:29:42 pytest -q transportpce_tests/oc200/test01_portmapping.py 13:31:23 EEEEEEEEEEEEEEEEEEE [100%] 13:31:24 ==================================== ERRORS ==================================== 13:31:24 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 13:31:24 13:31:24 cls = 13:31:24 13:31:24 @classmethod 13:31:24 def setUpClass(cls): 13:31:24 > cls.processes = test_utils.start_tpce() 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 13:31:24 transportpce_tests/oc200/test01_portmapping.py:29: 13:31:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:24 13:31:24 def start_tpce(): 13:31:24 if 'NO_ODL_STARTUP' in os.environ: 13:31:24 print('No OpenDaylight instance to start!') 13:31:24 return [] 13:31:24 print('starting OpenDaylight...') 13:31:24 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 13:31:24 process = start_lighty() 13:31:24 else: 13:31:24 process = start_karaf() 13:31:24 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 13:31:24 print('OpenDaylight started !') 13:31:24 else: 13:31:24 print('OpenDaylight failed to start !') 13:31:24 shutdown_process(process) 13:31:24 for pid in process_list: 13:31:24 shutdown_process(pid) 13:31:24 > sys.exit(1) 13:31:24 E SystemExit: 1 13:31:24 13:31:24 transportpce_tests/common/test_utils.py:234: SystemExit 13:31:24 ---------------------------- Captured stdout setup ----------------------------- 13:31:24 starting OpenDaylight... 13:31:24 starting KARAF (karafoc200) TransportPCE build... 13:31:24 Pattern not found after 100 seconds! OpenDaylight failed to start ! 13:31:24 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catalog_input_insertion _ 13:31:24 13:31:24 cls = 13:31:24 func = . at 0x7f08dee9b420> 13:31:24 when = 'setup' 13:31:24 reraise = (, ) 13:31:24 13:31:24 @classmethod 13:31:24 def from_call( 13:31:24 cls, 13:31:24 func: Callable[[], TResult], 13:31:24 when: Literal["collect", "setup", "call", "teardown"], 13:31:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:24 ) -> CallInfo[TResult]: 13:31:24 """Call func, wrapping the result in a CallInfo. 13:31:24 13:31:24 :param func: 13:31:24 The function to call. Called without arguments. 13:31:24 :type func: Callable[[], _pytest.runner.TResult] 13:31:24 :param when: 13:31:24 The phase in which the function is called. 13:31:24 :param reraise: 13:31:24 Exception or exceptions that shall propagate if raised by the 13:31:24 function, instead of being wrapped in the CallInfo. 13:31:24 """ 13:31:24 excinfo = None 13:31:24 instant = timing.Instant() 13:31:24 try: 13:31:24 > result: TResult | None = func() 13:31:24 ^^^^^^ 13:31:24 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:24 lambda: runtest_hook(item=item, **kwds), 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:24 yield 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:24 return (yield) 13:31:24 ^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:24 item.session._setupstate.setup(item) 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:24 col.setup() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:24 super().setup() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:24 self._request._fillfixtures() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:24 fixturedef = self._get_active_fixturedef(argname) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:24 fixturedef.execute(request=subrequest) 13:31:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:24 13:31:24 self = 13:31:24 request = > 13:31:24 13:31:24 def execute(self, request: SubRequest) -> FixtureValue: 13:31:24 """Return the value of this fixture, executing it if not cached.""" 13:31:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:24 # This needs to be done before checking if we have a cached value, since 13:31:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:24 # parametrization, they finalize themselves and fixtures depending on it 13:31:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:24 # See #4871 13:31:24 requested_fixtures_that_should_finalize_us = [] 13:31:24 for argname in self.argnames: 13:31:24 fixturedef = request._get_active_fixturedef(argname) 13:31:24 # Saves requested fixtures in a list so we later can add our finalizer 13:31:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:24 # down first. This is generally handled by SetupState, but still currently 13:31:24 # needed when this fixture is not parametrized but depends on a parametrized 13:31:24 # fixture. 13:31:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:24 13:31:24 # Check for (and return) cached value/exception. 13:31:24 if self.cached_result is not None: 13:31:24 request_cache_key = self.cache_key(request) 13:31:24 cache_key = self.cached_result[1] 13:31:24 try: 13:31:24 # Attempt to make a normal == check: this might fail for objects 13:31:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:24 cache_hit = bool(request_cache_key == cache_key) 13:31:24 except (ValueError, RuntimeError): 13:31:24 # If the comparison raises, use 'is' as fallback. 13:31:24 cache_hit = request_cache_key is cache_key 13:31:24 13:31:24 if cache_hit: 13:31:24 if self.cached_result[2] is not None: 13:31:24 exc, exc_tb = self.cached_result[2] 13:31:24 raise exc.with_traceback(exc_tb) 13:31:24 else: 13:31:24 return self.cached_result[0] 13:31:24 # We have a previous but differently parametrized fixture instance 13:31:24 # so we need to tear it down before creating a new one. 13:31:24 self.finish(request) 13:31:24 assert self.cached_result is None 13:31:24 13:31:24 # Add finalizer to requested fixtures we saved previously. 13:31:24 # We make sure to do this after checking for cached value to avoid 13:31:24 # adding our finalizer multiple times. (#12135) 13:31:24 finalizer = functools.partial(self.finish, request=request) 13:31:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:24 parent_fixture.addfinalizer(finalizer) 13:31:24 13:31:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:24 # which is executed last. 13:31:24 > assert not self._finalizers 13:31:24 ^^^^^^^^^^^^^^^^^^^^ 13:31:24 E AssertionError 13:31:24 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:24 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 13:31:24 13:31:24 cls = 13:31:24 func = . at 0x7f08dc7afec0> 13:31:24 when = 'setup' 13:31:24 reraise = (, ) 13:31:24 13:31:24 @classmethod 13:31:24 def from_call( 13:31:24 cls, 13:31:24 func: Callable[[], TResult], 13:31:24 when: Literal["collect", "setup", "call", "teardown"], 13:31:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:24 ) -> CallInfo[TResult]: 13:31:24 """Call func, wrapping the result in a CallInfo. 13:31:24 13:31:24 :param func: 13:31:24 The function to call. Called without arguments. 13:31:24 :type func: Callable[[], _pytest.runner.TResult] 13:31:24 :param when: 13:31:24 The phase in which the function is called. 13:31:24 :param reraise: 13:31:24 Exception or exceptions that shall propagate if raised by the 13:31:24 function, instead of being wrapped in the CallInfo. 13:31:24 """ 13:31:24 excinfo = None 13:31:24 instant = timing.Instant() 13:31:24 try: 13:31:24 > result: TResult | None = func() 13:31:24 ^^^^^^ 13:31:24 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:24 lambda: runtest_hook(item=item, **kwds), 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:24 yield 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:24 return (yield) 13:31:24 ^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:24 item.session._setupstate.setup(item) 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:24 col.setup() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:24 super().setup() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:24 self._request._fillfixtures() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:24 fixturedef = self._get_active_fixturedef(argname) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:24 fixturedef.execute(request=subrequest) 13:31:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:24 13:31:24 self = 13:31:24 request = > 13:31:24 13:31:24 def execute(self, request: SubRequest) -> FixtureValue: 13:31:24 """Return the value of this fixture, executing it if not cached.""" 13:31:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:24 # This needs to be done before checking if we have a cached value, since 13:31:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:24 # parametrization, they finalize themselves and fixtures depending on it 13:31:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:24 # See #4871 13:31:24 requested_fixtures_that_should_finalize_us = [] 13:31:24 for argname in self.argnames: 13:31:24 fixturedef = request._get_active_fixturedef(argname) 13:31:24 # Saves requested fixtures in a list so we later can add our finalizer 13:31:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:24 # down first. This is generally handled by SetupState, but still currently 13:31:24 # needed when this fixture is not parametrized but depends on a parametrized 13:31:24 # fixture. 13:31:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:24 13:31:24 # Check for (and return) cached value/exception. 13:31:24 if self.cached_result is not None: 13:31:24 request_cache_key = self.cache_key(request) 13:31:24 cache_key = self.cached_result[1] 13:31:24 try: 13:31:24 # Attempt to make a normal == check: this might fail for objects 13:31:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:24 cache_hit = bool(request_cache_key == cache_key) 13:31:24 except (ValueError, RuntimeError): 13:31:24 # If the comparison raises, use 'is' as fallback. 13:31:24 cache_hit = request_cache_key is cache_key 13:31:24 13:31:24 if cache_hit: 13:31:24 if self.cached_result[2] is not None: 13:31:24 exc, exc_tb = self.cached_result[2] 13:31:24 raise exc.with_traceback(exc_tb) 13:31:24 else: 13:31:24 return self.cached_result[0] 13:31:24 # We have a previous but differently parametrized fixture instance 13:31:24 # so we need to tear it down before creating a new one. 13:31:24 self.finish(request) 13:31:24 assert self.cached_result is None 13:31:24 13:31:24 # Add finalizer to requested fixtures we saved previously. 13:31:24 # We make sure to do this after checking for cached value to avoid 13:31:24 # adding our finalizer multiple times. (#12135) 13:31:24 finalizer = functools.partial(self.finish, request=request) 13:31:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:24 parent_fixture.addfinalizer(finalizer) 13:31:24 13:31:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:24 # which is executed last. 13:31:24 > assert not self._finalizers 13:31:24 ^^^^^^^^^^^^^^^^^^^^ 13:31:24 E AssertionError 13:31:24 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:24 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 13:31:24 13:31:24 cls = 13:31:24 func = . at 0x7f08ddf4f600> 13:31:24 when = 'setup' 13:31:24 reraise = (, ) 13:31:24 13:31:24 @classmethod 13:31:24 def from_call( 13:31:24 cls, 13:31:24 func: Callable[[], TResult], 13:31:24 when: Literal["collect", "setup", "call", "teardown"], 13:31:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:24 ) -> CallInfo[TResult]: 13:31:24 """Call func, wrapping the result in a CallInfo. 13:31:24 13:31:24 :param func: 13:31:24 The function to call. Called without arguments. 13:31:24 :type func: Callable[[], _pytest.runner.TResult] 13:31:24 :param when: 13:31:24 The phase in which the function is called. 13:31:24 :param reraise: 13:31:24 Exception or exceptions that shall propagate if raised by the 13:31:24 function, instead of being wrapped in the CallInfo. 13:31:24 """ 13:31:24 excinfo = None 13:31:24 instant = timing.Instant() 13:31:24 try: 13:31:24 > result: TResult | None = func() 13:31:24 ^^^^^^ 13:31:24 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:24 lambda: runtest_hook(item=item, **kwds), 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:24 yield 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:24 return (yield) 13:31:24 ^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:24 item.session._setupstate.setup(item) 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:24 col.setup() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:24 super().setup() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:24 self._request._fillfixtures() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:24 fixturedef = self._get_active_fixturedef(argname) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:24 fixturedef.execute(request=subrequest) 13:31:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:24 13:31:24 self = 13:31:24 request = > 13:31:24 13:31:24 def execute(self, request: SubRequest) -> FixtureValue: 13:31:24 """Return the value of this fixture, executing it if not cached.""" 13:31:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:24 # This needs to be done before checking if we have a cached value, since 13:31:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:24 # parametrization, they finalize themselves and fixtures depending on it 13:31:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:24 # See #4871 13:31:24 requested_fixtures_that_should_finalize_us = [] 13:31:24 for argname in self.argnames: 13:31:24 fixturedef = request._get_active_fixturedef(argname) 13:31:24 # Saves requested fixtures in a list so we later can add our finalizer 13:31:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:24 # down first. This is generally handled by SetupState, but still currently 13:31:24 # needed when this fixture is not parametrized but depends on a parametrized 13:31:24 # fixture. 13:31:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:24 13:31:24 # Check for (and return) cached value/exception. 13:31:24 if self.cached_result is not None: 13:31:24 request_cache_key = self.cache_key(request) 13:31:24 cache_key = self.cached_result[1] 13:31:24 try: 13:31:24 # Attempt to make a normal == check: this might fail for objects 13:31:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:24 cache_hit = bool(request_cache_key == cache_key) 13:31:24 except (ValueError, RuntimeError): 13:31:24 # If the comparison raises, use 'is' as fallback. 13:31:24 cache_hit = request_cache_key is cache_key 13:31:24 13:31:24 if cache_hit: 13:31:24 if self.cached_result[2] is not None: 13:31:24 exc, exc_tb = self.cached_result[2] 13:31:24 raise exc.with_traceback(exc_tb) 13:31:24 else: 13:31:24 return self.cached_result[0] 13:31:24 # We have a previous but differently parametrized fixture instance 13:31:24 # so we need to tear it down before creating a new one. 13:31:24 self.finish(request) 13:31:24 assert self.cached_result is None 13:31:24 13:31:24 # Add finalizer to requested fixtures we saved previously. 13:31:24 # We make sure to do this after checking for cached value to avoid 13:31:24 # adding our finalizer multiple times. (#12135) 13:31:24 finalizer = functools.partial(self.finish, request=request) 13:31:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:24 parent_fixture.addfinalizer(finalizer) 13:31:24 13:31:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:24 # which is executed last. 13:31:24 > assert not self._finalizers 13:31:24 ^^^^^^^^^^^^^^^^^^^^ 13:31:24 E AssertionError 13:31:24 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:24 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 13:31:24 13:31:24 cls = 13:31:24 func = . at 0x7f08dc78b740> 13:31:24 when = 'setup' 13:31:24 reraise = (, ) 13:31:24 13:31:24 @classmethod 13:31:24 def from_call( 13:31:24 cls, 13:31:24 func: Callable[[], TResult], 13:31:24 when: Literal["collect", "setup", "call", "teardown"], 13:31:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:24 ) -> CallInfo[TResult]: 13:31:24 """Call func, wrapping the result in a CallInfo. 13:31:24 13:31:24 :param func: 13:31:24 The function to call. Called without arguments. 13:31:24 :type func: Callable[[], _pytest.runner.TResult] 13:31:24 :param when: 13:31:24 The phase in which the function is called. 13:31:24 :param reraise: 13:31:24 Exception or exceptions that shall propagate if raised by the 13:31:24 function, instead of being wrapped in the CallInfo. 13:31:24 """ 13:31:24 excinfo = None 13:31:24 instant = timing.Instant() 13:31:24 try: 13:31:24 > result: TResult | None = func() 13:31:24 ^^^^^^ 13:31:24 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:24 lambda: runtest_hook(item=item, **kwds), 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:24 yield 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:24 return (yield) 13:31:24 ^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:24 item.session._setupstate.setup(item) 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:24 col.setup() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:24 super().setup() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:24 self._request._fillfixtures() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:24 fixturedef = self._get_active_fixturedef(argname) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:24 fixturedef.execute(request=subrequest) 13:31:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:24 13:31:24 self = 13:31:24 request = > 13:31:24 13:31:24 def execute(self, request: SubRequest) -> FixtureValue: 13:31:24 """Return the value of this fixture, executing it if not cached.""" 13:31:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:24 # This needs to be done before checking if we have a cached value, since 13:31:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:24 # parametrization, they finalize themselves and fixtures depending on it 13:31:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:24 # See #4871 13:31:24 requested_fixtures_that_should_finalize_us = [] 13:31:24 for argname in self.argnames: 13:31:24 fixturedef = request._get_active_fixturedef(argname) 13:31:24 # Saves requested fixtures in a list so we later can add our finalizer 13:31:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:24 # down first. This is generally handled by SetupState, but still currently 13:31:24 # needed when this fixture is not parametrized but depends on a parametrized 13:31:24 # fixture. 13:31:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:24 13:31:24 # Check for (and return) cached value/exception. 13:31:24 if self.cached_result is not None: 13:31:24 request_cache_key = self.cache_key(request) 13:31:24 cache_key = self.cached_result[1] 13:31:24 try: 13:31:24 # Attempt to make a normal == check: this might fail for objects 13:31:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:24 cache_hit = bool(request_cache_key == cache_key) 13:31:24 except (ValueError, RuntimeError): 13:31:24 # If the comparison raises, use 'is' as fallback. 13:31:24 cache_hit = request_cache_key is cache_key 13:31:24 13:31:24 if cache_hit: 13:31:24 if self.cached_result[2] is not None: 13:31:24 exc, exc_tb = self.cached_result[2] 13:31:24 raise exc.with_traceback(exc_tb) 13:31:24 else: 13:31:24 return self.cached_result[0] 13:31:24 # We have a previous but differently parametrized fixture instance 13:31:24 # so we need to tear it down before creating a new one. 13:31:24 self.finish(request) 13:31:24 assert self.cached_result is None 13:31:24 13:31:24 # Add finalizer to requested fixtures we saved previously. 13:31:24 # We make sure to do this after checking for cached value to avoid 13:31:24 # adding our finalizer multiple times. (#12135) 13:31:24 finalizer = functools.partial(self.finish, request=request) 13:31:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:24 parent_fixture.addfinalizer(finalizer) 13:31:24 13:31:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:24 # which is executed last. 13:31:24 > assert not self._finalizers 13:31:24 ^^^^^^^^^^^^^^^^^^^^ 13:31:24 E AssertionError 13:31:24 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:24 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 13:31:24 13:31:24 cls = 13:31:24 func = . at 0x7f08dee9b420> 13:31:24 when = 'setup' 13:31:24 reraise = (, ) 13:31:24 13:31:24 @classmethod 13:31:24 def from_call( 13:31:24 cls, 13:31:24 func: Callable[[], TResult], 13:31:24 when: Literal["collect", "setup", "call", "teardown"], 13:31:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:24 ) -> CallInfo[TResult]: 13:31:24 """Call func, wrapping the result in a CallInfo. 13:31:24 13:31:24 :param func: 13:31:24 The function to call. Called without arguments. 13:31:24 :type func: Callable[[], _pytest.runner.TResult] 13:31:24 :param when: 13:31:24 The phase in which the function is called. 13:31:24 :param reraise: 13:31:24 Exception or exceptions that shall propagate if raised by the 13:31:24 function, instead of being wrapped in the CallInfo. 13:31:24 """ 13:31:24 excinfo = None 13:31:24 instant = timing.Instant() 13:31:24 try: 13:31:24 > result: TResult | None = func() 13:31:24 ^^^^^^ 13:31:24 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:24 lambda: runtest_hook(item=item, **kwds), 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:24 yield 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:24 return (yield) 13:31:24 ^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:24 item.session._setupstate.setup(item) 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:24 col.setup() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:24 super().setup() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:24 self._request._fillfixtures() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:24 fixturedef = self._get_active_fixturedef(argname) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:24 fixturedef.execute(request=subrequest) 13:31:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:24 13:31:24 self = 13:31:24 request = > 13:31:24 13:31:24 def execute(self, request: SubRequest) -> FixtureValue: 13:31:24 """Return the value of this fixture, executing it if not cached.""" 13:31:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:24 # This needs to be done before checking if we have a cached value, since 13:31:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:24 # parametrization, they finalize themselves and fixtures depending on it 13:31:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:24 # See #4871 13:31:24 requested_fixtures_that_should_finalize_us = [] 13:31:24 for argname in self.argnames: 13:31:24 fixturedef = request._get_active_fixturedef(argname) 13:31:24 # Saves requested fixtures in a list so we later can add our finalizer 13:31:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:24 # down first. This is generally handled by SetupState, but still currently 13:31:24 # needed when this fixture is not parametrized but depends on a parametrized 13:31:24 # fixture. 13:31:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:24 13:31:24 # Check for (and return) cached value/exception. 13:31:24 if self.cached_result is not None: 13:31:24 request_cache_key = self.cache_key(request) 13:31:24 cache_key = self.cached_result[1] 13:31:24 try: 13:31:24 # Attempt to make a normal == check: this might fail for objects 13:31:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:24 cache_hit = bool(request_cache_key == cache_key) 13:31:24 except (ValueError, RuntimeError): 13:31:24 # If the comparison raises, use 'is' as fallback. 13:31:24 cache_hit = request_cache_key is cache_key 13:31:24 13:31:24 if cache_hit: 13:31:24 if self.cached_result[2] is not None: 13:31:24 exc, exc_tb = self.cached_result[2] 13:31:24 raise exc.with_traceback(exc_tb) 13:31:24 else: 13:31:24 return self.cached_result[0] 13:31:24 # We have a previous but differently parametrized fixture instance 13:31:24 # so we need to tear it down before creating a new one. 13:31:24 self.finish(request) 13:31:24 assert self.cached_result is None 13:31:24 13:31:24 # Add finalizer to requested fixtures we saved previously. 13:31:24 # We make sure to do this after checking for cached value to avoid 13:31:24 # adding our finalizer multiple times. (#12135) 13:31:24 finalizer = functools.partial(self.finish, request=request) 13:31:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:24 parent_fixture.addfinalizer(finalizer) 13:31:24 13:31:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:24 # which is executed last. 13:31:24 > assert not self._finalizers 13:31:24 ^^^^^^^^^^^^^^^^^^^^ 13:31:24 E AssertionError 13:31:24 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:24 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 13:31:24 13:31:24 cls = 13:31:24 func = . at 0x7f08ddf4f600> 13:31:24 when = 'setup' 13:31:24 reraise = (, ) 13:31:24 13:31:24 @classmethod 13:31:24 def from_call( 13:31:24 cls, 13:31:24 func: Callable[[], TResult], 13:31:24 when: Literal["collect", "setup", "call", "teardown"], 13:31:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:24 ) -> CallInfo[TResult]: 13:31:24 """Call func, wrapping the result in a CallInfo. 13:31:24 13:31:24 :param func: 13:31:24 The function to call. Called without arguments. 13:31:24 :type func: Callable[[], _pytest.runner.TResult] 13:31:24 :param when: 13:31:24 The phase in which the function is called. 13:31:24 :param reraise: 13:31:24 Exception or exceptions that shall propagate if raised by the 13:31:24 function, instead of being wrapped in the CallInfo. 13:31:24 """ 13:31:24 excinfo = None 13:31:24 instant = timing.Instant() 13:31:24 try: 13:31:24 > result: TResult | None = func() 13:31:24 ^^^^^^ 13:31:24 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:24 lambda: runtest_hook(item=item, **kwds), 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:24 yield 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:24 return (yield) 13:31:24 ^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:24 item.session._setupstate.setup(item) 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:24 col.setup() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:24 super().setup() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:24 self._request._fillfixtures() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:24 fixturedef = self._get_active_fixturedef(argname) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:24 fixturedef.execute(request=subrequest) 13:31:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:24 13:31:24 self = 13:31:24 request = > 13:31:24 13:31:24 def execute(self, request: SubRequest) -> FixtureValue: 13:31:24 """Return the value of this fixture, executing it if not cached.""" 13:31:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:24 # This needs to be done before checking if we have a cached value, since 13:31:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:24 # parametrization, they finalize themselves and fixtures depending on it 13:31:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:24 # See #4871 13:31:24 requested_fixtures_that_should_finalize_us = [] 13:31:24 for argname in self.argnames: 13:31:24 fixturedef = request._get_active_fixturedef(argname) 13:31:24 # Saves requested fixtures in a list so we later can add our finalizer 13:31:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:24 # down first. This is generally handled by SetupState, but still currently 13:31:24 # needed when this fixture is not parametrized but depends on a parametrized 13:31:24 # fixture. 13:31:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:24 13:31:24 # Check for (and return) cached value/exception. 13:31:24 if self.cached_result is not None: 13:31:24 request_cache_key = self.cache_key(request) 13:31:24 cache_key = self.cached_result[1] 13:31:24 try: 13:31:24 # Attempt to make a normal == check: this might fail for objects 13:31:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:24 cache_hit = bool(request_cache_key == cache_key) 13:31:24 except (ValueError, RuntimeError): 13:31:24 # If the comparison raises, use 'is' as fallback. 13:31:24 cache_hit = request_cache_key is cache_key 13:31:24 13:31:24 if cache_hit: 13:31:24 if self.cached_result[2] is not None: 13:31:24 exc, exc_tb = self.cached_result[2] 13:31:24 raise exc.with_traceback(exc_tb) 13:31:24 else: 13:31:24 return self.cached_result[0] 13:31:24 # We have a previous but differently parametrized fixture instance 13:31:24 # so we need to tear it down before creating a new one. 13:31:24 self.finish(request) 13:31:24 assert self.cached_result is None 13:31:24 13:31:24 # Add finalizer to requested fixtures we saved previously. 13:31:24 # We make sure to do this after checking for cached value to avoid 13:31:24 # adding our finalizer multiple times. (#12135) 13:31:24 finalizer = functools.partial(self.finish, request=request) 13:31:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:24 parent_fixture.addfinalizer(finalizer) 13:31:24 13:31:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:24 # which is executed last. 13:31:24 > assert not self._finalizers 13:31:24 ^^^^^^^^^^^^^^^^^^^^ 13:31:24 E AssertionError 13:31:24 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:24 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 13:31:24 13:31:24 cls = 13:31:24 func = . at 0x7f08dc7af880> 13:31:24 when = 'setup' 13:31:24 reraise = (, ) 13:31:24 13:31:24 @classmethod 13:31:24 def from_call( 13:31:24 cls, 13:31:24 func: Callable[[], TResult], 13:31:24 when: Literal["collect", "setup", "call", "teardown"], 13:31:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:24 ) -> CallInfo[TResult]: 13:31:24 """Call func, wrapping the result in a CallInfo. 13:31:24 13:31:24 :param func: 13:31:24 The function to call. Called without arguments. 13:31:24 :type func: Callable[[], _pytest.runner.TResult] 13:31:24 :param when: 13:31:24 The phase in which the function is called. 13:31:24 :param reraise: 13:31:24 Exception or exceptions that shall propagate if raised by the 13:31:24 function, instead of being wrapped in the CallInfo. 13:31:24 """ 13:31:24 excinfo = None 13:31:24 instant = timing.Instant() 13:31:24 try: 13:31:24 > result: TResult | None = func() 13:31:24 ^^^^^^ 13:31:24 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:24 lambda: runtest_hook(item=item, **kwds), 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:24 yield 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:24 return (yield) 13:31:24 ^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:24 item.session._setupstate.setup(item) 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:24 col.setup() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:24 super().setup() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:24 self._request._fillfixtures() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:24 fixturedef = self._get_active_fixturedef(argname) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:24 fixturedef.execute(request=subrequest) 13:31:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:24 13:31:24 self = 13:31:24 request = > 13:31:24 13:31:24 def execute(self, request: SubRequest) -> FixtureValue: 13:31:24 """Return the value of this fixture, executing it if not cached.""" 13:31:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:24 # This needs to be done before checking if we have a cached value, since 13:31:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:24 # parametrization, they finalize themselves and fixtures depending on it 13:31:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:24 # See #4871 13:31:24 requested_fixtures_that_should_finalize_us = [] 13:31:24 for argname in self.argnames: 13:31:24 fixturedef = request._get_active_fixturedef(argname) 13:31:24 # Saves requested fixtures in a list so we later can add our finalizer 13:31:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:24 # down first. This is generally handled by SetupState, but still currently 13:31:24 # needed when this fixture is not parametrized but depends on a parametrized 13:31:24 # fixture. 13:31:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:24 13:31:24 # Check for (and return) cached value/exception. 13:31:24 if self.cached_result is not None: 13:31:24 request_cache_key = self.cache_key(request) 13:31:24 cache_key = self.cached_result[1] 13:31:24 try: 13:31:24 # Attempt to make a normal == check: this might fail for objects 13:31:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:24 cache_hit = bool(request_cache_key == cache_key) 13:31:24 except (ValueError, RuntimeError): 13:31:24 # If the comparison raises, use 'is' as fallback. 13:31:24 cache_hit = request_cache_key is cache_key 13:31:24 13:31:24 if cache_hit: 13:31:24 if self.cached_result[2] is not None: 13:31:24 exc, exc_tb = self.cached_result[2] 13:31:24 raise exc.with_traceback(exc_tb) 13:31:24 else: 13:31:24 return self.cached_result[0] 13:31:24 # We have a previous but differently parametrized fixture instance 13:31:24 # so we need to tear it down before creating a new one. 13:31:24 self.finish(request) 13:31:24 assert self.cached_result is None 13:31:24 13:31:24 # Add finalizer to requested fixtures we saved previously. 13:31:24 # We make sure to do this after checking for cached value to avoid 13:31:24 # adding our finalizer multiple times. (#12135) 13:31:24 finalizer = functools.partial(self.finish, request=request) 13:31:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:24 parent_fixture.addfinalizer(finalizer) 13:31:24 13:31:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:24 # which is executed last. 13:31:24 > assert not self._finalizers 13:31:24 ^^^^^^^^^^^^^^^^^^^^ 13:31:24 E AssertionError 13:31:24 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:24 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 13:31:24 13:31:24 cls = 13:31:24 func = . at 0x7f08dc7af6a0> 13:31:24 when = 'setup' 13:31:24 reraise = (, ) 13:31:24 13:31:24 @classmethod 13:31:24 def from_call( 13:31:24 cls, 13:31:24 func: Callable[[], TResult], 13:31:24 when: Literal["collect", "setup", "call", "teardown"], 13:31:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:24 ) -> CallInfo[TResult]: 13:31:24 """Call func, wrapping the result in a CallInfo. 13:31:24 13:31:24 :param func: 13:31:24 The function to call. Called without arguments. 13:31:24 :type func: Callable[[], _pytest.runner.TResult] 13:31:24 :param when: 13:31:24 The phase in which the function is called. 13:31:24 :param reraise: 13:31:24 Exception or exceptions that shall propagate if raised by the 13:31:24 function, instead of being wrapped in the CallInfo. 13:31:24 """ 13:31:24 excinfo = None 13:31:24 instant = timing.Instant() 13:31:24 try: 13:31:24 > result: TResult | None = func() 13:31:24 ^^^^^^ 13:31:24 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:24 lambda: runtest_hook(item=item, **kwds), 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:24 yield 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:24 return (yield) 13:31:24 ^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:24 item.session._setupstate.setup(item) 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:24 col.setup() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:24 super().setup() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:24 self._request._fillfixtures() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:24 fixturedef = self._get_active_fixturedef(argname) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:24 fixturedef.execute(request=subrequest) 13:31:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:24 13:31:24 self = 13:31:24 request = > 13:31:24 13:31:24 def execute(self, request: SubRequest) -> FixtureValue: 13:31:24 """Return the value of this fixture, executing it if not cached.""" 13:31:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:24 # This needs to be done before checking if we have a cached value, since 13:31:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:24 # parametrization, they finalize themselves and fixtures depending on it 13:31:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:24 # See #4871 13:31:24 requested_fixtures_that_should_finalize_us = [] 13:31:24 for argname in self.argnames: 13:31:24 fixturedef = request._get_active_fixturedef(argname) 13:31:24 # Saves requested fixtures in a list so we later can add our finalizer 13:31:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:24 # down first. This is generally handled by SetupState, but still currently 13:31:24 # needed when this fixture is not parametrized but depends on a parametrized 13:31:24 # fixture. 13:31:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:24 13:31:24 # Check for (and return) cached value/exception. 13:31:24 if self.cached_result is not None: 13:31:24 request_cache_key = self.cache_key(request) 13:31:24 cache_key = self.cached_result[1] 13:31:24 try: 13:31:24 # Attempt to make a normal == check: this might fail for objects 13:31:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:24 cache_hit = bool(request_cache_key == cache_key) 13:31:24 except (ValueError, RuntimeError): 13:31:24 # If the comparison raises, use 'is' as fallback. 13:31:24 cache_hit = request_cache_key is cache_key 13:31:24 13:31:24 if cache_hit: 13:31:24 if self.cached_result[2] is not None: 13:31:24 exc, exc_tb = self.cached_result[2] 13:31:24 raise exc.with_traceback(exc_tb) 13:31:24 else: 13:31:24 return self.cached_result[0] 13:31:24 # We have a previous but differently parametrized fixture instance 13:31:24 # so we need to tear it down before creating a new one. 13:31:24 self.finish(request) 13:31:24 assert self.cached_result is None 13:31:24 13:31:24 # Add finalizer to requested fixtures we saved previously. 13:31:24 # We make sure to do this after checking for cached value to avoid 13:31:24 # adding our finalizer multiple times. (#12135) 13:31:24 finalizer = functools.partial(self.finish, request=request) 13:31:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:24 parent_fixture.addfinalizer(finalizer) 13:31:24 13:31:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:24 # which is executed last. 13:31:24 > assert not self._finalizers 13:31:24 ^^^^^^^^^^^^^^^^^^^^ 13:31:24 E AssertionError 13:31:24 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:24 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 13:31:24 13:31:24 cls = 13:31:24 func = . at 0x7f08dc7af600> 13:31:24 when = 'setup' 13:31:24 reraise = (, ) 13:31:24 13:31:24 @classmethod 13:31:24 def from_call( 13:31:24 cls, 13:31:24 func: Callable[[], TResult], 13:31:24 when: Literal["collect", "setup", "call", "teardown"], 13:31:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:24 ) -> CallInfo[TResult]: 13:31:24 """Call func, wrapping the result in a CallInfo. 13:31:24 13:31:24 :param func: 13:31:24 The function to call. Called without arguments. 13:31:24 :type func: Callable[[], _pytest.runner.TResult] 13:31:24 :param when: 13:31:24 The phase in which the function is called. 13:31:24 :param reraise: 13:31:24 Exception or exceptions that shall propagate if raised by the 13:31:24 function, instead of being wrapped in the CallInfo. 13:31:24 """ 13:31:24 excinfo = None 13:31:24 instant = timing.Instant() 13:31:24 try: 13:31:24 > result: TResult | None = func() 13:31:24 ^^^^^^ 13:31:24 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:24 lambda: runtest_hook(item=item, **kwds), 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:24 yield 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:24 return (yield) 13:31:24 ^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:24 item.session._setupstate.setup(item) 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:24 col.setup() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:24 super().setup() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:24 self._request._fillfixtures() 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:24 fixturedef = self._get_active_fixturedef(argname) 13:31:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:24 fixturedef.execute(request=subrequest) 13:31:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:24 13:31:24 self = 13:31:24 Erequest = > 13:31:24 13:31:24 def execute(self, request: SubRequest) -> FixtureValue: 13:31:24 """Return the value of this fixture, executing it if not cached.""" 13:31:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:24 # This needs to be done before checking if we have a cached value, since 13:31:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:24 # parametrization, they finalize themselves and fixtures depending on it 13:31:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:24 # See #4871 13:31:24 requested_fixtures_that_should_finalize_us = [] 13:31:24 for argname in self.argnames: 13:31:24 fixturedef = request._get_active_fixturedef(argname) 13:31:24 # Saves requested fixtures in a list so we later can add our finalizer 13:31:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:24 # down first. This is generally handled by SetupState, but still currently 13:31:24 # needed when this fixture is not parametrized but depends on a parametrized 13:31:24 # fixture. 13:31:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:24 13:31:24 # Check for (and return) cached value/exception. 13:31:24 if self.cached_result is not None: 13:31:24 request_cache_key = self.cache_key(request) 13:31:24 cache_key = self.cached_result[1] 13:31:24 try: 13:31:24 # Attempt to make a normal == check: this might fail for objects 13:31:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:24 cache_hit = bool(request_cache_key == cache_key) 13:31:24 except (ValueError, RuntimeError): 13:31:24 # If the comparison raises, use 'is' as fallback. 13:31:24 cache_hit = request_cache_key is cache_key 13:31:24 13:31:24 if cache_hit: 13:31:24 if self.cached_result[2] is not None: 13:31:24 exc, exc_tb = self.cached_result[2] 13:31:24 raise exc.with_traceback(exc_tb) 13:31:24 else: 13:31:24 return self.cached_result[0] 13:31:24 # We have a previous but differently parametrized fixture instance 13:31:24 # so we need to tear it down before creating a new one. 13:31:24 self.finish(request) 13:31:24 assert self.cached_result is None 13:31:24 13:31:24 # Add finalizer to requested fixtures we saved previously. 13:31:24 # We make sure to do this after checking for cached value to avoid 13:31:24 # adding our finalizer multiple times. (#12135) 13:31:24 finalizer = functools.partial(self.finish, request=request) 13:31:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:24 parent_fixture.addfinalizer(finalizer) 13:31:24 13:31:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:24 # which is executed last. 13:31:24 > assert not self._finalizers 13:31:24 ^^^^^^^^^^^^^^^^^^^^ 13:31:24 E AssertionError 13:31:24 13:31:24 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:24 =========================== short test summary info ============================ 13:31:24 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 13:31:24 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catalog_input_insertion 13:31:24 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 13:31:24 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 13:31:24 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 13:31:24 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 13:31:24 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 13:31:24 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 13:31:24 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 13:31:24 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 13:31:24 10 errors in 101.90s (0:01:41) 13:31:24 tests200: exit 1 (102.18 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 pid=4399 13:31:24 Etests200: FAIL ✖ in 1 minute 50.47 seconds 13:31:24 tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:31:25 EEEEEEEEEEEEEEEEEEEEEEEE [100%] 13:31:28 ==================================== ERRORS ==================================== 13:31:28 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 13:31:28 13:31:28 cls = 13:31:28 13:31:28 @classmethod 13:31:28 def setUpClass(cls): 13:31:28 > cls.processes = test_utils.start_tpce() 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 13:31:28 transportpce_tests/2.2.1/test01_portmapping.py:33: 13:31:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:28 13:31:28 def start_tpce(): 13:31:28 if 'NO_ODL_STARTUP' in os.environ: 13:31:28 print('No OpenDaylight instance to start!') 13:31:28 return [] 13:31:28 print('starting OpenDaylight...') 13:31:28 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 13:31:28 process = start_lighty() 13:31:28 else: 13:31:28 process = start_karaf() 13:31:28 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 13:31:28 print('OpenDaylight started !') 13:31:28 else: 13:31:28 print('OpenDaylight failed to start !') 13:31:28 shutdown_process(process) 13:31:28 for pid in process_list: 13:31:28 shutdown_process(pid) 13:31:28 > sys.exit(1) 13:31:28 E SystemExit: 1 13:31:28 13:31:28 transportpce_tests/common/test_utils.py:234: SystemExit 13:31:28 ---------------------------- Captured stdout setup ----------------------------- 13:31:28 starting OpenDaylight... 13:31:28 starting KARAF (karaf221) TransportPCE build... 13:31:28 Pattern not found after 100 seconds! OpenDaylight failed to start ! 13:31:28 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 13:31:28 13:31:28 cls = 13:31:28 func = . at 0x7fc904d0f100> 13:31:28 when = 'setup' 13:31:28 reraise = (, ) 13:31:28 13:31:28 @classmethod 13:31:28 def from_call( 13:31:28 cls, 13:31:28 func: Callable[[], TResult], 13:31:28 when: Literal["collect", "setup", "call", "teardown"], 13:31:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:28 ) -> CallInfo[TResult]: 13:31:28 """Call func, wrapping the result in a CallInfo. 13:31:28 13:31:28 :param func: 13:31:28 The function to call. Called without arguments. 13:31:28 :type func: Callable[[], _pytest.runner.TResult] 13:31:28 :param when: 13:31:28 The phase in which the function is called. 13:31:28 :param reraise: 13:31:28 Exception or exceptions that shall propagate if raised by the 13:31:28 function, instead of being wrapped in the CallInfo. 13:31:28 """ 13:31:28 excinfo = None 13:31:28 instant = timing.Instant() 13:31:28 try: 13:31:28 > result: TResult | None = func() 13:31:28 ^^^^^^ 13:31:28 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:28 lambda: runtest_hook(item=item, **kwds), 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:28 yield 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:28 return (yield) 13:31:28 ^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:28 item.session._setupstate.setup(item) 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:28 col.setup() 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:28 super().setup() 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:28 self._request._fillfixtures() 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:28 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:28 fixturedef = self._get_active_fixturedef(argname) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:28 fixturedef.execute(request=subrequest) 13:31:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:28 13:31:28 self = 13:31:28 request = > 13:31:28 13:31:28 def execute(self, request: SubRequest) -> FixtureValue: 13:31:28 """Return the value of this fixture, executing it if not cached.""" 13:31:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:28 # This needs to be done before checking if we have a cached value, since 13:31:28 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:28 # parametrization, they finalize themselves and fixtures depending on it 13:31:28 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:28 # See #4871 13:31:28 requested_fixtures_that_should_finalize_us = [] 13:31:28 for argname in self.argnames: 13:31:28 fixturedef = request._get_active_fixturedef(argname) 13:31:28 # Saves requested fixtures in a list so we later can add our finalizer 13:31:28 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:28 # down first. This is generally handled by SetupState, but still currently 13:31:28 # needed when this fixture is not parametrized but depends on a parametrized 13:31:28 # fixture. 13:31:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:28 13:31:28 # Check for (and return) cached value/exception. 13:31:28 if self.cached_result is not None: 13:31:28 request_cache_key = self.cache_key(request) 13:31:28 cache_key = self.cached_result[1] 13:31:28 try: 13:31:28 # Attempt to make a normal == check: this might fail for objects 13:31:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:28 cache_hit = bool(request_cache_key == cache_key) 13:31:28 except (ValueError, RuntimeError): 13:31:28 # If the comparison raises, use 'is' as fallback. 13:31:28 cache_hit = request_cache_key is cache_key 13:31:28 13:31:28 if cache_hit: 13:31:28 if self.cached_result[2] is not None: 13:31:28 exc, exc_tb = self.cached_result[2] 13:31:28 raise exc.with_traceback(exc_tb) 13:31:28 else: 13:31:28 return self.cached_result[0] 13:31:28 # We have a previous but differently parametrized fixture instance 13:31:28 # so we need to tear it down before creating a new one. 13:31:28 self.finish(request) 13:31:28 assert self.cached_result is None 13:31:28 13:31:28 # Add finalizer to requested fixtures we saved previously. 13:31:28 # We make sure to do this after checking for cached value to avoid 13:31:28 # adding our finalizer multiple times. (#12135) 13:31:28 finalizer = functools.partial(self.finish, request=request) 13:31:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:28 parent_fixture.addfinalizer(finalizer) 13:31:28 13:31:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:28 # which is executed last. 13:31:28 > assert not self._finalizers 13:31:28 ^^^^^^^^^^^^^^^^^^^^ 13:31:28 E AssertionError 13:31:28 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:28 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 13:31:28 13:31:28 cls = 13:31:28 func = . at 0x7fc904d0f2e0> 13:31:28 when = 'setup' 13:31:28 reraise = (, ) 13:31:28 13:31:28 @classmethod 13:31:28 def from_call( 13:31:28 cls, 13:31:28 func: Callable[[], TResult], 13:31:28 when: Literal["collect", "setup", "call", "teardown"], 13:31:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:28 ) -> CallInfo[TResult]: 13:31:28 """Call func, wrapping the result in a CallInfo. 13:31:28 13:31:28 :param func: 13:31:28 The function to call. Called without arguments. 13:31:28 :type func: Callable[[], _pytest.runner.TResult] 13:31:28 :param when: 13:31:28 The phase in which the function is called. 13:31:28 :param reraise: 13:31:28 Exception or exceptions that shall propagate if raised by the 13:31:28 function, instead of being wrapped in the CallInfo. 13:31:28 """ 13:31:28 excinfo = None 13:31:28 instant = timing.Instant() 13:31:28 try: 13:31:28 > result: TResult | None = func() 13:31:28 ^^^^^^ 13:31:28 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:28 lambda: runtest_hook(item=item, **kwds), 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:28 yield 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:28 return (yield) 13:31:28 ^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:28 item.session._setupstate.setup(item) 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:28 col.setup() 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:28 super().setup() 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:28 self._request._fillfixtures() 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:28 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:28 fixturedef = self._get_active_fixturedef(argname) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:28 fixturedef.execute(request=subrequest) 13:31:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:28 13:31:28 self = 13:31:28 request = > 13:31:28 13:31:28 def execute(self, request: SubRequest) -> FixtureValue: 13:31:28 """Return the value of this fixture, executing it if not cached.""" 13:31:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:28 # This needs to be done before checking if we have a cached value, since 13:31:28 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:28 # parametrization, they finalize themselves and fixtures depending on it 13:31:28 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:28 # See #4871 13:31:28 requested_fixtures_that_should_finalize_us = [] 13:31:28 for argname in self.argnames: 13:31:28 fixturedef = request._get_active_fixturedef(argname) 13:31:28 # Saves requested fixtures in a list so we later can add our finalizer 13:31:28 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:28 # down first. This is generally handled by SetupState, but still currently 13:31:28 # needed when this fixture is not parametrized but depends on a parametrized 13:31:28 # fixture. 13:31:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:28 13:31:28 # Check for (and return) cached value/exception. 13:31:28 if self.cached_result is not None: 13:31:28 request_cache_key = self.cache_key(request) 13:31:28 cache_key = self.cached_result[1] 13:31:28 try: 13:31:28 # Attempt to make a normal == check: this might fail for objects 13:31:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:28 cache_hit = bool(request_cache_key == cache_key) 13:31:28 except (ValueError, RuntimeError): 13:31:28 # If the comparison raises, use 'is' as fallback. 13:31:28 cache_hit = request_cache_key is cache_key 13:31:28 13:31:28 if cache_hit: 13:31:28 if self.cached_result[2] is not None: 13:31:28 exc, exc_tb = self.cached_result[2] 13:31:28 raise exc.with_traceback(exc_tb) 13:31:28 else: 13:31:28 return self.cached_result[0] 13:31:28 # We have a previous but differently parametrized fixture instance 13:31:28 # so we need to tear it down before creating a new one. 13:31:28 self.finish(request) 13:31:28 assert self.cached_result is None 13:31:28 13:31:28 # Add finalizer to requested fixtures we saved previously. 13:31:28 # We make sure to do this after checking for cached value to avoid 13:31:28 # adding our finalizer multiple times. (#12135) 13:31:28 finalizer = functools.partial(self.finish, request=request) 13:31:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:28 parent_fixture.addfinalizer(finalizer) 13:31:28 13:31:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:28 # which is executed last. 13:31:28 > assert not self._finalizers 13:31:28 ^^^^^^^^^^^^^^^^^^^^ 13:31:28 E AssertionError 13:31:28 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:28 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 13:31:28 13:31:28 cls = 13:31:28 func = . at 0x7fc907423240> 13:31:28 when = 'setup' 13:31:28 reraise = (, ) 13:31:28 13:31:28 @classmethod 13:31:28 def from_call( 13:31:28 cls, 13:31:28 func: Callable[[], TResult], 13:31:28 when: Literal["collect", "setup", "call", "teardown"], 13:31:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:28 ) -> CallInfo[TResult]: 13:31:28 """Call func, wrapping the result in a CallInfo. 13:31:28 13:31:28 :param func: 13:31:28 The function to call. Called without arguments. 13:31:28 :type func: Callable[[], _pytest.runner.TResult] 13:31:28 :param when: 13:31:28 The phase in which the function is called. 13:31:28 :param reraise: 13:31:28 Exception or exceptions that shall propagate if raised by the 13:31:28 function, instead of being wrapped in the CallInfo. 13:31:28 """ 13:31:28 excinfo = None 13:31:28 instant = timing.Instant() 13:31:28 try: 13:31:28 > result: TResult | None = func() 13:31:28 ^^^^^^ 13:31:28 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:28 lambda: runtest_hook(item=item, **kwds), 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:28 yield 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:28 return (yield) 13:31:28 ^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:28 item.session._setupstate.setup(item) 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:28 col.setup() 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:28 super().setup() 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:28 self._request._fillfixtures() 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:28 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:28 fixturedef = self._get_active_fixturedef(argname) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:28 fixturedef.execute(request=subrequest) 13:31:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:28 13:31:28 self = 13:31:28 request = > 13:31:28 13:31:28 def execute(self, request: SubRequest) -> FixtureValue: 13:31:28 """Return the value of this fixture, executing it if not cached.""" 13:31:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:28 # This needs to be done before checking if we have a cached value, since 13:31:28 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:28 # parametrization, they finalize themselves and fixtures depending on it 13:31:28 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:28 # See #4871 13:31:28 requested_fixtures_that_should_finalize_us = [] 13:31:28 for argname in self.argnames: 13:31:28 fixturedef = request._get_active_fixturedef(argname) 13:31:28 # Saves requested fixtures in a list so we later can add our finalizer 13:31:28 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:28 # down first. This is generally handled by SetupState, but still currently 13:31:28 # needed when this fixture is not parametrized but depends on a parametrized 13:31:28 # fixture. 13:31:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:28 13:31:28 # Check for (and return) cached value/exception. 13:31:28 if self.cached_result is not None: 13:31:28 request_cache_key = self.cache_key(request) 13:31:28 cache_key = self.cached_result[1] 13:31:28 try: 13:31:28 # Attempt to make a normal == check: this might fail for objects 13:31:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:28 cache_hit = bool(request_cache_key == cache_key) 13:31:28 except (ValueError, RuntimeError): 13:31:28 # If the comparison raises, use 'is' as fallback. 13:31:28 cache_hit = request_cache_key is cache_key 13:31:28 13:31:28 if cache_hit: 13:31:28 if self.cached_result[2] is not None: 13:31:28 exc, exc_tb = self.cached_result[2] 13:31:28 raise exc.with_traceback(exc_tb) 13:31:28 else: 13:31:28 return self.cached_result[0] 13:31:28 # We have a previous but differently parametrized fixture instance 13:31:28 # so we need to tear it down before creating a new one. 13:31:28 self.finish(request) 13:31:28 assert self.cached_result is None 13:31:28 13:31:28 # Add finalizer to requested fixtures we saved previously. 13:31:28 # We make sure to do this after checking for cached value to avoid 13:31:28 # adding our finalizer multiple times. (#12135) 13:31:28 finalizer = functools.partial(self.finish, request=request) 13:31:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:28 parent_fixture.addfinalizer(finalizer) 13:31:28 13:31:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:28 # which is executed last. 13:31:28 > assert not self._finalizers 13:31:28 ^^^^^^^^^^^^^^^^^^^^ 13:31:28 E AssertionError 13:31:28 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:28 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 13:31:28 13:31:28 cls = 13:31:28 func = . at 0x7fc906633060> 13:31:28 when = 'setup' 13:31:28 reraise = (, ) 13:31:28 13:31:28 @classmethod 13:31:28 def from_call( 13:31:28 cls, 13:31:28 func: Callable[[], TResult], 13:31:28 when: Literal["collect", "setup", "call", "teardown"], 13:31:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:28 ) -> CallInfo[TResult]: 13:31:28 """Call func, wrapping the result in a CallInfo. 13:31:28 13:31:28 :param func: 13:31:28 The function to call. Called without arguments. 13:31:28 :type func: Callable[[], _pytest.runner.TResult] 13:31:28 :param when: 13:31:28 The phase in which the function is called. 13:31:28 :param reraise: 13:31:28 Exception or exceptions that shall propagate if raised by the 13:31:28 function, instead of being wrapped in the CallInfo. 13:31:28 """ 13:31:28 excinfo = None 13:31:28 instant = timing.Instant() 13:31:28 try: 13:31:28 > result: TResult | None = func() 13:31:28 ^^^^^^ 13:31:28 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:28 lambda: runtest_hook(item=item, **kwds), 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:28 yield 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:28 return (yield) 13:31:28 ^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:28 item.session._setupstate.setup(item) 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:28 col.setup() 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:28 super().setup() 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:28 self._request._fillfixtures() 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:28 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:28 fixturedef = self._get_active_fixturedef(argname) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:28 fixturedef.execute(request=subrequest) 13:31:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:28 13:31:28 self = 13:31:28 request = > 13:31:28 13:31:28 def execute(self, request: SubRequest) -> FixtureValue: 13:31:28 """Return the value of this fixture, executing it if not cached.""" 13:31:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:28 # This needs to be done before checking if we have a cached value, since 13:31:28 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:28 # parametrization, they finalize themselves and fixtures depending on it 13:31:28 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:28 # See #4871 13:31:28 requested_fixtures_that_should_finalize_us = [] 13:31:28 for argname in self.argnames: 13:31:28 fixturedef = request._get_active_fixturedef(argname) 13:31:28 # Saves requested fixtures in a list so we later can add our finalizer 13:31:28 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:28 # down first. This is generally handled by SetupState, but still currently 13:31:28 # needed when this fixture is not parametrized but depends on a parametrized 13:31:28 # fixture. 13:31:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:28 13:31:28 # Check for (and return) cached value/exception. 13:31:28 if self.cached_result is not None: 13:31:28 request_cache_key = self.cache_key(request) 13:31:28 cache_key = self.cached_result[1] 13:31:28 try: 13:31:28 # Attempt to make a normal == check: this might fail for objects 13:31:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:28 cache_hit = bool(request_cache_key == cache_key) 13:31:28 except (ValueError, RuntimeError): 13:31:28 # If the comparison raises, use 'is' as fallback. 13:31:28 cache_hit = request_cache_key is cache_key 13:31:28 13:31:28 if cache_hit: 13:31:28 if self.cached_result[2] is not None: 13:31:28 exc, exc_tb = self.cached_result[2] 13:31:28 raise exc.with_traceback(exc_tb) 13:31:28 else: 13:31:28 return self.cached_result[0] 13:31:28 # We have a previous but differently parametrized fixture instance 13:31:28 # so we need to tear it down before creating a new one. 13:31:28 self.finish(request) 13:31:28 assert self.cached_result is None 13:31:28 13:31:28 # Add finalizer to requested fixtures we saved previously. 13:31:28 # We make sure to do this after checking for cached value to avoid 13:31:28 # adding our finalizer multiple times. (#12135) 13:31:28 finalizer = functools.partial(self.finish, request=request) 13:31:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:28 parent_fixture.addfinalizer(finalizer) 13:31:28 13:31:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:28 # which is executed last. 13:31:28 > assert not self._finalizers 13:31:28 ^^^^^^^^^^^^^^^^^^^^ 13:31:28 E AssertionError 13:31:28 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:28 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 13:31:28 13:31:28 cls = 13:31:28 func = . at 0x7fc904d0f100> 13:31:28 when = 'setup' 13:31:28 reraise = (, ) 13:31:28 13:31:28 @classmethod 13:31:28 def from_call( 13:31:28 cls, 13:31:28 func: Callable[[], TResult], 13:31:28 when: Literal["collect", "setup", "call", "teardown"], 13:31:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:28 ) -> CallInfo[TResult]: 13:31:28 """Call func, wrapping the result in a CallInfo. 13:31:28 13:31:28 :param func: 13:31:28 The function to call. Called without arguments. 13:31:28 :type func: Callable[[], _pytest.runner.TResult] 13:31:28 :param when: 13:31:28 The phase in which the function is called. 13:31:28 :param reraise: 13:31:28 Exception or exceptions that shall propagate if raised by the 13:31:28 function, instead of being wrapped in the CallInfo. 13:31:28 """ 13:31:28 excinfo = None 13:31:28 instant = timing.Instant() 13:31:28 try: 13:31:28 > result: TResult | None = func() 13:31:28 ^^^^^^ 13:31:28 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:28 lambda: runtest_hook(item=item, **kwds), 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:28 yield 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:28 return (yield) 13:31:28 ^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:28 item.session._setupstate.setup(item) 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:28 col.setup() 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:28 super().setup() 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:28 self._request._fillfixtures() 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:28 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:28 fixturedef = self._get_active_fixturedef(argname) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:28 fixturedef.execute(request=subrequest) 13:31:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:28 13:31:28 self = 13:31:28 request = > 13:31:28 13:31:28 def execute(self, request: SubRequest) -> FixtureValue: 13:31:28 """Return the value of this fixture, executing it if not cached.""" 13:31:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:28 # This needs to be done before checking if we have a cached value, since 13:31:28 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:28 # parametrization, they finalize themselves and fixtures depending on it 13:31:28 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:28 # See #4871 13:31:28 requested_fixtures_that_should_finalize_us = [] 13:31:28 for argname in self.argnames: 13:31:28 fixturedef = request._get_active_fixturedef(argname) 13:31:28 # Saves requested fixtures in a list so we later can add our finalizer 13:31:28 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:28 # down first. This is generally handled by SetupState, but still currently 13:31:28 # needed when this fixture is not parametrized but depends on a parametrized 13:31:28 # fixture. 13:31:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:28 13:31:28 # Check for (and return) cached value/exception. 13:31:28 if self.cached_result is not None: 13:31:28 request_cache_key = self.cache_key(request) 13:31:28 cache_key = self.cached_result[1] 13:31:28 try: 13:31:28 # Attempt to make a normal == check: this might fail for objects 13:31:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:28 cache_hit = bool(request_cache_key == cache_key) 13:31:28 except (ValueError, RuntimeError): 13:31:28 # If the comparison raises, use 'is' as fallback. 13:31:28 cache_hit = request_cache_key is cache_key 13:31:28 13:31:28 if cache_hit: 13:31:28 if self.cached_result[2] is not None: 13:31:28 exc, exc_tb = self.cached_result[2] 13:31:28 raise exc.with_traceback(exc_tb) 13:31:28 else: 13:31:28 return self.cached_result[0] 13:31:28 # We have a previous but differently parametrized fixture instance 13:31:28 # so we need to tear it down before creating a new one. 13:31:28 self.finish(request) 13:31:28 assert self.cached_result is None 13:31:28 13:31:28 # Add finalizer to requested fixtures we saved previously. 13:31:28 # We make sure to do this after checking for cached value to avoid 13:31:28 # adding our finalizer multiple times. (#12135) 13:31:28 finalizer = functools.partial(self.finish, request=request) 13:31:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:28 parent_fixture.addfinalizer(finalizer) 13:31:28 13:31:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:28 # which is executed last. 13:31:28 > assert not self._finalizers 13:31:28 ^^^^^^^^^^^^^^^^^^^^ 13:31:28 E AssertionError 13:31:28 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:28 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 13:31:28 13:31:28 cls = 13:31:28 func = . at 0x7fc906633060> 13:31:28 when = 'setup' 13:31:28 reraise = (, ) 13:31:28 13:31:28 @classmethod 13:31:28 def from_call( 13:31:28 cls, 13:31:28 func: Callable[[], TResult], 13:31:28 when: Literal["collect", "setup", "call", "teardown"], 13:31:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:28 ) -> CallInfo[TResult]: 13:31:28 """Call func, wrapping the result in a CallInfo. 13:31:28 13:31:28 :param func: 13:31:28 The function to call. Called without arguments. 13:31:28 :type func: Callable[[], _pytest.runner.TResult] 13:31:28 :param when: 13:31:28 The phase in which the function is called. 13:31:28 :param reraise: 13:31:28 Exception or exceptions that shall propagate if raised by the 13:31:28 function, instead of being wrapped in the CallInfo. 13:31:28 """ 13:31:28 excinfo = None 13:31:28 instant = timing.Instant() 13:31:28 try: 13:31:28 > result: TResult | None = func() 13:31:28 ^^^^^^ 13:31:28 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:28 lambda: runtest_hook(item=item, **kwds), 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:28 yield 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:28 return (yield) 13:31:28 ^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:28 item.session._setupstate.setup(item) 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:28 col.setup() 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:28 super().setup() 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:28 self._request._fillfixtures() 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:28 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:28 fixturedef = self._get_active_fixturedef(argname) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:28 fixturedef.execute(request=subrequest) 13:31:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:28 13:31:28 self = 13:31:28 request = > 13:31:28 13:31:28 def execute(self, request: SubRequest) -> FixtureValue: 13:31:28 """Return the value of this fixture, executing it if not cached.""" 13:31:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:28 # This needs to be done before checking if we have a cached value, since 13:31:28 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:28 # parametrization, they finalize themselves and fixtures depending on it 13:31:28 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:28 # See #4871 13:31:28 requested_fixtures_that_should_finalize_us = [] 13:31:28 for argname in self.argnames: 13:31:28 fixturedef = request._get_active_fixturedef(argname) 13:31:28 # Saves requested fixtures in a list so we later can add our finalizer 13:31:28 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:28 # down first. This is generally handled by SetupState, but still currently 13:31:28 # needed when this fixture is not parametrized but depends on a parametrized 13:31:28 # fixture. 13:31:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:28 13:31:28 # Check for (and return) cached value/exception. 13:31:28 if self.cached_result is not None: 13:31:28 request_cache_key = self.cache_key(request) 13:31:28 cache_key = self.cached_result[1] 13:31:28 try: 13:31:28 # Attempt to make a normal == check: this might fail for objects 13:31:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:28 cache_hit = bool(request_cache_key == cache_key) 13:31:28 except (ValueError, RuntimeError): 13:31:28 # If the comparison raises, use 'is' as fallback. 13:31:28 cache_hit = request_cache_key is cache_key 13:31:28 13:31:28 if cache_hit: 13:31:28 if self.cached_result[2] is not None: 13:31:28 exc, exc_tb = self.cached_result[2] 13:31:28 raise exc.with_traceback(exc_tb) 13:31:28 else: 13:31:28 return self.cached_result[0] 13:31:28 # We have a previous but differently parametrized fixture instance 13:31:28 # so we need to tear it down before creating a new one. 13:31:28 self.finish(request) 13:31:28 assert self.cached_result is None 13:31:28 13:31:28 # Add finalizer to requested fixtures we saved previously. 13:31:28 # We make sure to do this after checking for cached value to avoid 13:31:28 # adding our finalizer multiple times. (#12135) 13:31:28 finalizer = functools.partial(self.finish, request=request) 13:31:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:28 parent_fixture.addfinalizer(finalizer) 13:31:28 13:31:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:28 # which is executed last. 13:31:28 > assert not self._finalizers 13:31:28 ^^^^^^^^^^^^^^^^^^^^ 13:31:28 E AssertionError 13:31:28 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:28 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 13:31:28 13:31:28 cls = 13:31:28 func = . at 0x7fc904d0d120> 13:31:28 when = 'setup' 13:31:28 reraise = (, ) 13:31:28 13:31:28 @classmethod 13:31:28 def from_call( 13:31:28 cls, 13:31:28 func: Callable[[], TResult], 13:31:28 when: Literal["collect", "setup", "call", "teardown"], 13:31:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:28 ) -> CallInfo[TResult]: 13:31:28 """Call func, wrapping the result in a CallInfo. 13:31:28 13:31:28 :param func: 13:31:28 The function to call. Called without arguments. 13:31:28 :type func: Callable[[], _pytest.runner.TResult] 13:31:28 :param when: 13:31:28 The phase in which the function is called. 13:31:28 :param reraise: 13:31:28 Exception or exceptions that shall propagate if raised by the 13:31:28 function, instead of being wrapped in the CallInfo. 13:31:28 """ 13:31:28 excinfo = None 13:31:28 instant = timing.Instant() 13:31:28 try: 13:31:28 > result: TResult | None = func() 13:31:28 ^^^^^^ 13:31:28 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:28 lambda: runtest_hook(item=item, **kwds), 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:28 yield 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:28 return (yield) 13:31:28 ^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:28 item.session._setupstate.setup(item) 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:28 col.setup() 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:28 super().setup() 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:28 self._request._fillfixtures() 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:28 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:28 fixturedef = self._get_active_fixturedef(argname) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:28 fixturedef.execute(request=subrequest) 13:31:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:28 13:31:28 self = 13:31:28 request = > 13:31:28 13:31:28 def execute(self, request: SubRequest) -> FixtureValue: 13:31:28 """Return the value of this fixture, executing it if not cached.""" 13:31:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:28 # This needs to be done before checking if we have a cached value, since 13:31:28 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:28 # parametrization, they finalize themselves and fixtures depending on it 13:31:28 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:28 # See #4871 13:31:28 requested_fixtures_that_should_finalize_us = [] 13:31:28 for argname in self.argnames: 13:31:28 fixturedef = request._get_active_fixturedef(argname) 13:31:28 # Saves requested fixtures in a list so we later can add our finalizer 13:31:28 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:28 # down first. This is generally handled by SetupState, but still currently 13:31:28 # needed when this fixture is not parametrized but depends on a parametrized 13:31:28 # fixture. 13:31:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:28 13:31:28 # Check for (and return) cached value/exception. 13:31:28 if self.cached_result is not None: 13:31:28 request_cache_key = self.cache_key(request) 13:31:28 cache_key = self.cached_result[1] 13:31:28 try: 13:31:28 # Attempt to make a normal == check: this might fail for objects 13:31:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:28 cache_hit = bool(request_cache_key == cache_key) 13:31:28 except (ValueError, RuntimeError): 13:31:28 # If the comparison raises, use 'is' as fallback. 13:31:28 cache_hit = request_cache_key is cache_key 13:31:28 13:31:28 if cache_hit: 13:31:28 if self.cached_result[2] is not None: 13:31:28 exc, exc_tb = self.cached_result[2] 13:31:28 raise exc.with_traceback(exc_tb) 13:31:28 else: 13:31:28 return self.cached_result[0] 13:31:28 # We have a previous but differently parametrized fixture instance 13:31:28 # so we need to tear it down before creating a new one. 13:31:28 self.finish(request) 13:31:28 assert self.cached_result is None 13:31:28 13:31:28 # Add finalizer to requested fixtures we saved previously. 13:31:28 # We make sure to do this after checking for cached value to avoid 13:31:28 # adding our finalizer multiple times. (#12135) 13:31:28 finalizer = functools.partial(self.finish, request=request) 13:31:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:28 parent_fixture.addfinalizer(finalizer) 13:31:28 13:31:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:28 # which is executed last. 13:31:28 > assert not self._finalizers 13:31:28 ^^^^^^^^^^^^^^^^^^^^ 13:31:28 E AssertionError 13:31:28 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:28 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 13:31:28 13:31:28 cls = 13:31:28 func = . at 0x7fc904d4ed40> 13:31:28 when = 'setup' 13:31:28 reraise = (, ) 13:31:28 13:31:28 @classmethod 13:31:28 def from_call( 13:31:28 cls, 13:31:28 func: Callable[[], TResult], 13:31:28 when: Literal["collect", "setup", "call", "teardown"], 13:31:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:28 ) -> CallInfo[TResult]: 13:31:28 """Call func, wrapping the result in a CallInfo. 13:31:28 13:31:28 :param func: 13:31:28 The function to call. Called without arguments. 13:31:28 :type func: Callable[[], _pytest.runner.TResult] 13:31:28 :param when: 13:31:28 The phase in which the function is called. 13:31:28 :param reraise: 13:31:28 Exception or exceptions that shall propagate if raised by the 13:31:28 function, instead of being wrapped in the CallInfo. 13:31:28 """ 13:31:28 excinfo = None 13:31:28 instant = timing.Instant() 13:31:28 try: 13:31:28 > result: TResult | None = func() 13:31:28 ^^^^^^ 13:31:28 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:28 lambda: runtest_hook(item=item, **kwds), 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:28 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc906633060> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc904d0d120> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc904d4ff60> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc906633060> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc904d4f9c0> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc904d0d120> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc906633060> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc904d4e520> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc904d4f9c0> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc904d4fd80> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc904d0d120> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc906633060> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc904d0e0c0> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc904d0df80> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc904d4f9c0> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc904d0df80> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc906633060> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc904d4f9c0> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc906633060> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc904db44a0> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc904d4f9c0> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc904db5800> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc904db4540> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc904d4f9c0> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc904db56c0> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 13:31:29 13:31:29 cls = 13:31:29 func = . at 0x7fc904d4f9c0> 13:31:29 when = 'setup' 13:31:29 reraise = (, ) 13:31:29 13:31:29 @classmethod 13:31:29 def from_call( 13:31:29 cls, 13:31:29 func: Callable[[], TResult], 13:31:29 when: Literal["collect", "setup", "call", "teardown"], 13:31:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:31:29 ) -> CallInfo[TResult]: 13:31:29 """Call func, wrapping the result in a CallInfo. 13:31:29 13:31:29 :param func: 13:31:29 The function to call. Called without arguments. 13:31:29 :type func: Callable[[], _pytest.runner.TResult] 13:31:29 :param when: 13:31:29 The phase in which the function is called. 13:31:29 :param reraise: 13:31:29 Exception or exceptions that shall propagate if raised by the 13:31:29 function, instead of being wrapped in the CallInfo. 13:31:29 """ 13:31:29 excinfo = None 13:31:29 instant = timing.Instant() 13:31:29 try: 13:31:29 > result: TResult | None = func() 13:31:29 ^^^^^^ 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:31:29 lambda: runtest_hook(item=item, **kwds), 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:31:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:31:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:31:29 yield 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:31:29 return (yield) 13:31:29 ^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:31:29 item.session._setupstate.setup(item) 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:31:29 col.setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:31:29 super().setup() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:31:29 self._request._fillfixtures() 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:31:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:31:29 fixturedef = self._get_active_fixturedef(argname) 13:31:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:31:29 fixturedef.execute(request=subrequest) 13:31:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:31:29 13:31:29 self = 13:31:29 request = > 13:31:29 13:31:29 def execute(self, request: SubRequest) -> FixtureValue: 13:31:29 """Return the value of this fixture, executing it if not cached.""" 13:31:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:31:29 # This needs to be done before checking if we have a cached value, since 13:31:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:31:29 # parametrization, they finalize themselves and fixtures depending on it 13:31:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:31:29 # See #4871 13:31:29 requested_fixtures_that_should_finalize_us = [] 13:31:29 for argname in self.argnames: 13:31:29 fixturedef = request._get_active_fixturedef(argname) 13:31:29 # Saves requested fixtures in a list so we later can add our finalizer 13:31:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:31:29 # down first. This is generally handled by SetupState, but still currently 13:31:29 # needed when this fixture is not parametrized but depends on a parametrized 13:31:29 # fixture. 13:31:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:31:29 13:31:29 # Check for (and return) cached value/exception. 13:31:29 if self.cached_result is not None: 13:31:29 request_cache_key = self.cache_key(request) 13:31:29 cache_key = self.cached_result[1] 13:31:29 try: 13:31:29 # Attempt to make a normal == check: this might fail for objects 13:31:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:31:29 cache_hit = bool(request_cache_key == cache_key) 13:31:29 except (ValueError, RuntimeError): 13:31:29 # If the comparison raises, use 'is' as fallback. 13:31:29 cache_hit = request_cache_key is cache_key 13:31:29 13:31:29 if cache_hit: 13:31:29 if self.cached_result[2] is not None: 13:31:29 exc, exc_tb = self.cached_result[2] 13:31:29 raise exc.with_traceback(exc_tb) 13:31:29 else: 13:31:29 return self.cached_result[0] 13:31:29 # We have a previous but differently parametrized fixture instance 13:31:29 # so we need to tear it down before creating a new one. 13:31:29 self.finish(request) 13:31:29 assert self.cached_result is None 13:31:29 13:31:29 # Add finalizer to requested fixtures we saved previously. 13:31:29 # We make sure to do this after checking for cached value to avoid 13:31:29 # adding our finalizer multiple times. (#12135) 13:31:29 finalizer = functools.partial(self.finish, request=request) 13:31:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:31:29 parent_fixture.addfinalizer(finalizer) 13:31:29 13:31:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:31:29 # which is executed last. 13:31:29 > assert not self._finalizers 13:31:29 ^^^^^^^^^^^^^^^^^^^^ 13:31:29 E AssertionError 13:31:29 13:31:29 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:31:29 =========================== short test summary info ============================ 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 13:31:29 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 13:31:29 35 errors in 106.29s (0:01:46) 13:31:29 tests221: exit 1 (106.57 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 pid=4388 13:31:29 tests221: FAIL ✖ in 1 minute 54.82 seconds 13:31:29 tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:31:32 tests71: freeze> python -m pip freeze --all 13:31:32 tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.1,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 13:31:32 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 13:31:32 using environment variables from ./karaf71.env 13:31:32 pytest -q transportpce_tests/7.1/test01_portmapping.py 13:31:35 tests_hybrid: freeze> python -m pip freeze --all 13:31:35 tests_hybrid: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.1,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 13:31:35 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid 13:31:35 using environment variables from ./karaf221.env 13:31:35 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 13:33:13 EEEEEEEEEEEE [100%] 13:33:15 ==================================== ERRORS ==================================== 13:33:15 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 13:33:15 13:33:15 cls = 13:33:15 13:33:15 @classmethod 13:33:15 def setUpClass(cls): 13:33:15 > cls.processes = test_utils.start_tpce() 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 13:33:15 transportpce_tests/7.1/test01_portmapping.py:32: 13:33:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:15 13:33:15 def start_tpce(): 13:33:15 if 'NO_ODL_STARTUP' in os.environ: 13:33:15 print('No OpenDaylight instance to start!') 13:33:15 return [] 13:33:15 print('starting OpenDaylight...') 13:33:15 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 13:33:15 process = start_lighty() 13:33:15 else: 13:33:15 process = start_karaf() 13:33:15 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 13:33:15 print('OpenDaylight started !') 13:33:15 else: 13:33:15 print('OpenDaylight failed to start !') 13:33:15 shutdown_process(process) 13:33:15 for pid in process_list: 13:33:15 shutdown_process(pid) 13:33:15 > sys.exit(1) 13:33:15 E SystemExit: 1 13:33:15 13:33:15 transportpce_tests/common/test_utils.py:234: SystemExit 13:33:15 ---------------------------- Captured stdout setup ----------------------------- 13:33:15 starting OpenDaylight... 13:33:15 starting KARAF (karaf71) TransportPCE build... 13:33:15 Pattern not found after 100 seconds! OpenDaylight failed to start ! 13:33:15 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 13:33:15 13:33:15 cls = 13:33:15 func = . at 0x7f22b881b4c0> 13:33:15 when = 'setup' 13:33:15 reraise = (, ) 13:33:15 13:33:15 @classmethod 13:33:15 def from_call( 13:33:15 cls, 13:33:15 func: Callable[[], TResult], 13:33:15 when: Literal["collect", "setup", "call", "teardown"], 13:33:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:15 ) -> CallInfo[TResult]: 13:33:15 """Call func, wrapping the result in a CallInfo. 13:33:15 13:33:15 :param func: 13:33:15 The function to call. Called without arguments. 13:33:15 :type func: Callable[[], _pytest.runner.TResult] 13:33:15 :param when: 13:33:15 The phase in which the function is called. 13:33:15 :param reraise: 13:33:15 Exception or exceptions that shall propagate if raised by the 13:33:15 function, instead of being wrapped in the CallInfo. 13:33:15 """ 13:33:15 excinfo = None 13:33:15 instant = timing.Instant() 13:33:15 try: 13:33:15 > result: TResult | None = func() 13:33:15 ^^^^^^ 13:33:15 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:15 lambda: runtest_hook(item=item, **kwds), 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:15 yield 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:15 return (yield) 13:33:15 ^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:15 item.session._setupstate.setup(item) 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:15 col.setup() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:15 super().setup() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:15 self._request._fillfixtures() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:15 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:15 fixturedef = self._get_active_fixturedef(argname) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:15 fixturedef.execute(request=subrequest) 13:33:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:15 13:33:15 self = 13:33:15 request = > 13:33:15 13:33:15 def execute(self, request: SubRequest) -> FixtureValue: 13:33:15 """Return the value of this fixture, executing it if not cached.""" 13:33:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:15 # This needs to be done before checking if we have a cached value, since 13:33:15 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:15 # parametrization, they finalize themselves and fixtures depending on it 13:33:15 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:15 # See #4871 13:33:15 requested_fixtures_that_should_finalize_us = [] 13:33:15 for argname in self.argnames: 13:33:15 fixturedef = request._get_active_fixturedef(argname) 13:33:15 # Saves requested fixtures in a list so we later can add our finalizer 13:33:15 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:15 # down first. This is generally handled by SetupState, but still currently 13:33:15 # needed when this fixture is not parametrized but depends on a parametrized 13:33:15 # fixture. 13:33:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:15 13:33:15 # Check for (and return) cached value/exception. 13:33:15 if self.cached_result is not None: 13:33:15 request_cache_key = self.cache_key(request) 13:33:15 cache_key = self.cached_result[1] 13:33:15 try: 13:33:15 # Attempt to make a normal == check: this might fail for objects 13:33:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:15 cache_hit = bool(request_cache_key == cache_key) 13:33:15 except (ValueError, RuntimeError): 13:33:15 # If the comparison raises, use 'is' as fallback. 13:33:15 cache_hit = request_cache_key is cache_key 13:33:15 13:33:15 if cache_hit: 13:33:15 if self.cached_result[2] is not None: 13:33:15 exc, exc_tb = self.cached_result[2] 13:33:15 raise exc.with_traceback(exc_tb) 13:33:15 else: 13:33:15 return self.cached_result[0] 13:33:15 # We have a previous but differently parametrized fixture instance 13:33:15 # so we need to tear it down before creating a new one. 13:33:15 self.finish(request) 13:33:15 assert self.cached_result is None 13:33:15 13:33:15 # Add finalizer to requested fixtures we saved previously. 13:33:15 # We make sure to do this after checking for cached value to avoid 13:33:15 # adding our finalizer multiple times. (#12135) 13:33:15 finalizer = functools.partial(self.finish, request=request) 13:33:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:15 parent_fixture.addfinalizer(finalizer) 13:33:15 13:33:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:15 # which is executed last. 13:33:15 > assert not self._finalizers 13:33:15 ^^^^^^^^^^^^^^^^^^^^ 13:33:15 E AssertionError 13:33:15 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:15 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 13:33:15 13:33:15 cls = 13:33:15 func = . at 0x7f22b610ba60> 13:33:15 when = 'setup' 13:33:15 reraise = (, ) 13:33:15 13:33:15 @classmethod 13:33:15 def from_call( 13:33:15 cls, 13:33:15 func: Callable[[], TResult], 13:33:15 when: Literal["collect", "setup", "call", "teardown"], 13:33:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:15 ) -> CallInfo[TResult]: 13:33:15 """Call func, wrapping the result in a CallInfo. 13:33:15 13:33:15 :param func: 13:33:15 The function to call. Called without arguments. 13:33:15 :type func: Callable[[], _pytest.runner.TResult] 13:33:15 :param when: 13:33:15 The phase in which the function is called. 13:33:15 :param reraise: 13:33:15 Exception or exceptions that shall propagate if raised by the 13:33:15 function, instead of being wrapped in the CallInfo. 13:33:15 """ 13:33:15 excinfo = None 13:33:15 instant = timing.Instant() 13:33:15 try: 13:33:15 > result: TResult | None = func() 13:33:15 ^^^^^^ 13:33:15 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:15 lambda: runtest_hook(item=item, **kwds), 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:15 yield 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:15 return (yield) 13:33:15 ^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:15 item.session._setupstate.setup(item) 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:15 col.setup() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:15 super().setup() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:15 self._request._fillfixtures() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:15 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:15 fixturedef = self._get_active_fixturedef(argname) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:15 fixturedef.execute(request=subrequest) 13:33:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:15 13:33:15 self = 13:33:15 request = > 13:33:15 13:33:15 def execute(self, request: SubRequest) -> FixtureValue: 13:33:15 """Return the value of this fixture, executing it if not cached.""" 13:33:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:15 # This needs to be done before checking if we have a cached value, since 13:33:15 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:15 # parametrization, they finalize themselves and fixtures depending on it 13:33:15 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:15 # See #4871 13:33:15 requested_fixtures_that_should_finalize_us = [] 13:33:15 for argname in self.argnames: 13:33:15 fixturedef = request._get_active_fixturedef(argname) 13:33:15 # Saves requested fixtures in a list so we later can add our finalizer 13:33:15 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:15 # down first. This is generally handled by SetupState, but still currently 13:33:15 # needed when this fixture is not parametrized but depends on a parametrized 13:33:15 # fixture. 13:33:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:15 13:33:15 # Check for (and return) cached value/exception. 13:33:15 if self.cached_result is not None: 13:33:15 request_cache_key = self.cache_key(request) 13:33:15 cache_key = self.cached_result[1] 13:33:15 try: 13:33:15 # Attempt to make a normal == check: this might fail for objects 13:33:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:15 cache_hit = bool(request_cache_key == cache_key) 13:33:15 except (ValueError, RuntimeError): 13:33:15 # If the comparison raises, use 'is' as fallback. 13:33:15 cache_hit = request_cache_key is cache_key 13:33:15 13:33:15 if cache_hit: 13:33:15 if self.cached_result[2] is not None: 13:33:15 exc, exc_tb = self.cached_result[2] 13:33:15 raise exc.with_traceback(exc_tb) 13:33:15 else: 13:33:15 return self.cached_result[0] 13:33:15 # We have a previous but differently parametrized fixture instance 13:33:15 # so we need to tear it down before creating a new one. 13:33:15 self.finish(request) 13:33:15 assert self.cached_result is None 13:33:15 13:33:15 # Add finalizer to requested fixtures we saved previously. 13:33:15 # We make sure to do this after checking for cached value to avoid 13:33:15 # adding our finalizer multiple times. (#12135) 13:33:15 finalizer = functools.partial(self.finish, request=request) 13:33:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:15 parent_fixture.addfinalizer(finalizer) 13:33:15 13:33:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:15 # which is executed last. 13:33:15 > assert not self._finalizers 13:33:15 ^^^^^^^^^^^^^^^^^^^^ 13:33:15 E AssertionError 13:33:15 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:15 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 13:33:15 13:33:15 cls = 13:33:15 func = . at 0x7f22b7a1afc0> 13:33:15 when = 'setup' 13:33:15 reraise = (, ) 13:33:15 13:33:15 @classmethod 13:33:15 def from_call( 13:33:15 cls, 13:33:15 func: Callable[[], TResult], 13:33:15 when: Literal["collect", "setup", "call", "teardown"], 13:33:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:15 ) -> CallInfo[TResult]: 13:33:15 """Call func, wrapping the result in a CallInfo. 13:33:15 13:33:15 :param func: 13:33:15 The function to call. Called without arguments. 13:33:15 :type func: Callable[[], _pytest.runner.TResult] 13:33:15 :param when: 13:33:15 The phase in which the function is called. 13:33:15 :param reraise: 13:33:15 Exception or exceptions that shall propagate if raised by the 13:33:15 function, instead of being wrapped in the CallInfo. 13:33:15 """ 13:33:15 excinfo = None 13:33:15 instant = timing.Instant() 13:33:15 try: 13:33:15 > result: TResult | None = func() 13:33:15 ^^^^^^ 13:33:15 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:15 lambda: runtest_hook(item=item, **kwds), 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:15 yield 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:15 return (yield) 13:33:15 ^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:15 item.session._setupstate.setup(item) 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:15 col.setup() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:15 super().setup() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:15 self._request._fillfixtures() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:15 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:15 fixturedef = self._get_active_fixturedef(argname) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:15 fixturedef.execute(request=subrequest) 13:33:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:15 13:33:15 self = 13:33:15 request = > 13:33:15 13:33:15 def execute(self, request: SubRequest) -> FixtureValue: 13:33:15 """Return the value of this fixture, executing it if not cached.""" 13:33:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:15 # This needs to be done before checking if we have a cached value, since 13:33:15 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:15 # parametrization, they finalize themselves and fixtures depending on it 13:33:15 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:15 # See #4871 13:33:15 requested_fixtures_that_should_finalize_us = [] 13:33:15 for argname in self.argnames: 13:33:15 fixturedef = request._get_active_fixturedef(argname) 13:33:15 # Saves requested fixtures in a list so we later can add our finalizer 13:33:15 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:15 # down first. This is generally handled by SetupState, but still currently 13:33:15 # needed when this fixture is not parametrized but depends on a parametrized 13:33:15 # fixture. 13:33:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:15 13:33:15 # Check for (and return) cached value/exception. 13:33:15 if self.cached_result is not None: 13:33:15 request_cache_key = self.cache_key(request) 13:33:15 cache_key = self.cached_result[1] 13:33:15 try: 13:33:15 # Attempt to make a normal == check: this might fail for objects 13:33:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:15 cache_hit = bool(request_cache_key == cache_key) 13:33:15 except (ValueError, RuntimeError): 13:33:15 # If the comparison raises, use 'is' as fallback. 13:33:15 cache_hit = request_cache_key is cache_key 13:33:15 13:33:15 if cache_hit: 13:33:15 if self.cached_result[2] is not None: 13:33:15 exc, exc_tb = self.cached_result[2] 13:33:15 raise exc.with_traceback(exc_tb) 13:33:15 else: 13:33:15 return self.cached_result[0] 13:33:15 # We have a previous but differently parametrized fixture instance 13:33:15 # so we need to tear it down before creating a new one. 13:33:15 self.finish(request) 13:33:15 assert self.cached_result is None 13:33:15 13:33:15 # Add finalizer to requested fixtures we saved previously. 13:33:15 # We make sure to do this after checking for cached value to avoid 13:33:15 # adding our finalizer multiple times. (#12135) 13:33:15 finalizer = functools.partial(self.finish, request=request) 13:33:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:15 parent_fixture.addfinalizer(finalizer) 13:33:15 13:33:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:15 # which is executed last. 13:33:15 > assert not self._finalizers 13:33:15 ^^^^^^^^^^^^^^^^^^^^ 13:33:15 E AssertionError 13:33:15 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:15 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 13:33:15 13:33:15 cls = 13:33:15 func = . at 0x7f22b881b2e0> 13:33:15 when = 'setup' 13:33:15 reraise = (, ) 13:33:15 13:33:15 @classmethod 13:33:15 def from_call( 13:33:15 cls, 13:33:15 func: Callable[[], TResult], 13:33:15 when: Literal["collect", "setup", "call", "teardown"], 13:33:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:15 ) -> CallInfo[TResult]: 13:33:15 """Call func, wrapping the result in a CallInfo. 13:33:15 13:33:15 :param func: 13:33:15 The function to call. Called without arguments. 13:33:15 :type func: Callable[[], _pytest.runner.TResult] 13:33:15 :param when: 13:33:15 The phase in which the function is called. 13:33:15 :param reraise: 13:33:15 Exception or exceptions that shall propagate if raised by the 13:33:15 function, instead of being wrapped in the CallInfo. 13:33:15 """ 13:33:15 excinfo = None 13:33:15 instant = timing.Instant() 13:33:15 try: 13:33:15 > result: TResult | None = func() 13:33:15 ^^^^^^ 13:33:15 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:15 lambda: runtest_hook(item=item, **kwds), 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:15 yield 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:15 return (yield) 13:33:15 ^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:15 item.session._setupstate.setup(item) 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:15 col.setup() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:15 super().setup() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:15 self._request._fillfixtures() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:15 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:15 fixturedef = self._get_active_fixturedef(argname) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:15 fixturedef.execute(request=subrequest) 13:33:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:15 13:33:15 self = 13:33:15 request = > 13:33:15 13:33:15 def execute(self, request: SubRequest) -> FixtureValue: 13:33:15 """Return the value of this fixture, executing it if not cached.""" 13:33:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:15 # This needs to be done before checking if we have a cached value, since 13:33:15 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:15 # parametrization, they finalize themselves and fixtures depending on it 13:33:15 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:15 # See #4871 13:33:15 requested_fixtures_that_should_finalize_us = [] 13:33:15 for argname in self.argnames: 13:33:15 fixturedef = request._get_active_fixturedef(argname) 13:33:15 # Saves requested fixtures in a list so we later can add our finalizer 13:33:15 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:15 # down first. This is generally handled by SetupState, but still currently 13:33:15 # needed when this fixture is not parametrized but depends on a parametrized 13:33:15 # fixture. 13:33:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:15 13:33:15 # Check for (and return) cached value/exception. 13:33:15 if self.cached_result is not None: 13:33:15 request_cache_key = self.cache_key(request) 13:33:15 cache_key = self.cached_result[1] 13:33:15 try: 13:33:15 # Attempt to make a normal == check: this might fail for objects 13:33:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:15 cache_hit = bool(request_cache_key == cache_key) 13:33:15 except (ValueError, RuntimeError): 13:33:15 # If the comparison raises, use 'is' as fallback. 13:33:15 cache_hit = request_cache_key is cache_key 13:33:15 13:33:15 if cache_hit: 13:33:15 if self.cached_result[2] is not None: 13:33:15 exc, exc_tb = self.cached_result[2] 13:33:15 raise exc.with_traceback(exc_tb) 13:33:15 else: 13:33:15 return self.cached_result[0] 13:33:15 # We have a previous but differently parametrized fixture instance 13:33:15 # so we need to tear it down before creating a new one. 13:33:15 self.finish(request) 13:33:15 assert self.cached_result is None 13:33:15 13:33:15 # Add finalizer to requested fixtures we saved previously. 13:33:15 # We make sure to do this after checking for cached value to avoid 13:33:15 # adding our finalizer multiple times. (#12135) 13:33:15 finalizer = functools.partial(self.finish, request=request) 13:33:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:15 parent_fixture.addfinalizer(finalizer) 13:33:15 13:33:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:15 # which is executed last. 13:33:15 > assert not self._finalizers 13:33:15 ^^^^^^^^^^^^^^^^^^^^ 13:33:15 E AssertionError 13:33:15 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:15 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 13:33:15 13:33:15 cls = 13:33:15 func = . at 0x7f22b610b7e0> 13:33:15 when = 'setup' 13:33:15 reraise = (, ) 13:33:15 13:33:15 @classmethod 13:33:15 def from_call( 13:33:15 cls, 13:33:15 func: Callable[[], TResult], 13:33:15 when: Literal["collect", "setup", "call", "teardown"], 13:33:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:15 ) -> CallInfo[TResult]: 13:33:15 """Call func, wrapping the result in a CallInfo. 13:33:15 13:33:15 :param func: 13:33:15 The function to call. Called without arguments. 13:33:15 :type func: Callable[[], _pytest.runner.TResult] 13:33:15 :param when: 13:33:15 The phase in which the function is called. 13:33:15 :param reraise: 13:33:15 Exception or exceptions that shall propagate if raised by the 13:33:15 function, instead of being wrapped in the CallInfo. 13:33:15 """ 13:33:15 excinfo = None 13:33:15 instant = timing.Instant() 13:33:15 try: 13:33:15 > result: TResult | None = func() 13:33:15 ^^^^^^ 13:33:15 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:15 lambda: runtest_hook(item=item, **kwds), 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:15 yield 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:15 return (yield) 13:33:15 ^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:15 item.session._setupstate.setup(item) 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:15 col.setup() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:15 super().setup() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:15 self._request._fillfixtures() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:15 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:15 fixturedef = self._get_active_fixturedef(argname) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:15 fixturedef.execute(request=subrequest) 13:33:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:15 13:33:15 self = 13:33:15 request = > 13:33:15 13:33:15 def execute(self, request: SubRequest) -> FixtureValue: 13:33:15 """Return the value of this fixture, executing it if not cached.""" 13:33:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:15 # This needs to be done before checking if we have a cached value, since 13:33:15 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:15 # parametrization, they finalize themselves and fixtures depending on it 13:33:15 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:15 # See #4871 13:33:15 requested_fixtures_that_should_finalize_us = [] 13:33:15 for argname in self.argnames: 13:33:15 fixturedef = request._get_active_fixturedef(argname) 13:33:15 # Saves requested fixtures in a list so we later can add our finalizer 13:33:15 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:15 # down first. This is generally handled by SetupState, but still currently 13:33:15 # needed when this fixture is not parametrized but depends on a parametrized 13:33:15 # fixture. 13:33:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:15 13:33:15 # Check for (and return) cached value/exception. 13:33:15 if self.cached_result is not None: 13:33:15 request_cache_key = self.cache_key(request) 13:33:15 cache_key = self.cached_result[1] 13:33:15 try: 13:33:15 # Attempt to make a normal == check: this might fail for objects 13:33:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:15 cache_hit = bool(request_cache_key == cache_key) 13:33:15 except (ValueError, RuntimeError): 13:33:15 # If the comparison raises, use 'is' as fallback. 13:33:15 cache_hit = request_cache_key is cache_key 13:33:15 13:33:15 if cache_hit: 13:33:15 if self.cached_result[2] is not None: 13:33:15 exc, exc_tb = self.cached_result[2] 13:33:15 raise exc.with_traceback(exc_tb) 13:33:15 else: 13:33:15 return self.cached_result[0] 13:33:15 # We have a previous but differently parametrized fixture instance 13:33:15 # so we need to tear it down before creating a new one. 13:33:15 self.finish(request) 13:33:15 assert self.cached_result is None 13:33:15 13:33:15 # Add finalizer to requested fixtures we saved previously. 13:33:15 # We make sure to do this after checking for cached value to avoid 13:33:15 # adding our finalizer multiple times. (#12135) 13:33:15 finalizer = functools.partial(self.finish, request=request) 13:33:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:15 parent_fixture.addfinalizer(finalizer) 13:33:15 13:33:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:15 # which is executed last. 13:33:15 > assert not self._finalizers 13:33:15 ^^^^^^^^^^^^^^^^^^^^ 13:33:15 E AssertionError 13:33:15 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:15 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 13:33:15 13:33:15 cls = 13:33:15 func = . at 0x7f22b7a1afc0> 13:33:15 when = 'setup' 13:33:15 reraise = (, ) 13:33:15 13:33:15 @classmethod 13:33:15 def from_call( 13:33:15 cls, 13:33:15 func: Callable[[], TResult], 13:33:15 when: Literal["collect", "setup", "call", "teardown"], 13:33:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:15 ) -> CallInfo[TResult]: 13:33:15 """Call func, wrapping the result in a CallInfo. 13:33:15 13:33:15 :param func: 13:33:15 The function to call. Called without arguments. 13:33:15 :type func: Callable[[], _pytest.runner.TResult] 13:33:15 :param when: 13:33:15 The phase in which the function is called. 13:33:15 :param reraise: 13:33:15 Exception or exceptions that shall propagate if raised by the 13:33:15 function, instead of being wrapped in the CallInfo. 13:33:15 """ 13:33:15 excinfo = None 13:33:15 instant = timing.Instant() 13:33:15 try: 13:33:15 > result: TResult | None = func() 13:33:15 ^^^^^^ 13:33:15 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:15 lambda: runtest_hook(item=item, **kwds), 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:15 yield 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:15 return (yield) 13:33:15 ^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:15 item.session._setupstate.setup(item) 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:15 col.setup() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:15 super().setup() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:15 self._request._fillfixtures() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:15 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:15 fixturedef = self._get_active_fixturedef(argname) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:15 fixturedef.execute(request=subrequest) 13:33:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:15 13:33:15 self = 13:33:15 request = > 13:33:15 13:33:15 def execute(self, request: SubRequest) -> FixtureValue: 13:33:15 """Return the value of this fixture, executing it if not cached.""" 13:33:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:15 # This needs to be done before checking if we have a cached value, since 13:33:15 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:15 # parametrization, they finalize themselves and fixtures depending on it 13:33:15 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:15 # See #4871 13:33:15 requested_fixtures_that_should_finalize_us = [] 13:33:15 for argname in self.argnames: 13:33:15 fixturedef = request._get_active_fixturedef(argname) 13:33:15 # Saves requested fixtures in a list so we later can add our finalizer 13:33:15 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:15 # down first. This is generally handled by SetupState, but still currently 13:33:15 # needed when this fixture is not parametrized but depends on a parametrized 13:33:15 # fixture. 13:33:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:15 13:33:15 # Check for (and return) cached value/exception. 13:33:15 if self.cached_result is not None: 13:33:15 request_cache_key = self.cache_key(request) 13:33:15 cache_key = self.cached_result[1] 13:33:15 try: 13:33:15 # Attempt to make a normal == check: this might fail for objects 13:33:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:15 cache_hit = bool(request_cache_key == cache_key) 13:33:15 except (ValueError, RuntimeError): 13:33:15 # If the comparison raises, use 'is' as fallback. 13:33:15 cache_hit = request_cache_key is cache_key 13:33:15 13:33:15 if cache_hit: 13:33:15 if self.cached_result[2] is not None: 13:33:15 exc, exc_tb = self.cached_result[2] 13:33:15 raise exc.with_traceback(exc_tb) 13:33:15 else: 13:33:15 return self.cached_result[0] 13:33:15 # We have a previous but differently parametrized fixture instance 13:33:15 # so we need to tear it down before creating a new one. 13:33:15 self.finish(request) 13:33:15 assert self.cached_result is None 13:33:15 13:33:15 # Add finalizer to requested fixtures we saved previously. 13:33:15 # We make sure to do this after checking for cached value to avoid 13:33:15 # adding our finalizer multiple times. (#12135) 13:33:15 finalizer = functools.partial(self.finish, request=request) 13:33:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:15 parent_fixture.addfinalizer(finalizer) 13:33:15 13:33:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:15 # which is executed last. 13:33:15 > assert not self._finalizers 13:33:15 ^^^^^^^^^^^^^^^^^^^^ 13:33:15 E AssertionError 13:33:15 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:15 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 13:33:15 13:33:15 cls = 13:33:15 func = . at 0x7f22b610ba60> 13:33:15 when = 'setup' 13:33:15 reraise = (, ) 13:33:15 13:33:15 @classmethod 13:33:15 def from_call( 13:33:15 cls, 13:33:15 func: Callable[[], TResult], 13:33:15 when: Literal["collect", "setup", "call", "teardown"], 13:33:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:15 ) -> CallInfo[TResult]: 13:33:15 """Call func, wrapping the result in a CallInfo. 13:33:15 13:33:15 :param func: 13:33:15 The function to call. Called without arguments. 13:33:15 :type func: Callable[[], _pytest.runner.TResult] 13:33:15 :param when: 13:33:15 The phase in which the function is called. 13:33:15 :param reraise: 13:33:15 Exception or exceptions that shall propagate if raised by the 13:33:15 function, instead of being wrapped in the CallInfo. 13:33:15 """ 13:33:15 excinfo = None 13:33:15 instant = timing.Instant() 13:33:15 try: 13:33:15 > result: TResult | None = func() 13:33:15 ^^^^^^ 13:33:15 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:15 lambda: runtest_hook(item=item, **kwds), 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:15 yield 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:15 return (yield) 13:33:15 ^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:15 item.session._setupstate.setup(item) 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:15 col.setup() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:15 super().setup() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:15 self._request._fillfixtures() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:15 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:15 fixturedef = self._get_active_fixturedef(argname) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:15 fixturedef.execute(request=subrequest) 13:33:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:15 13:33:15 self = 13:33:15 request = > 13:33:15 13:33:15 def execute(self, request: SubRequest) -> FixtureValue: 13:33:15 """Return the value of this fixture, executing it if not cached.""" 13:33:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:15 # This needs to be done before checking if we have a cached value, since 13:33:15 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:15 # parametrization, they finalize themselves and fixtures depending on it 13:33:15 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:15 # See #4871 13:33:15 requested_fixtures_that_should_finalize_us = [] 13:33:15 for argname in self.argnames: 13:33:15 fixturedef = request._get_active_fixturedef(argname) 13:33:15 # Saves requested fixtures in a list so we later can add our finalizer 13:33:15 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:15 # down first. This is generally handled by SetupState, but still currently 13:33:15 # needed when this fixture is not parametrized but depends on a parametrized 13:33:15 # fixture. 13:33:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:15 13:33:15 # Check for (and return) cached value/exception. 13:33:15 if self.cached_result is not None: 13:33:15 request_cache_key = self.cache_key(request) 13:33:15 cache_key = self.cached_result[1] 13:33:15 try: 13:33:15 # Attempt to make a normal == check: this might fail for objects 13:33:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:15 cache_hit = bool(request_cache_key == cache_key) 13:33:15 except (ValueError, RuntimeError): 13:33:15 # If the comparison raises, use 'is' as fallback. 13:33:15 cache_hit = request_cache_key is cache_key 13:33:15 13:33:15 if cache_hit: 13:33:15 if self.cached_result[2] is not None: 13:33:15 exc, exc_tb = self.cached_result[2] 13:33:15 raise exc.with_traceback(exc_tb) 13:33:15 else: 13:33:15 return self.cached_result[0] 13:33:15 # We have a previous but differently parametrized fixture instance 13:33:15 # so we need to tear it down before creating a new one. 13:33:15 self.finish(request) 13:33:15 assert self.cached_result is None 13:33:15 13:33:15 # Add finalizer to requested fixtures we saved previously. 13:33:15 # We make sure to do this after checking for cached value to avoid 13:33:15 # adding our finalizer multiple times. (#12135) 13:33:15 finalizer = functools.partial(self.finish, request=request) 13:33:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:15 parent_fixture.addfinalizer(finalizer) 13:33:15 13:33:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:15 # which is executed last. 13:33:15 > assert not self._finalizers 13:33:15 ^^^^^^^^^^^^^^^^^^^^ 13:33:15 E AssertionError 13:33:15 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:15 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 13:33:15 13:33:15 cls = 13:33:15 func = . at 0x7f22b6109120> 13:33:15 when = 'setup' 13:33:15 reraise = (, ) 13:33:15 13:33:15 @classmethod 13:33:15 def from_call( 13:33:15 cls, 13:33:15 func: Callable[[], TResult], 13:33:15 when: Literal["collect", "setup", "call", "teardown"], 13:33:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:15 ) -> CallInfo[TResult]: 13:33:15 """Call func, wrapping the result in a CallInfo. 13:33:15 13:33:15 :param func: 13:33:15 The function to call. Called without arguments. 13:33:15 :type func: Callable[[], _pytest.runner.TResult] 13:33:15 :param when: 13:33:15 The phase in which the function is called. 13:33:15 :param reraise: 13:33:15 Exception or exceptions that shall propagate if raised by the 13:33:15 function, instead of being wrapped in the CallInfo. 13:33:15 """ 13:33:15 excinfo = None 13:33:15 instant = timing.Instant() 13:33:15 try: 13:33:15 > result: TResult | None = func() 13:33:15 ^^^^^^ 13:33:15 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:15 lambda: runtest_hook(item=item, **kwds), 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:15 yield 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:15 return (yield) 13:33:15 ^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:15 item.session._setupstate.setup(item) 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:15 col.setup() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:15 super().setup() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:15 self._request._fillfixtures() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:15 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:15 fixturedef = self._get_active_fixturedef(argname) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:15 fixturedef.execute(request=subrequest) 13:33:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:15 13:33:15 self = 13:33:15 request = > 13:33:15 13:33:15 def execute(self, request: SubRequest) -> FixtureValue: 13:33:15 """Return the value of this fixture, executing it if not cached.""" 13:33:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:15 # This needs to be done before checking if we have a cached value, since 13:33:15 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:15 # parametrization, they finalize themselves and fixtures depending on it 13:33:15 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:15 # See #4871 13:33:15 requested_fixtures_that_should_finalize_us = [] 13:33:15 for argname in self.argnames: 13:33:15 fixturedef = request._get_active_fixturedef(argname) 13:33:15 # Saves requested fixtures in a list so we later can add our finalizer 13:33:15 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:15 # down first. This is generally handled by SetupState, but still currently 13:33:15 # needed when this fixture is not parametrized but depends on a parametrized 13:33:15 # fixture. 13:33:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:15 13:33:15 # Check for (and return) cached value/exception. 13:33:15 if self.cached_result is not None: 13:33:15 request_cache_key = self.cache_key(request) 13:33:15 cache_key = self.cached_result[1] 13:33:15 try: 13:33:15 # Attempt to make a normal == check: this might fail for objects 13:33:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:15 cache_hit = bool(request_cache_key == cache_key) 13:33:15 except (ValueError, RuntimeError): 13:33:15 # If the comparison raises, use 'is' as fallback. 13:33:15 cache_hit = request_cache_key is cache_key 13:33:15 13:33:15 if cache_hit: 13:33:15 if self.cached_result[2] is not None: 13:33:15 exc, exc_tb = self.cached_result[2] 13:33:15 raise exc.with_traceback(exc_tb) 13:33:15 else: 13:33:15 return self.cached_result[0] 13:33:15 # We have a previous but differently parametrized fixture instance 13:33:15 # so we need to tear it down before creating a new one. 13:33:15 self.finish(request) 13:33:15 assert self.cached_result is None 13:33:15 13:33:15 # Add finalizer to requested fixtures we saved previously. 13:33:15 # We make sure to do this after checking for cached value to avoid 13:33:15 # adding our finalizer multiple times. (#12135) 13:33:15 finalizer = functools.partial(self.finish, request=request) 13:33:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:15 parent_fixture.addfinalizer(finalizer) 13:33:15 13:33:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:15 # which is executed last. 13:33:15 > assert not self._finalizers 13:33:15 ^^^^^^^^^^^^^^^^^^^^ 13:33:15 E AssertionError 13:33:15 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:15 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 13:33:15 13:33:15 cls = 13:33:15 func = . at 0x7f22b610b7e0> 13:33:15 when = 'setup' 13:33:15 reraise = (, ) 13:33:15 13:33:15 @classmethod 13:33:15 def from_call( 13:33:15 cls, 13:33:15 func: Callable[[], TResult], 13:33:15 when: Literal["collect", "setup", "call", "teardown"], 13:33:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:15 ) -> CallInfo[TResult]: 13:33:15 """Call func, wrapping the result in a CallInfo. 13:33:15 13:33:15 :param func: 13:33:15 The function to call. Called without arguments. 13:33:15 :type func: Callable[[], _pytest.runner.TResult] 13:33:15 :param when: 13:33:15 The phase in which the function is called. 13:33:15 :param reraise: 13:33:15 Exception or exceptions that shall propagate if raised by the 13:33:15 function, instead of being wrapped in the CallInfo. 13:33:15 """ 13:33:15 excinfo = None 13:33:15 instant = timing.Instant() 13:33:15 try: 13:33:15 > result: TResult | None = func() 13:33:15 ^^^^^^ 13:33:15 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:15 lambda: runtest_hook(item=item, **kwds), 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:15 yield 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:15 return (yield) 13:33:15 ^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:15 item.session._setupstate.setup(item) 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:15 col.setup() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:15 super().setup() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:15 self._request._fillfixtures() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:15 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:15 fixturedef = self._get_active_fixturedef(argname) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:15 fixturedef.execute(request=subrequest) 13:33:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:15 13:33:15 self = 13:33:15 request = > 13:33:15 13:33:15 def execute(self, request: SubRequest) -> FixtureValue: 13:33:15 """Return the value of this fixture, executing it if not cached.""" 13:33:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:15 # This needs to be done before checking if we have a cached value, since 13:33:15 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:15 # parametrization, they finalize themselves and fixtures depending on it 13:33:15 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:15 # See #4871 13:33:15 requested_fixtures_that_should_finalize_us = [] 13:33:15 for argname in self.argnames: 13:33:15 fixturedef = request._get_active_fixturedef(argname) 13:33:15 # Saves requested fixtures in a list so we later can add our finalizer 13:33:15 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:15 # down first. This is generally handled by SetupState, but still currently 13:33:15 # needed when this fixture is not parametrized but depends on a parametrized 13:33:15 # fixture. 13:33:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:15 13:33:15 # Check for (and return) cached value/exception. 13:33:15 if self.cached_result is not None: 13:33:15 request_cache_key = self.cache_key(request) 13:33:15 cache_key = self.cached_result[1] 13:33:15 try: 13:33:15 # Attempt to make a normal == check: this might fail for objects 13:33:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:15 cache_hit = bool(request_cache_key == cache_key) 13:33:15 except (ValueError, RuntimeError): 13:33:15 # If the comparison raises, use 'is' as fallback. 13:33:15 cache_hit = request_cache_key is cache_key 13:33:15 13:33:15 if cache_hit: 13:33:15 if self.cached_result[2] is not None: 13:33:15 exc, exc_tb = self.cached_result[2] 13:33:15 raise exc.with_traceback(exc_tb) 13:33:15 else: 13:33:15 return self.cached_result[0] 13:33:15 # We have a previous but differently parametrized fixture instance 13:33:15 # so we need to tear it down before creating a new one. 13:33:15 self.finish(request) 13:33:15 assert self.cached_result is None 13:33:15 13:33:15 # Add finalizer to requested fixtures we saved previously. 13:33:15 # We make sure to do this after checking for cached value to avoid 13:33:15 # adding our finalizer multiple times. (#12135) 13:33:15 finalizer = functools.partial(self.finish, request=request) 13:33:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:15 parent_fixture.addfinalizer(finalizer) 13:33:15 13:33:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:15 # which is executed last. 13:33:15 > assert not self._finalizers 13:33:15 ^^^^^^^^^^^^^^^^^^^^ 13:33:15 E AssertionError 13:33:15 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:15 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 13:33:15 13:33:15 cls = 13:33:15 func = . at 0x7f22b610b600> 13:33:15 when = 'setup' 13:33:15 reraise = (, ) 13:33:15 13:33:15 @classmethod 13:33:15 def from_call( 13:33:15 cls, 13:33:15 func: Callable[[], TResult], 13:33:15 when: Literal["collect", "setup", "call", "teardown"], 13:33:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:15 ) -> CallInfo[TResult]: 13:33:15 """Call func, wrapping the result in a CallInfo. 13:33:15 13:33:15 :param func: 13:33:15 The function to call. Called without arguments. 13:33:15 :type func: Callable[[], _pytest.runner.TResult] 13:33:15 :param when: 13:33:15 The phase in which the function is called. 13:33:15 :param reraise: 13:33:15 Exception or exceptions that shall propagate if raised by the 13:33:15 function, instead of being wrapped in the CallInfo. 13:33:15 """ 13:33:15 excinfo = None 13:33:15 instant = timing.Instant() 13:33:15 try: 13:33:15 > result: TResult | None = func() 13:33:15 ^^^^^^ 13:33:15 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:15 lambda: runtest_hook(item=item, **kwds), 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:15 yield 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:15 return (yield) 13:33:15 ^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:15 item.session._setupstate.setup(item) 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:15 col.setup() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:15 super().setup() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:15 self._request._fillfixtures() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:15 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:15 fixturedef = self._get_active_fixturedef(argname) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:15 fixturedef.execute(request=subrequest) 13:33:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:15 13:33:15 self = 13:33:15 request = > 13:33:15 13:33:15 def execute(self, request: SubRequest) -> FixtureValue: 13:33:15 """Return the value of this fixture, executing it if not cached.""" 13:33:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:15 # This needs to be done before checking if we have a cached value, since 13:33:15 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:15 # parametrization, they finalize themselves and fixtures depending on it 13:33:15 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:15 # See #4871 13:33:15 requested_fixtures_that_should_finalize_us = [] 13:33:15 for argname in self.argnames: 13:33:15 fixturedef = request._get_active_fixturedef(argname) 13:33:15 # Saves requested fixtures in a list so we later can add our finalizer 13:33:15 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:15 # down first. This is generally handled by SetupState, but still currently 13:33:15 # needed when this fixture is not parametrized but depends on a parametrized 13:33:15 # fixture. 13:33:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:15 13:33:15 # Check for (and return) cached value/exception. 13:33:15 if self.cached_result is not None: 13:33:15 request_cache_key = self.cache_key(request) 13:33:15 cache_key = self.cached_result[1] 13:33:15 try: 13:33:15 # Attempt to make a normal == check: this might fail for objects 13:33:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:15 cache_hit = bool(request_cache_key == cache_key) 13:33:15 except (ValueError, RuntimeError): 13:33:15 # If the comparison raises, use 'is' as fallback. 13:33:15 cache_hit = request_cache_key is cache_key 13:33:15 13:33:15 if cache_hit: 13:33:15 if self.cached_result[2] is not None: 13:33:15 exc, exc_tb = self.cached_result[2] 13:33:15 raise exc.with_traceback(exc_tb) 13:33:15 else: 13:33:15 return self.cached_result[0] 13:33:15 # We have a previous but differently parametrized fixture instance 13:33:15 # so we need to tear it down before creating a new one. 13:33:15 self.finish(request) 13:33:15 assert self.cached_result is None 13:33:15 13:33:15 # Add finalizer to requested fixtures we saved previously. 13:33:15 # We make sure to do this after checking for cached value to avoid 13:33:15 # adding our finalizer multiple times. (#12135) 13:33:15 finalizer = functools.partial(self.finish, request=request) 13:33:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:15 parent_fixture.addfinalizer(finalizer) 13:33:15 13:33:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:15 # which is executed last. 13:33:15 > assert not self._finalizers 13:33:15 ^^^^^^^^^^^^^^^^^^^^ 13:33:15 E AssertionError 13:33:15 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:15 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 13:33:15 13:33:15 cls = 13:33:15 func = . at 0x7f22b6109120> 13:33:15 when = 'setup' 13:33:15 reraise = (, ) 13:33:15 13:33:15 @classmethod 13:33:15 def from_call( 13:33:15 cls, 13:33:15 func: Callable[[], TResult], 13:33:15 when: Literal["collect", "setup", "call", "teardown"], 13:33:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:15 ) -> CallInfo[TResult]: 13:33:15 """Call func, wrapping the result in a CallInfo. 13:33:15 13:33:15 :param func: 13:33:15 The function to call. Called without arguments. 13:33:15 :type func: Callable[[], _pytest.runner.TResult] 13:33:15 :param when: 13:33:15 The phase in which the function is called. 13:33:15 :param reraise: 13:33:15 Exception or exceptions that shall propagate if raised by the 13:33:15 function, instead of being wrapped in the CallInfo. 13:33:15 """ 13:33:15 excinfo = None 13:33:15 instant = timing.Instant() 13:33:15 try: 13:33:15 > result: TResult | None = func() 13:33:15 ^^^^^^ 13:33:15 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:15 lambda: runtest_hook(item=item, **kwds), 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:15 yield 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:15 return (yield) 13:33:15 ^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:15 item.session._setupstate.setup(item) 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:15 col.setup() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:15 super().setup() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:15 self._request._fillfixtures() 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:15 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:15 fixturedef = self._get_active_fixturedef(argname) 13:33:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:15 fixturedef.execute(request=subrequest) 13:33:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:15 13:33:15 self = 13:33:15 request = > 13:33:15 13:33:15 def execute(self, request: SubRequest) -> FixtureValue: 13:33:15 """Return the value of this fixture, executing it if not cached.""" 13:33:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:15 # This needs to be done before checking if we have a cached value, since 13:33:15 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:15 # parametrization, they finalize themselves and fixtures depending on it 13:33:15 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:15 # See #4871 13:33:15 requested_fixtures_that_should_finalize_us = [] 13:33:15 for argname in self.argnames: 13:33:15 fixturedef = request._get_active_fixturedef(argname) 13:33:15 # Saves requested fixtures in a list so we later can add our finalizer 13:33:15 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:15 # down first. This is generally handled by SetupState, but still currently 13:33:15 # needed when this fixture is not parametrized but depends on a parametrized 13:33:15 # fixture. 13:33:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:15 13:33:15 # Check for (and return) cached value/exception. 13:33:15 if self.cached_result is not None: 13:33:15 request_cache_key = self.cache_key(request) 13:33:15 cache_key = self.cached_result[1] 13:33:15 try: 13:33:15 # Attempt to make a normal == check: this might fail for objects 13:33:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:15 cache_hit = bool(request_cache_key == cache_key) 13:33:15 except (ValueError, RuntimeError): 13:33:15 # If the comparison raises, use 'is' as fallback. 13:33:15 cache_hit = request_cache_key is cache_key 13:33:15 13:33:15 if cache_hit: 13:33:15 if self.cached_result[2] is not None: 13:33:15 exc, exc_tb = self.cached_result[2] 13:33:15 raise exc.with_traceback(exc_tb) 13:33:15 else: 13:33:15 return self.cached_result[0] 13:33:15 # We have a previous but differently parametrized fixture instance 13:33:15 # so we need to tear it down before creating a new one. 13:33:15 self.finish(request) 13:33:15 assert self.cached_result is None 13:33:15 13:33:15 # Add finalizer to requested fixtures we saved previously. 13:33:15 # We make sure to do this after checking for cached value to avoid 13:33:15 # adding our finalizer multiple times. (#12135) 13:33:15 finalizer = functools.partial(self.finish, request=request) 13:33:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:15 parent_fixture.addfinalizer(finalizer) 13:33:15 13:33:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:15 # which is executed last. 13:33:15 > assert not self._finalizers 13:33:15 ^^^^^^^^^^^^^^^^^^^^ 13:33:15 E AssertionError 13:33:15 13:33:15 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:15 =========================== short test summary info ============================ 13:33:15 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 13:33:15 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 13:33:15 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 13:33:15 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 13:33:15 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 13:33:15 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 13:33:15 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 13:33:15 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 13:33:15 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 13:33:15 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 13:33:15 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 13:33:15 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 13:33:15 12 errors in 102.27s (0:01:42) 13:33:15 tests71: exit 1 (102.57 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 pid=4528 13:33:15 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 13:33:24 ==================================== ERRORS ==================================== 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 13:33:24 13:33:24 cls = 13:33:24 13:33:24 @classmethod 13:33:24 def setUpClass(cls): 13:33:24 > cls.processes = test_utils.start_tpce() 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 13:33:24 transportpce_tests/hybrid/test01_device_change_notifications.py:76: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 def start_tpce(): 13:33:24 if 'NO_ODL_STARTUP' in os.environ: 13:33:24 print('No OpenDaylight instance to start!') 13:33:24 return [] 13:33:24 print('starting OpenDaylight...') 13:33:24 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 13:33:24 process = start_lighty() 13:33:24 else: 13:33:24 process = start_karaf() 13:33:24 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 13:33:24 print('OpenDaylight started !') 13:33:24 else: 13:33:24 print('OpenDaylight failed to start !') 13:33:24 shutdown_process(process) 13:33:24 for pid in process_list: 13:33:24 shutdown_process(pid) 13:33:24 > sys.exit(1) 13:33:24 E SystemExit: 1 13:33:24 13:33:24 transportpce_tests/common/test_utils.py:234: SystemExit 13:33:24 ---------------------------- Captured stdout setup ----------------------------- 13:33:24 starting OpenDaylight... 13:33:24 starting KARAF (karaf221) TransportPCE build... 13:33:24 Pattern not found after 100 seconds! OpenDaylight failed to start ! 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ecca6a20> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6eccf7f60> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ef39af20> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ecca5440> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ee6153a0> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ecca5440> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6eccf6700> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6eccf6980> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6eccf6700> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ecca5440> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ec6cd940> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6eccf6700> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ecca5440> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ec6cdda0> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ecca5440> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ecca58a0> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6eccf68e0> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ecca58a0> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6eccf6d40> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6eccf68e0> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6eccf6d40> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ec6ce0c0> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6eccf6d40> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ec6ce0c0> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ec6cc860> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6eccf6d40> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ec6cd440> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ec6cd260> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6eccf6d40> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ec6cd6c0> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ec6cd800> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6eccf6d40> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ec6cdd00> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ec6cd800> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6eccf6d40> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ec6cdf80> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6eccf6d40> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ec6ccea0> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ec6cda80> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6eccf6d40> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ec6cda80> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ec6cea20> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6eccf6d40> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ec6cd9e0> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ec6cdbc0> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6eccf6d40> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ec6cdf80> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ec6ce5c0> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6eccf6d40> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 13:33:24 13:33:24 cls = 13:33:24 func = . at 0x7ff6ec6ce2a0> 13:33:24 when = 'setup' 13:33:24 reraise = (, ) 13:33:24 13:33:24 @classmethod 13:33:24 def from_call( 13:33:24 cls, 13:33:24 func: Callable[[], TResult], 13:33:24 when: Literal["collect", "setup", "call", "teardown"], 13:33:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:33:24 ) -> CallInfo[TResult]: 13:33:24 """Call func, wrapping the result in a CallInfo. 13:33:24 13:33:24 :param func: 13:33:24 The function to call. Called without arguments. 13:33:24 :type func: Callable[[], _pytest.runner.TResult] 13:33:24 :param when: 13:33:24 The phase in which the function is called. 13:33:24 :param reraise: 13:33:24 Exception or exceptions that shall propagate if raised by the 13:33:24 function, instead of being wrapped in the CallInfo. 13:33:24 """ 13:33:24 excinfo = None 13:33:24 instant = timing.Instant() 13:33:24 try: 13:33:24 > result: TResult | None = func() 13:33:24 ^^^^^^ 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:33:24 lambda: runtest_hook(item=item, **kwds), 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:33:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:33:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:33:24 yield 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:33:24 return (yield) 13:33:24 ^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:33:24 item.session._setupstate.setup(item) 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:33:24 col.setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:33:24 super().setup() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:33:24 self._request._fillfixtures() 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:33:24 item.funcargs[argname] = self.getfixturevalue(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:33:24 fixturedef = self._get_active_fixturedef(argname) 13:33:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:33:24 fixturedef.execute(request=subrequest) 13:33:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:33:24 13:33:24 self = 13:33:24 request = > 13:33:24 13:33:24 def execute(self, request: SubRequest) -> FixtureValue: 13:33:24 """Return the value of this fixture, executing it if not cached.""" 13:33:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:33:24 # This needs to be done before checking if we have a cached value, since 13:33:24 # if a dependent fixture has their cache invalidated, e.g. due to 13:33:24 # parametrization, they finalize themselves and fixtures depending on it 13:33:24 # (which will likely include this fixture) setting `self.cached_result = None`. 13:33:24 # See #4871 13:33:24 requested_fixtures_that_should_finalize_us = [] 13:33:24 for argname in self.argnames: 13:33:24 fixturedef = request._get_active_fixturedef(argname) 13:33:24 # Saves requested fixtures in a list so we later can add our finalizer 13:33:24 # to them, ensuring that if a requested fixture gets torn down we get torn 13:33:24 # down first. This is generally handled by SetupState, but still currently 13:33:24 # needed when this fixture is not parametrized but depends on a parametrized 13:33:24 # fixture. 13:33:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:33:24 13:33:24 # Check for (and return) cached value/exception. 13:33:24 if self.cached_result is not None: 13:33:24 request_cache_key = self.cache_key(request) 13:33:24 cache_key = self.cached_result[1] 13:33:24 try: 13:33:24 # Attempt to make a normal == check: this might fail for objects 13:33:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:33:24 cache_hit = bool(request_cache_key == cache_key) 13:33:24 except (ValueError, RuntimeError): 13:33:24 # If the comparison raises, use 'is' as fallback. 13:33:24 cache_hit = request_cache_key is cache_key 13:33:24 13:33:24 if cache_hit: 13:33:24 if self.cached_result[2] is not None: 13:33:24 exc, exc_tb = self.cached_result[2] 13:33:24 raise exc.with_traceback(exc_tb) 13:33:24 else: 13:33:24 return self.cached_result[0] 13:33:24 # We have a previous but differently parametrized fixture instance 13:33:24 # so we need to tear it down before creating a new one. 13:33:24 self.finish(request) 13:33:24 assert self.cached_result is None 13:33:24 13:33:24 # Add finalizer to requested fixtures we saved previously. 13:33:24 # We make sure to do this after checking for cached value to avoid 13:33:24 # adding our finalizer multiple times. (#12135) 13:33:24 finalizer = functools.partial(self.finish, request=request) 13:33:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:33:24 parent_fixture.addfinalizer(finalizer) 13:33:24 13:33:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:33:24 # which is executed last. 13:33:24 > assert not self._finalizers 13:33:24 ^^^^^^^^^^^^^^^^^^^^ 13:33:24 E AssertionError 13:33:24 13:33:24 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:33:24 =========================== short test summary info ============================ 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 13:33:24 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 13:33:24 51 errors in 109.38s (0:01:49) 13:33:25 tests71: FAIL ✖ in 1 minute 50.67 seconds 13:33:25 tests_hybrid: exit 1 (109.64 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid pid=4544 13:33:25 buildcontroller: FAIL code 1 (9.18=setup[8.59]+cmd[0.59] seconds) 13:33:25 sims: OK (10.41=setup[7.12]+cmd[3.29] seconds) 13:33:25 testsPCE: FAIL code 1 (180.42=setup[56.37]+cmd[124.05] seconds) 13:33:25 build_karaf_tests221: FAIL code 127 (6.49=setup[6.48]+cmd[0.00] seconds) 13:33:25 tests_tapi: FAIL code 1 (118.19=setup[8.68]+cmd[109.51] seconds) 13:33:25 tests221: FAIL code 1 (114.82=setup[8.25]+cmd[106.57] seconds) 13:33:25 build_karaf_tests71: FAIL code 127 (6.39=setup[6.39]+cmd[0.00] seconds) 13:33:25 tests71: FAIL code 1 (110.67=setup[8.10]+cmd[102.57] seconds) 13:33:25 build_karaf_tests200: FAIL code 127 (6.66=setup[6.66]+cmd[0.00] seconds) 13:33:25 tests200: FAIL code 1 (110.47=setup[8.29]+cmd[102.18] seconds) 13:33:25 tests_hybrid: FAIL code 1 (115.94=setup[6.30]+cmd[109.64] seconds) 13:33:25 buildlighty: FAIL code 9 (6.45=setup[6.43]+cmd[0.02] seconds) 13:33:25 docs: OK (18.28=setup[15.84]+cmd[2.44] seconds) 13:33:25 docs-linkcheck: OK (20.43=setup[15.44]+cmd[4.99] seconds) 13:33:25 checkbashisms: OK (3.03=setup[1.86]+cmd[0.01,0.04,1.13] seconds) 13:33:25 pre-commit: OK (53.75=setup[2.94]+cmd[0.01,0.00,41.91,8.89] seconds) 13:33:25 pylint: FAIL code 1 (21.50=setup[4.27]+cmd[17.23] seconds) 13:33:25 evaluation failed :( (560.86 seconds) 13:33:25 + tox_status=1 13:33:25 + echo '---> Completed tox runs' 13:33:25 ---> Completed tox runs 13:33:25 + for i in .tox/*/log 13:33:25 ++ awk -F/ '{print $2}' 13:33:25 ++ echo .tox/build_karaf_tests200/log 13:33:25 + tox_env=build_karaf_tests200 13:33:25 + cp -r .tox/build_karaf_tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests200 13:33:25 + for i in .tox/*/log 13:33:25 ++ echo .tox/build_karaf_tests221/log 13:33:25 ++ awk -F/ '{print $2}' 13:33:25 + tox_env=build_karaf_tests221 13:33:25 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests221 13:33:25 + for i in .tox/*/log 13:33:25 ++ echo .tox/build_karaf_tests71/log 13:33:25 ++ awk -F/ '{print $2}' 13:33:25 + tox_env=build_karaf_tests71 13:33:25 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests71 13:33:25 + for i in .tox/*/log 13:33:25 ++ echo .tox/buildcontroller/log 13:33:25 ++ awk -F/ '{print $2}' 13:33:25 + tox_env=buildcontroller 13:33:25 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildcontroller 13:33:25 + for i in .tox/*/log 13:33:25 ++ echo .tox/buildlighty/log 13:33:25 ++ awk -F/ '{print $2}' 13:33:25 + tox_env=buildlighty 13:33:25 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildlighty 13:33:25 + for i in .tox/*/log 13:33:25 ++ echo .tox/checkbashisms/log 13:33:25 ++ awk -F/ '{print $2}' 13:33:25 + tox_env=checkbashisms 13:33:25 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/checkbashisms 13:33:25 + for i in .tox/*/log 13:33:25 ++ echo .tox/docs-linkcheck/log 13:33:25 ++ awk -F/ '{print $2}' 13:33:25 + tox_env=docs-linkcheck 13:33:25 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs-linkcheck 13:33:25 + for i in .tox/*/log 13:33:25 ++ echo .tox/docs/log 13:33:25 ++ awk -F/ '{print $2}' 13:33:25 + tox_env=docs 13:33:25 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs 13:33:25 + for i in .tox/*/log 13:33:25 ++ echo .tox/pre-commit/log 13:33:25 ++ awk -F/ '{print $2}' 13:33:25 + tox_env=pre-commit 13:33:25 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pre-commit 13:33:25 + for i in .tox/*/log 13:33:25 ++ echo .tox/pylint/log 13:33:25 ++ awk -F/ '{print $2}' 13:33:25 + tox_env=pylint 13:33:25 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pylint 13:33:25 + for i in .tox/*/log 13:33:25 ++ echo .tox/sims/log 13:33:25 ++ awk -F/ '{print $2}' 13:33:25 + tox_env=sims 13:33:25 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/sims 13:33:25 + for i in .tox/*/log 13:33:25 ++ echo .tox/tests200/log 13:33:25 ++ awk -F/ '{print $2}' 13:33:25 + tox_env=tests200 13:33:25 + cp -r .tox/tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests200 13:33:25 + for i in .tox/*/log 13:33:25 ++ echo .tox/tests221/log 13:33:25 ++ awk -F/ '{print $2}' 13:33:25 + tox_env=tests221 13:33:25 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests221 13:33:25 + for i in .tox/*/log 13:33:25 ++ echo .tox/tests71/log 13:33:25 ++ awk -F/ '{print $2}' 13:33:25 + tox_env=tests71 13:33:25 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests71 13:33:25 + for i in .tox/*/log 13:33:25 ++ awk -F/ '{print $2}' 13:33:25 ++ echo .tox/testsPCE/log 13:33:25 + tox_env=testsPCE 13:33:25 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/testsPCE 13:33:25 + for i in .tox/*/log 13:33:25 ++ echo .tox/tests_hybrid/log 13:33:25 ++ awk -F/ '{print $2}' 13:33:25 + tox_env=tests_hybrid 13:33:25 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_hybrid 13:33:25 + for i in .tox/*/log 13:33:25 ++ echo .tox/tests_tapi/log 13:33:25 ++ awk -F/ '{print $2}' 13:33:25 + tox_env=tests_tapi 13:33:25 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_tapi 13:33:25 + DOC_DIR=docs/_build/html 13:33:25 + [[ -d docs/_build/html ]] 13:33:25 + echo '---> Archiving generated docs' 13:33:25 ---> Archiving generated docs 13:33:25 + mv docs/_build/html /w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 13:33:25 + echo '---> tox-run.sh ends' 13:33:25 ---> tox-run.sh ends 13:33:25 + test 1 -eq 0 13:33:25 + exit 1 13:33:25 ++ '[' 1 = 1 ']' 13:33:25 ++ '[' -x /usr/bin/clear_console ']' 13:33:25 ++ /usr/bin/clear_console -q 13:33:25 Build step 'Execute shell' marked build as failure 13:33:25 $ ssh-agent -k 13:33:25 unset SSH_AUTH_SOCK; 13:33:25 unset SSH_AGENT_PID; 13:33:25 echo Agent pid 1565 killed; 13:33:25 [ssh-agent] Stopped. 13:33:25 [PostBuildScript] - [INFO] Executing post build scripts. 13:33:25 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins4004515035789060879.sh 13:33:25 ---> sysstat.sh 13:33:25 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins17001953163713717827.sh 13:33:25 ---> package-listing.sh 13:33:25 + '[' -f /etc/os-release ']' 13:33:25 + . /etc/os-release 13:33:25 ++ PRETTY_NAME='Ubuntu 22.04.5 LTS' 13:33:25 ++ NAME=Ubuntu 13:33:25 ++ VERSION_ID=22.04 13:33:25 ++ VERSION='22.04.5 LTS (Jammy Jellyfish)' 13:33:25 ++ VERSION_CODENAME=jammy 13:33:25 ++ ID=ubuntu 13:33:25 ++ ID_LIKE=debian 13:33:25 ++ HOME_URL=https://www.ubuntu.com/ 13:33:25 ++ SUPPORT_URL=https://help.ubuntu.com/ 13:33:25 ++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/ 13:33:25 ++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy 13:33:25 ++ UBUNTU_CODENAME=jammy 13:33:25 + case " ${ID:-} ${ID_LIKE:-} " in 13:33:25 + OS_FAMILY=debian 13:33:25 + workspace=/w/workspace/transportpce-tox-verify-transportpce-master 13:33:25 + START_PACKAGES=/tmp/packages_start.txt 13:33:25 + END_PACKAGES=/tmp/packages_end.txt 13:33:25 + DIFF_PACKAGES=/tmp/packages_diff.txt 13:33:25 + PACKAGES=/tmp/packages_start.txt 13:33:25 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 13:33:25 + PACKAGES=/tmp/packages_end.txt 13:33:25 + case "${OS_FAMILY}" in 13:33:25 + dpkg -l 13:33:25 + grep '^ii' 13:33:25 + '[' -f /tmp/packages_start.txt ']' 13:33:25 + '[' -f /tmp/packages_end.txt ']' 13:33:25 + diff /tmp/packages_start.txt /tmp/packages_end.txt 13:33:25 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 13:33:25 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 13:33:25 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 13:33:25 + exit 0 13:33:25 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins6201874833200577056.sh 13:33:25 ---> capture-instance-metadata.sh 13:33:25 Setup pyenv: 13:33:25 system 13:33:25 3.8.20 13:33:25 3.9.20 13:33:25 3.10.15 13:33:25 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 13:33:25 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-U95I from file:/tmp/.os_lf_venv 13:33:25 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 13:33:28 lf-activate-venv(): INFO: Installing additional packages: lftools 13:33:44 lf-activate-venv(): INFO: Adding /tmp/venv-U95I/bin to PATH 13:33:44 INFO: Running in OpenStack, capturing instance metadata 13:33:44 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins9468960826794154778.sh 13:33:44 provisioning config files... 13:33:45 Could not find credentials [logs] for transportpce-tox-verify-transportpce-master #6164 13:33:45 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-transportpce-master@tmp/config11669515656391834396tmp 13:33:45 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 13:33:45 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 13:33:45 provisioning config files... 13:33:45 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 13:33:45 [EnvInject] - Injecting environment variables from a build step. 13:33:45 [EnvInject] - Injecting as environment variables the properties content 13:33:45 SERVER_ID=logs 13:33:45 13:33:45 [EnvInject] - Variables injected successfully. 13:33:45 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins9796992572158647199.sh 13:33:45 ---> create-netrc.sh 13:33:45 WARN: Log server credential not found. 13:33:45 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins9983883766166659464.sh 13:33:45 ---> python-tools-install.sh 13:33:45 Setup pyenv: 13:33:45 system 13:33:45 3.8.20 13:33:45 3.9.20 13:33:45 3.10.15 13:33:45 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 13:33:45 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-U95I from file:/tmp/.os_lf_venv 13:33:45 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 13:33:47 lf-activate-venv(): INFO: Installing additional packages: lftools 13:33:56 lf-activate-venv(): INFO: Adding /tmp/venv-U95I/bin to PATH 13:33:56 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins9933696368743742917.sh 13:33:56 ---> uv-install.sh 13:33:56 uv 0.12.23 is already installed 13:33:56 uvx 0.12.23 (x86_64-unknown-linux-gnu) 13:33:56 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins1740257127017479618.sh 13:33:56 ---> sudo-logs.sh 13:33:56 Archiving 'sudo' log.. 13:33:56 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins8404830790944853315.sh 13:33:56 ---> job-cost.sh 13:33:56 INFO: Activating Python virtual environment... 13:33:56 Setup pyenv: 13:33:56 system 13:33:56 3.8.20 13:33:56 3.9.20 13:33:56 3.10.15 13:33:56 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 13:33:57 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-U95I from file:/tmp/.os_lf_venv 13:33:57 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 13:33:58 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 13:34:06 lf-activate-venv(): INFO: Adding /tmp/venv-U95I/bin to PATH 13:34:06 INFO: No stack-cost file found 13:34:06 INFO: Instance uptime: 733s 13:34:06 INFO: Fetching instance metadata (attempt 1 of 3)... 13:34:06 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 13:34:06 INFO: Successfully fetched instance metadata 13:34:06 INFO: Instance type: v3-standard-4 13:34:06 INFO: Retrieving pricing info for: v3-standard-4 13:34:06 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 13:34:06 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=733 13:34:06 INFO: Successfully fetched Vexxhost pricing API 13:34:06 INFO: Retrieved cost: 0.11 13:34:06 INFO: Retrieved resource: v3-standard-4 13:34:06 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost 13:34:06 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost.csv 13:34:06 INFO: Successfully archived job cost data 13:34:06 DEBUG: Cost data: transportpce-tox-verify-transportpce-master,6164,2026-10-08 13:34:06,v3-standard-4,733,0.11,0.00,FAILURE 13:34:07 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins18328390295531264856.sh 13:34:07 ---> logs-deploy.sh 13:34:07 Setup pyenv: 13:34:07 system 13:34:07 3.8.20 13:34:07 3.9.20 13:34:07 3.10.15 13:34:07 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 13:34:07 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-U95I from file:/tmp/.os_lf_venv 13:34:07 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 13:34:08 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 13:34:18 lf-activate-venv(): INFO: Adding /tmp/venv-U95I/bin to PATH 13:34:18 WARNING: Nexus logging server not set 13:34:18 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-transportpce-master/6164/ 13:34:18 INFO: archiving logs to S3 13:34:19 ---> uname -a: 13:34:19 Linux prd-ubuntu2204-docker-4c-16g-62935 5.15.0-198-generic #208-Ubuntu SMP Fri Sep 4 10:22:38 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 13:34:19 13:34:19 13:34:19 ---> lscpu: 13:34:19 Architecture: x86_64 13:34:19 CPU op-mode(s): 32-bit, 64-bit 13:34:19 Address sizes: 40 bits physical, 48 bits virtual 13:34:19 Byte Order: Little Endian 13:34:19 CPU(s): 4 13:34:19 On-line CPU(s) list: 0-3 13:34:19 Vendor ID: AuthenticAMD 13:34:19 Model name: AMD EPYC-Rome Processor 13:34:19 CPU family: 23 13:34:19 Model: 49 13:34:19 Thread(s) per core: 1 13:34:19 Core(s) per socket: 1 13:34:19 Socket(s): 4 13:34:19 Stepping: 0 13:34:19 BogoMIPS: 5600.00 13:34:19 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 13:34:19 Virtualization: AMD-V 13:34:19 Hypervisor vendor: KVM 13:34:19 Virtualization type: full 13:34:19 L1d cache: 128 KiB (4 instances) 13:34:19 L1i cache: 128 KiB (4 instances) 13:34:19 L2 cache: 2 MiB (4 instances) 13:34:19 L3 cache: 64 MiB (4 instances) 13:34:19 NUMA node(s): 1 13:34:19 NUMA node0 CPU(s): 0-3 13:34:19 Vulnerability Gather data sampling: Not affected 13:34:19 Vulnerability Indirect target selection: Not affected 13:34:19 Vulnerability Itlb multihit: Not affected 13:34:19 Vulnerability L1tf: Not affected 13:34:19 Vulnerability Mds: Not affected 13:34:19 Vulnerability Meltdown: Not affected 13:34:19 Vulnerability Mmio stale data: Not affected 13:34:19 Vulnerability Reg file data sampling: Not affected 13:34:19 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 13:34:19 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 13:34:19 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 13:34:19 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 13:34:19 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 13:34:19 Vulnerability Srbds: Not affected 13:34:19 Vulnerability Tsa: Not affected 13:34:19 Vulnerability Tsx async abort: Not affected 13:34:19 Vulnerability Vmscape: Not affected 13:34:19 13:34:19 13:34:19 ---> nproc: 13:34:19 4 13:34:19 13:34:19 13:34:19 ---> df -h: 13:34:19 Filesystem Size Used Avail Use% Mounted on 13:34:19 tmpfs 1.6G 1.1M 1.6G 1% /run 13:34:19 /dev/vda1 78G 11G 67G 14% / 13:34:19 tmpfs 7.9G 0 7.9G 0% /dev/shm 13:34:19 tmpfs 5.0M 0 5.0M 0% /run/lock 13:34:19 /dev/vda15 105M 6.1M 99M 6% /boot/efi 13:34:19 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 13:34:19 13:34:19 13:34:19 ---> free -m: 13:34:19 total used free shared buff/cache available 13:34:19 Mem: 15989 736 9824 4 5428 14909 13:34:19 Swap: 1023 0 1023 13:34:19 13:34:19 13:34:19 ---> ip addr: 13:34:19 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 13:34:19 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 13:34:19 inet 127.0.0.1/8 scope host lo 13:34:19 valid_lft forever preferred_lft forever 13:34:19 inet6 ::1/128 scope host 13:34:19 valid_lft forever preferred_lft forever 13:34:19 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 13:34:19 link/ether fa:16:3e:e0:b1:9b brd ff:ff:ff:ff:ff:ff 13:34:19 altname enp0s3 13:34:19 inet 10.30.171.206/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 13:34:19 valid_lft 85662sec preferred_lft 85662sec 13:34:19 inet6 fe80::f816:3eff:fee0:b19b/64 scope link 13:34:19 valid_lft forever preferred_lft forever 13:34:19 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 13:34:19 link/ether 86:16:c8:c2:42:27 brd ff:ff:ff:ff:ff:ff 13:34:19 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 13:34:19 valid_lft forever preferred_lft forever 13:34:19 inet6 fe80::8416:c8ff:fec2:4227/64 scope link 13:34:19 valid_lft forever preferred_lft forever 13:34:19 13:34:19 13:34:19 ---> sar -b -r -n DEV: 13:34:19 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-62935) 10/08/26 _x86_64_ (4 CPU) 13:34:19 13:34:19 13:22:03 LINUX RESTART (4 CPU) 13:34:19 13:34:19 13:34:19 ---> sar -P ALL: 13:34:19 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-62935) 10/08/26 _x86_64_ (4 CPU) 13:34:19 13:34:19 13:22:03 LINUX RESTART (4 CPU) 13:34:19 13:34:19 13:34:19