10:37:57 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/126287 10:37:57 Running as SYSTEM 10:37:57 [EnvInject] - Loading node environment variables. 10:37:57 Building remotely on prd-ubuntu2204-docker-4c-16g-63111 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-transportpce-master 10:37:57 [ssh-agent] Looking for ssh-agent implementation... 10:37:57 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 10:37:57 $ ssh-agent 10:37:57 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXzJRCTo/agent.1570 10:37:57 SSH_AGENT_PID=1572 10:37:57 [ssh-agent] Started. 10:37:58 Running ssh-add (command line suppressed) 10:37:58 Identity added: /w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_10251288374702409997.key (/w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_10251288374702409997.key) 10:37:58 [ssh-agent] Using credentials jenkins (jenkins-ssh) 10:37:58 The recommended git tool is: NONE 10:38:00 using credential jenkins-ssh 10:38:00 Wiping out workspace first. 10:38:00 Cloning the remote Git repository 10:38:00 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 10:38:00 > git init /w/workspace/transportpce-tox-verify-transportpce-master # timeout=10 10:38:00 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 10:38:00 > git --version # timeout=10 10:38:00 > git --version # 'git version 2.34.1' 10:38:00 using GIT_SSH to set credentials jenkins-ssh 10:38:00 Verifying host key using known hosts file, will automatically accept unseen keys 10:38:00 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 10:38:04 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 10:38:04 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 10:38:04 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 10:38:04 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 10:38:04 using GIT_SSH to set credentials jenkins-ssh 10:38:04 Verifying host key using known hosts file, will automatically accept unseen keys 10:38:04 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/87/126287/8 # timeout=10 10:38:04 > git rev-parse 082dc859958c2c772c6ee17e2c82a372315bb8ca^{commit} # timeout=10 10:38:04 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script 10:38:04 Checking out Revision 082dc859958c2c772c6ee17e2c82a372315bb8ca (refs/changes/87/126287/8) 10:38:04 > git config core.sparsecheckout # timeout=10 10:38:04 > git checkout -f 082dc859958c2c772c6ee17e2c82a372315bb8ca # timeout=10 10:38:08 Commit message: "ci: add scheduled stable merge, fix legacy refs" 10:38:08 > git rev-parse FETCH_HEAD^{commit} # timeout=10 10:38:08 > git rev-list --no-walk 778c4831b98f585a845bf3baa723efd596bd713c # timeout=10 10:38:08 > git remote # timeout=10 10:38:08 > git submodule init # timeout=10 10:38:08 > git submodule sync # timeout=10 10:38:08 > git config --get remote.origin.url # timeout=10 10:38:08 > git submodule init # timeout=10 10:38:08 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 10:38:08 ERROR: No submodules found. 10:38:08 provisioning config files... 10:38:08 copy managed file [npmrc] to file:/home/jenkins/.npmrc 10:38:08 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 10:38:08 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins12867284152593910158.sh 10:38:08 ---> python-tools-install.sh 10:38:08 Setup pyenv: 10:38:08 * system (set by /opt/pyenv/version) 10:38:09 * 3.8.20 (set by /opt/pyenv/version) 10:38:09 * 3.9.20 (set by /opt/pyenv/version) 10:38:09 3.10.15 10:38:09 3.11.10 10:38:13 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-BB7z 10:38:13 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 10:38:13 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 10:38:18 lf-activate-venv(): INFO: Installing additional packages: lftools 10:38:42 lf-activate-venv(): INFO: Adding /tmp/venv-BB7z/bin to PATH 10:38:42 Generating Requirements File 10:39:11 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. 10:39:11 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 10:39:12 Python 3.11.10 10:39:12 pip 26.2.1 from /tmp/venv-BB7z/lib/python3.11/site-packages/pip (python 3.11) 10:39:12 aiohappyeyeballs==2.7.1 10:39:12 aiohttp==3.14.4 10:39:12 aiosignal==1.4.0 10:39:12 appdirs==1.4.4 10:39:12 argcomplete==3.7.2 10:39:12 aspy.yaml==1.3.0 10:39:12 attrs==26.1.0 10:39:12 autopage==0.6.0 10:39:12 beautifulsoup4==4.15.0 10:39:12 boto3==1.43.110 10:39:12 botocore==1.43.110 10:39:12 bs4==0.0.2 10:39:12 certifi==2026.7.22 10:39:12 cffi==2.1.1 10:39:12 cfgv==3.5.0 10:39:12 chardet==7.6.0 10:39:12 charset-normalizer==3.5.2 10:39:12 click==8.5.0 10:39:12 cliff==4.16.0 10:39:12 cmd2==4.2.4 10:39:12 cryptography==3.3.2 10:39:12 debtcollector==3.1.0 10:39:12 decorator==5.3.1 10:39:12 defusedxml==0.7.1 10:39:12 Deprecated==1.3.1 10:39:12 distlib==0.4.3 10:39:12 dnspython==2.9.0 10:39:12 docker==7.2.0 10:39:12 dogpile.cache==1.5.0 10:39:12 durationpy==0.11 10:39:12 email-validator==2.3.0 10:39:12 filelock==4.0.12 10:39:12 frozenlist==1.8.0 10:39:12 future==1.0.0 10:39:12 gitdb==4.0.12 10:39:12 GitPython==3.2.0 10:39:12 httplib2==0.30.2 10:39:12 identify==2.6.20 10:39:12 idna==3.20 10:39:12 importlib-resources==1.5.0 10:39:12 iso8601==2.1.0 10:39:12 Jinja2==3.1.6 10:39:12 jmespath==1.1.0 10:39:12 jsonpatch==1.33 10:39:12 jsonpointer==3.2.0 10:39:12 jsonschema==4.26.0 10:39:12 jsonschema-specifications==2025.9.1 10:39:12 keystoneauth1==5.18.0 10:39:12 kubernetes==36.0.3 10:39:12 lftools==0.37.23 10:39:12 lxml==6.1.3 10:39:12 markdown-it-py==4.2.0 10:39:12 MarkupSafe==3.0.4 10:39:12 mdurl==0.1.2 10:39:12 msgpack==1.2.3 10:39:12 multi_key_dict==2.0.3 10:39:12 multidict==6.9.1 10:39:12 munch==4.0.0 10:39:12 netaddr==1.3.0 10:39:12 niet==1.4.2 10:39:12 nodeenv==1.11.0 10:39:12 oauth2client==4.1.3 10:39:12 oauthlib==4.0.0 10:39:12 openstacksdk==4.21.0 10:39:12 os-service-types==1.9.0 10:39:12 osc-lib==4.7.0 10:39:12 oslo.config==10.7.0 10:39:12 oslo.context==6.5.0 10:39:12 oslo.i18n==6.9.0 10:39:12 oslo.log==8.3.2 10:39:12 oslo.serialization==5.11.0 10:39:12 oslo.utils==10.2.0 10:39:12 packaging==26.3 10:39:12 pbr==7.1.3 10:39:12 platformdirs==4.12.4 10:39:12 prettytable==3.18.0 10:39:12 prompt_toolkit==3.0.53 10:39:12 propcache==0.5.4 10:39:12 psutil==7.2.2 10:39:12 pyasn1==0.6.4 10:39:12 pyasn1_modules==0.4.2 10:39:12 pycparser==3.1 10:39:12 pygerrit2==2.0.15 10:39:12 PyGithub==2.10.0 10:39:12 Pygments==2.21.0 10:39:12 PyJWT==2.15.1 10:39:12 PyNaCl==1.6.2 10:39:12 pyparsing==2.4.7 10:39:12 pyperclip==1.11.0 10:39:12 pyrsistent==0.20.0 10:39:12 python-dateutil==2.9.0.post0 10:39:12 python-discovery==1.6.1 10:39:12 python-heatclient==5.3.0 10:39:12 python-jenkins==1.8.3 10:39:12 python-keystoneclient==6.0.0 10:39:12 python-magnumclient==5.0.0 10:39:12 python-manilaclient==6.3.0 10:39:12 python-openstackclient==10.4.0 10:39:12 python-swiftclient==4.11.0 10:39:12 PyYAML==6.0.3 10:39:12 referencing==0.37.0 10:39:12 requests==2.34.2 10:39:12 requests-oauthlib==2.0.0 10:39:12 rfc3986==2.0.0 10:39:12 rich==15.0.0 10:39:12 rich-argparse==1.8.0 10:39:12 rpds-py==2026.9.1 10:39:12 rsa==4.9.1 10:39:12 ruamel.yaml==0.19.1 10:39:12 ruamel.yaml.clib==0.2.15 10:39:12 s3transfer==0.19.2 10:39:12 simplejson==4.2.0 10:39:12 six==1.17.0 10:39:12 smmap==5.0.3 10:39:12 soupsieve==2.10 10:39:12 stevedore==5.9.1 10:39:12 tabulate==0.10.0 10:39:12 toml==0.10.2 10:39:12 tomlkit==0.15.1 10:39:12 tqdm==4.70.1 10:39:12 typing_extensions==4.16.0 10:39:12 urllib3==1.26.20 10:39:12 virtualenv==21.14.6 10:39:12 wcwidth==0.9.2 10:39:12 websocket-client==1.9.2 10:39:12 wrapt==2.5.0 10:39:12 xdg==6.0.0 10:39:12 xmltodict==1.0.4 10:39:12 yarl==1.25.1 10:39:12 yq==4.4.0 10:39:12 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins808157930434741789.sh 10:39:12 ---> uv-install.sh 10:39:12 Installing uv/uvx (latest) using shell installer 10:39:12 2026-10-09 10:39:12 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71308/71308] -> "/tmp/uv-install-EfECKD.sh" [1] 10:39:12 downloading uv 0.12.24 x86_64-unknown-linux-gnu 10:39:13 installing to /home/jenkins/.local/bin 10:39:13 uv 10:39:13 uvx 10:39:13 everything's installed! 10:39:13 10:39:13 To add $HOME/.local/bin to your PATH, either restart your shell or run: 10:39:13 10:39:13 source $HOME/.local/bin/env (sh, bash, zsh) 10:39:13 source $HOME/.local/bin/env.fish (fish) 10:39:13 Adding install location to PATH 10:39:13 ---> Validating uv/uvx install 10:39:13 uvx 0.12.24 (x86_64-unknown-linux-gnu) 10:39:13 [EnvInject] - Injecting environment variables from a build step. 10:39:13 [EnvInject] - Injecting as environment variables the properties content 10:39:13 PYTHON=python3 10:39:13 10:39:13 [EnvInject] - Variables injected successfully. 10:39:13 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins3794715222588682892.sh 10:39:13 ---> tox-install.sh 10:39:13 + source /home/jenkins/lf-env.sh 10:39:13 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 10:39:13 ++ mktemp -d /tmp/venv-XXXX 10:39:13 + lf_venv=/tmp/venv-N533 10:39:13 + local venv_file=/tmp/.os_lf_venv 10:39:13 + local python=python3 10:39:13 + local options 10:39:13 + local set_path=true 10:39:13 + local install_args= 10:39:13 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 10:39:13 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 10:39:13 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 10:39:13 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 10:39:13 + true 10:39:13 + case $1 in 10:39:13 + venv_file=/tmp/.toxenv 10:39:13 + shift 2 10:39:13 + true 10:39:13 + case $1 in 10:39:13 + shift 10:39:13 + break 10:39:13 + case $python in 10:39:13 + local pkg_list= 10:39:13 + [[ -d /opt/pyenv ]] 10:39:13 + echo 'Setup pyenv:' 10:39:13 Setup pyenv: 10:39:13 + export PYENV_ROOT=/opt/pyenv 10:39:13 + PYENV_ROOT=/opt/pyenv 10:39:13 + export PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:39:13 + PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:39:13 + pyenv versions 10:39:13 system 10:39:13 3.8.20 10:39:13 3.9.20 10:39:13 3.10.15 10:39:13 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 10:39:13 + command -v pyenv 10:39:13 ++ pyenv init - --no-rehash 10:39:13 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 10:39:13 for i in ${!paths[@]}; do 10:39:13 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 10:39:13 fi; done; 10:39:13 echo "${paths[*]}"'\'')" 10:39:13 export PATH="/opt/pyenv/shims:${PATH}" 10:39:13 export PYENV_SHELL=bash 10:39:13 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 10:39:13 pyenv() { 10:39:13 local command 10:39:13 command="${1:-}" 10:39:13 if [ "$#" -gt 0 ]; then 10:39:13 shift 10:39:13 fi 10:39:13 10:39:13 case "$command" in 10:39:13 rehash|shell) 10:39:13 eval "$(pyenv "sh-$command" "$@")" 10:39:13 ;; 10:39:13 *) 10:39:13 command pyenv "$command" "$@" 10:39:13 ;; 10:39:13 esac 10:39:13 }' 10:39:13 +++ bash --norc -ec 'IFS=:; paths=($PATH); 10:39:13 for i in ${!paths[@]}; do 10:39:13 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 10:39:13 fi; done; 10:39:13 echo "${paths[*]}"' 10:39:13 ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:39:13 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:39:13 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:39:13 ++ export PYENV_SHELL=bash 10:39:13 ++ PYENV_SHELL=bash 10:39:13 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 10:39:13 +++ complete -F _pyenv pyenv 10:39:13 ++ lf-pyver python3 10:39:13 ++ local py_version_xy=python3 10:39:13 ++ local py_version_xyz= 10:39:13 ++ pyenv versions 10:39:13 ++ local command 10:39:13 ++ command=versions 10:39:13 ++ '[' 1 -gt 0 ']' 10:39:13 ++ shift 10:39:13 ++ case "$command" in 10:39:13 ++ command pyenv versions 10:39:13 ++ sed 's/^[ *]* //' 10:39:13 ++ grep -E '^[0-9.]*[0-9]$' 10:39:13 ++ awk '{ print $1 }' 10:39:14 ++ [[ ! -s /tmp/.pyenv_versions ]] 10:39:14 +++ grep '^3' /tmp/.pyenv_versions 10:39:14 +++ sort -V 10:39:14 +++ tail -n 1 10:39:14 ++ py_version_xyz=3.11.10 10:39:14 ++ [[ -z 3.11.10 ]] 10:39:14 ++ echo 3.11.10 10:39:14 ++ return 0 10:39:14 + pyenv local 3.11.10 10:39:14 + local command 10:39:14 + command=local 10:39:14 + '[' 2 -gt 0 ']' 10:39:14 + shift 10:39:14 + case "$command" in 10:39:14 + command pyenv local 3.11.10 10:39:14 + for arg in "$@" 10:39:14 + case $arg in 10:39:14 + pkg_list+='tox ' 10:39:14 + for arg in "$@" 10:39:14 + case $arg in 10:39:14 + pkg_list+='virtualenv ' 10:39:14 + for arg in "$@" 10:39:14 + case $arg in 10:39:14 + pkg_list+='urllib3~=1.26.15 ' 10:39:14 + [[ -f /tmp/.toxenv ]] 10:39:14 + [[ ! -f /tmp/.toxenv ]] 10:39:14 + [[ -n '' ]] 10:39:14 + python3 -m venv /tmp/venv-N533 10:39:18 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-N533' 10:39:18 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-N533 10:39:18 + echo /tmp/venv-N533 10:39:18 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 10:39:18 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 10:39:18 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 10:39:18 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 10:39:18 + local 'pip_opts=--upgrade --quiet' 10:39:18 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 10:39:18 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 10:39:18 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 10:39:18 + [[ -n '' ]] 10:39:18 + [[ -n '' ]] 10:39:18 + lf-venv-pip-install /tmp/venv-N533/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 10:39:18 + local venv_python=/tmp/venv-N533/bin/python3 10:39:18 + shift 10:39:18 + local upstream=https://pypi.org/simple 10:39:18 + /tmp/venv-N533/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 10:39:21 + return 0 10:39:21 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 10:39:21 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 10:39:21 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 10:39:21 + lf-venv-pip-install /tmp/venv-N533/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 10:39:21 + local venv_python=/tmp/venv-N533/bin/python3 10:39:21 + shift 10:39:21 + local upstream=https://pypi.org/simple 10:39:21 + /tmp/venv-N533/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 10:39:24 + return 0 10:39:24 + type python3 10:39:24 + true 10:39:24 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-N533/bin to PATH' 10:39:24 lf-activate-venv(): INFO: Adding /tmp/venv-N533/bin to PATH 10:39:24 + PATH=/tmp/venv-N533/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:39:24 + return 0 10:39:24 + python3 --version 10:39:24 Python 3.11.10 10:39:24 + python3 -m pip --version 10:39:24 pip 26.2.1 from /tmp/venv-N533/lib/python3.11/site-packages/pip (python 3.11) 10:39:24 + python3 -m pip freeze 10:39:24 cachetools==7.2.1 10:39:24 colorama==0.4.6 10:39:24 distlib==0.4.3 10:39:24 filelock==4.0.12 10:39:24 packaging==26.3 10:39:24 platformdirs==4.12.4 10:39:24 pluggy==1.6.0 10:39:24 pyproject-api==1.11.4 10:39:24 python-discovery==1.6.1 10:39:24 tomli_w==1.2.0 10:39:24 tox==4.64.10 10:39:24 typing_extensions==4.16.0 10:39:24 urllib3==1.26.20 10:39:24 virtualenv==21.14.6 10:39:24 [transportpce-tox-verify-transportpce-master] $ /bin/sh -xe /tmp/jenkins1394269243683635693.sh 10:39:24 [EnvInject] - Injecting environment variables from a build step. 10:39:24 [EnvInject] - Injecting as environment variables the properties content 10:39:24 PARALLEL=True 10:39:24 10:39:24 [EnvInject] - Variables injected successfully. 10:39:24 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins16109675001194444848.sh 10:39:24 ---> tox-run.sh 10:39:24 + PATH=/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:39:24 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 10:39:24 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 10:39:24 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 10:39:24 + cd /w/workspace/transportpce-tox-verify-transportpce-master/. 10:39:24 + source /home/jenkins/lf-env.sh 10:39:24 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 10:39:24 ++ mktemp -d /tmp/venv-XXXX 10:39:24 + lf_venv=/tmp/venv-8AMG 10:39:24 + local venv_file=/tmp/.os_lf_venv 10:39:24 + local python=python3 10:39:24 + local options 10:39:24 + local set_path=true 10:39:24 + local install_args= 10:39:24 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 10:39:24 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 10:39:24 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 10:39:24 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 10:39:24 + true 10:39:24 + case $1 in 10:39:24 + venv_file=/tmp/.toxenv 10:39:24 + shift 2 10:39:24 + true 10:39:24 + case $1 in 10:39:24 + shift 10:39:24 + break 10:39:24 + case $python in 10:39:24 + local pkg_list= 10:39:24 + [[ -d /opt/pyenv ]] 10:39:24 + echo 'Setup pyenv:' 10:39:24 Setup pyenv: 10:39:24 + export PYENV_ROOT=/opt/pyenv 10:39:24 + PYENV_ROOT=/opt/pyenv 10:39:24 + export PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:39:24 + PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:39:24 + pyenv versions 10:39:24 system 10:39:24 3.8.20 10:39:24 3.9.20 10:39:24 3.10.15 10:39:24 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 10:39:24 + command -v pyenv 10:39:24 ++ pyenv init - --no-rehash 10:39:24 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 10:39:24 for i in ${!paths[@]}; do 10:39:24 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 10:39:24 fi; done; 10:39:24 echo "${paths[*]}"'\'')" 10:39:24 export PATH="/opt/pyenv/shims:${PATH}" 10:39:24 export PYENV_SHELL=bash 10:39:24 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 10:39:24 pyenv() { 10:39:24 local command 10:39:24 command="${1:-}" 10:39:24 if [ "$#" -gt 0 ]; then 10:39:24 shift 10:39:24 fi 10:39:24 10:39:24 case "$command" in 10:39:24 rehash|shell) 10:39:24 eval "$(pyenv "sh-$command" "$@")" 10:39:24 ;; 10:39:24 *) 10:39:24 command pyenv "$command" "$@" 10:39:24 ;; 10:39:24 esac 10:39:24 }' 10:39:24 +++ bash --norc -ec 'IFS=:; paths=($PATH); 10:39:24 for i in ${!paths[@]}; do 10:39:24 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 10:39:24 fi; done; 10:39:24 echo "${paths[*]}"' 10:39:24 ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:39:24 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:39:24 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:39:24 ++ export PYENV_SHELL=bash 10:39:24 ++ PYENV_SHELL=bash 10:39:24 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 10:39:24 +++ complete -F _pyenv pyenv 10:39:24 ++ lf-pyver python3 10:39:24 ++ local py_version_xy=python3 10:39:24 ++ local py_version_xyz= 10:39:24 ++ pyenv versions 10:39:24 ++ local command 10:39:24 ++ command=versions 10:39:24 ++ '[' 1 -gt 0 ']' 10:39:24 ++ shift 10:39:24 ++ case "$command" in 10:39:24 ++ command pyenv versions 10:39:24 ++ sed 's/^[ *]* //' 10:39:24 ++ awk '{ print $1 }' 10:39:24 ++ grep -E '^[0-9.]*[0-9]$' 10:39:24 ++ [[ ! -s /tmp/.pyenv_versions ]] 10:39:24 +++ grep '^3' /tmp/.pyenv_versions 10:39:24 +++ sort -V 10:39:24 +++ tail -n 1 10:39:24 ++ py_version_xyz=3.11.10 10:39:24 ++ [[ -z 3.11.10 ]] 10:39:24 ++ echo 3.11.10 10:39:24 ++ return 0 10:39:24 + pyenv local 3.11.10 10:39:24 + local command 10:39:24 + command=local 10:39:24 + '[' 2 -gt 0 ']' 10:39:24 + shift 10:39:24 + case "$command" in 10:39:24 + command pyenv local 3.11.10 10:39:24 + for arg in "$@" 10:39:24 + case $arg in 10:39:24 + pkg_list+='tox ' 10:39:24 + for arg in "$@" 10:39:24 + case $arg in 10:39:24 + pkg_list+='virtualenv ' 10:39:24 + for arg in "$@" 10:39:24 + case $arg in 10:39:24 + pkg_list+='urllib3~=1.26.15 ' 10:39:24 + [[ -f /tmp/.toxenv ]] 10:39:24 ++ cat /tmp/.toxenv 10:39:24 + lf_venv=/tmp/venv-N533 10:39:24 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-N533 from' file:/tmp/.toxenv 10:39:24 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-N533 from file:/tmp/.toxenv 10:39:24 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 10:39:24 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 10:39:24 + local 'pip_opts=--upgrade --quiet' 10:39:24 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 10:39:24 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 10:39:24 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 10:39:24 + [[ -n '' ]] 10:39:24 + [[ -n '' ]] 10:39:24 + lf-venv-pip-install /tmp/venv-N533/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 10:39:24 + local venv_python=/tmp/venv-N533/bin/python3 10:39:24 + shift 10:39:24 + local upstream=https://pypi.org/simple 10:39:24 + /tmp/venv-N533/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 10:39:25 + return 0 10:39:25 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 10:39:25 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 10:39:25 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 10:39:25 + lf-venv-pip-install /tmp/venv-N533/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 10:39:25 + local venv_python=/tmp/venv-N533/bin/python3 10:39:25 + shift 10:39:25 + local upstream=https://pypi.org/simple 10:39:25 + /tmp/venv-N533/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 10:39:26 + return 0 10:39:26 + type python3 10:39:26 + true 10:39:26 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-N533/bin to PATH' 10:39:26 lf-activate-venv(): INFO: Adding /tmp/venv-N533/bin to PATH 10:39:26 + PATH=/tmp/venv-N533/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:39:26 + return 0 10:39:26 + [[ -d /opt/pyenv ]] 10:39:26 + echo '---> Setting up pyenv' 10:39:26 ---> Setting up pyenv 10:39:26 + export PYENV_ROOT=/opt/pyenv 10:39:26 + PYENV_ROOT=/opt/pyenv 10:39:26 + export PATH=/opt/pyenv/bin:/tmp/venv-N533/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:39:26 + PATH=/opt/pyenv/bin:/tmp/venv-N533/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:39:26 ++ pwd 10:39:26 + PYTHONPATH=/w/workspace/transportpce-tox-verify-transportpce-master 10:39:26 + export PYTHONPATH 10:39:26 + export TOX_TESTENV_PASSENV=PYTHONPATH 10:39:26 + TOX_TESTENV_PASSENV=PYTHONPATH 10:39:26 + tox --version 10:39:27 4.64.10 from /tmp/venv-N533/lib/python3.11/site-packages/tox/__init__.py 10:39:27 + PARALLEL=True 10:39:27 + TOX_OPTIONS_LIST= 10:39:27 + [[ -n '' ]] 10:39:27 + case ${PARALLEL,,} in 10:39:27 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 10:39:27 + tox --parallel auto --parallel-live 10:39:27 + tee -a /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tox.log 10:39:28 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 10:39:28 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 10:39:28 checkbashisms: freeze> python -m pip freeze --all 10:39:28 docs: install_deps> python -I -m pip install -r docs/requirements.txt 10:39:29 checkbashisms: pip==26.2.1,setuptools==84.0.0 10:39:29 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 10:39:29 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)' 10:39:29 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 10:39:30 checkbashisms: OK ✔ in 2.92 seconds 10:39:30 pre-commit: install_deps> python -I -m pip install pre-commit 10:39:32 pre-commit: freeze> python -m pip freeze --all 10:39:33 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.6 10:39:33 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 10:39:33 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)' 10:39:33 /usr/bin/cpan 10:39:33 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure 10:39:33 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 10:39:34 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 10:39:34 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 10:39:35 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 10:39:35 [INFO] Initializing environment for https://github.com/hhatto/autopep8. 10:39:35 buildcontroller: freeze> python -m pip freeze --all 10:39:35 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 10:39:35 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 10:39:35 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh 10:39:35 + update-java-alternatives -l 10:39:35 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 10:39:35 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 10:39:35 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 10:39:35 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 10:39:36 update-alternatives: error: no alternatives for jaotc 10:39:36 update-alternatives: error: no alternatives for rmic 10:39:36 + java -version 10:39:36 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 10:39:36 + JAVA_VER=21.0 10:39:36 + echo 21.0 10:39:36 21.0 10:39:36 + + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 10:39:36 javac -version 10:39:36 + JAVAC_VER=21.0 10:39:36 + echo 21.0 10:39:36 21.0 10:39:36 No java21 or newer available 10:39:36 + [ 21.0 -ge 21 ] 10:39:36 ./installMavenUbuntu.sh: 14: [: Illegal number: 21.0 10:39:36 + echo No java21 or newer available 10:39:36 + exit 1 10:39:36 buildcontroller: exit 1 (0.61 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh pid=2826 10:39:36 buildcontroller: FAIL ✖ in 9.13 seconds 10:39:36 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 10:39:36 [INFO] Initializing environment for https://github.com/koalaman/shellcheck-precommit. 10:39:36 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier. 10:39:37 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@4.0.0-alpha.8. 10:39:37 [INFO] Initializing environment for https://github.com/adrienverge/yamllint. 10:39:38 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 10:39:38 [INFO] Once installed this environment will be reused. 10:39:38 [INFO] This may take a few minutes... 10:39:40 pylint: freeze> python -m pip freeze --all 10:39:40 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 10:39:40 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}$' '{}' + 10:39:42 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 10:39:42 [INFO] Once installed this environment will be reused. 10:39:42 [INFO] This may take a few minutes... 10:39:42 docs-linkcheck: freeze> python -m pip freeze --all 10:39:42 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 10:39:42 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 10:39:42 docs: freeze> python -m pip freeze --all 10:39:43 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 10:39:43 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 10:39:45 docs: OK ✔ in 18.19 seconds 10:39:45 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 10:39:47 docs-linkcheck: OK ✔ in 19.88 seconds 10:39:47 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 10:39:47 [INFO] Installing environment for https://github.com/hhatto/autopep8. 10:39:47 [INFO] Once installed this environment will be reused. 10:39:47 [INFO] This may take a few minutes... 10:39:51 [INFO] Installing environment for https://github.com/perltidy/perltidy. 10:39:51 [INFO] Once installed this environment will be reused. 10:39:51 [INFO] This may take a few minutes... 10:39:52 build_karaf_tests221: freeze> python -m pip freeze --all 10:39:52 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 10:39:52 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 10:39:52 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf221 10:39:52 ./build_karaf_for_tests.sh: 22: mvn: not found 10:39:52 build karaf in karaf221 with ./karaf221.env 10:39:52 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 10:39:52 build_karaf_tests221: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3339 10:39:52 build_karaf_tests221: FAIL ✖ in 7.09 seconds 10:39:52 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 10:39:53 build_karaf_tests71: freeze> python -m pip freeze --all 10:39:54 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 10:39:54 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 10:39:54 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf71 10:39:54 ./build_karaf_for_tests.sh: 22: mvn: not found 10:39:54 build karaf in karaf71 with ./karaf71.env 10:39:54 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 10:39:54 build_karaf_tests71: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3362 10:39:54 build_karaf_tests71: FAIL ✖ in 6.9 seconds 10:39:54 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 10:39:57 ************* Module 2.2.1.test12_end2end 10:39:57 transportpce_tests/2.2.1/test12_end2end.py:435:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 10:39:57 ************* Module common.test_utils 10:39:57 transportpce_tests/common/test_utils.py:532:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 10:39:57 transportpce_tests/common/test_utils.py:555:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 10:39:57 transportpce_tests/common/test_utils.py:581:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 10:39:57 transportpce_tests/common/test_utils.py:617:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 10:39:57 transportpce_tests/common/test_utils.py:635:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 10:39:57 transportpce_tests/common/test_utils.py:666:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 10:39:57 transportpce_tests/common/test_utils.py:687:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 10:39:57 10:39:57 ----------------------------------- 10:39:57 Your code has been rated at 9.99/10 10:39:57 10:39:58 pylint: exit 1 (17.62 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=3224 10:39:58 pylint: FAIL ✖ in 21.98 seconds 10:39:58 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 10:39:59 build_karaf_tests200: freeze> python -m pip freeze --all 10:39:59 [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier. 10:39:59 [INFO] Once installed this environment will be reused. 10:39:59 [INFO] This may take a few minutes... 10:39:59 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 10:39:59 build_karaf_tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 10:39:59 build karaf in karafoc200 with ./karafoc200.env 10:39:59 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karafoc200 10:39:59 ./build_karaf_for_tests.sh: 22: mvn: not found 10:39:59 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 10:39:59 build_karaf_tests200: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3492 10:39:59 build_karaf_tests200: FAIL ✖ in 6.84 seconds 10:39:59 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 10:40:00 buildlighty: freeze> python -m pip freeze --all 10:40:01 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 10:40:01 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh 10:40:01 ./build.sh: 7: mvn: not found 10:40:01 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 10:40:01 buildlighty: exit 9 (0.01 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh pid=3603 10:40:03 [INFO] Installing environment for https://github.com/adrienverge/yamllint. 10:40:03 [INFO] Once installed this environment will be reused. 10:40:03 [INFO] This may take a few minutes... 10:40:05 buildlighty: FAIL ✖ in 7.04 seconds 10:40:05 sims: freeze> python -m pip freeze --all 10:40:06 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 10:40:06 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh 10:40:06 Using lighynode version 22.1.0.7 10:40:06 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 10:40:07 trim trailing whitespace.................................................Passed 10:40:07 fix end of files.........................................................Passed 10:40:07 check for added large files..............................................Passed 10:40:07 check for merge conflicts................................................Passed 10:40:07 check for case conflicts.................................................Passed 10:40:07 check json...............................................................Passed 10:40:08 mixed line ending........................................................Passed 10:40:08 Tabs remover.............................................................Passed 10:40:08 autopep8.................................................................Passed 10:40:10 perltidy.................................................................Passed 10:40:10 ShellCheck v0.11.0.......................................................Passed 10:40:16 prettier.................................................................Passed 10:40:17 yamllint.................................................................Passed 10:40:17 sims: OK ✔ in 11.01 seconds 10:40:17 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual 10:40:18 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 10:40:18 [INFO] Once installed this environment will be reused. 10:40:18 [INFO] This may take a few minutes... 10:40:27 gitlint..................................................................Passed 10:40:46 pre-commit: OK ✔ in 57.14 seconds 10:40:46 testsPCE: freeze> python -m pip freeze --all 10:40:46 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 10:40:46 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce 10:40:46 pytest -q transportpce_tests/pce/test01_pce.py 10:42:47 EEEEEEEEEEEEEEEEEEEE [100%] 10:42:50 ==================================== ERRORS ==================================== 10:42:50 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 10:42:50 10:42:50 cls = 10:42:50 10:42:50 @classmethod 10:42:50 def setUpClass(cls): 10:42:50 # pylint: disable=bare-except 10:42:50 sample_files_parsed = False 10:42:50 time.sleep(20) 10:42:50 try: 10:42:50 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 10:42:50 "..", "..", "sample_configs", "honeynode-topo.json") 10:42:50 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 10:42:50 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 10:42:50 10:42:50 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 10:42:50 "..", "..", "sample_configs", "NW-simple-topology.json") 10:42:50 10:42:50 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 10:42:50 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 10:42:50 10:42:50 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 10:42:50 "..", "..", "sample_configs", "NW-for-test-5-4.json") 10:42:50 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 10:42:50 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 10:42:50 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 10:42:50 "..", "..", "sample_configs", "pce_portmapping_221.json") 10:42:50 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 10:42:50 cls.port_mapping_data = port_mapping.read() 10:42:50 sample_files_parsed = True 10:42:50 except PermissionError as err: 10:42:50 print("Permission Error when trying to read sample files\n", err) 10:42:50 sys.exit(2) 10:42:50 except FileNotFoundError as err: 10:42:50 print("File Not found Error when trying to read sample files\n", err) 10:42:50 sys.exit(2) 10:42:50 except: 10:42:50 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 10:42:50 sys.exit(2) 10:42:50 finally: 10:42:50 if sample_files_parsed: 10:42:50 print("sample files content loaded") 10:42:50 10:42:50 > cls.processes = test_utils.start_tpce() 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 10:42:50 transportpce_tests/pce/test01_pce.py:93: 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 10:42:50 def start_tpce(): 10:42:50 if 'NO_ODL_STARTUP' in os.environ: 10:42:50 print('No OpenDaylight instance to start!') 10:42:50 return [] 10:42:50 print('starting OpenDaylight...') 10:42:50 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 10:42:50 process = start_lighty() 10:42:50 else: 10:42:50 process = start_karaf() 10:42:50 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 10:42:50 print('OpenDaylight started !') 10:42:50 else: 10:42:50 print('OpenDaylight failed to start !') 10:42:50 shutdown_process(process) 10:42:50 for pid in process_list: 10:42:50 shutdown_process(pid) 10:42:50 > sys.exit(1) 10:42:50 E SystemExit: 1 10:42:50 10:42:50 transportpce_tests/common/test_utils.py:234: SystemExit 10:42:50 ---------------------------- Captured stdout setup ----------------------------- 10:42:50 sample files content loaded 10:42:50 starting OpenDaylight... 10:42:50 starting KARAF (karaf) TransportPCE build... 10:42:50 Pattern not found after 100 seconds! OpenDaylight failed to start ! 10:42:50 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 10:42:50 10:42:50 cls = 10:42:50 func = . at 0x7f596a67b380> 10:42:50 when = 'setup' 10:42:50 reraise = (, ) 10:42:50 10:42:50 @classmethod 10:42:50 def from_call( 10:42:50 cls, 10:42:50 func: Callable[[], TResult], 10:42:50 when: Literal["collect", "setup", "call", "teardown"], 10:42:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:42:50 ) -> CallInfo[TResult]: 10:42:50 """Call func, wrapping the result in a CallInfo. 10:42:50 10:42:50 :param func: 10:42:50 The function to call. Called without arguments. 10:42:50 :type func: Callable[[], _pytest.runner.TResult] 10:42:50 :param when: 10:42:50 The phase in which the function is called. 10:42:50 :param reraise: 10:42:50 Exception or exceptions that shall propagate if raised by the 10:42:50 function, instead of being wrapped in the CallInfo. 10:42:50 """ 10:42:50 excinfo = None 10:42:50 instant = timing.Instant() 10:42:50 try: 10:42:50 > result: TResult | None = func() 10:42:50 ^^^^^^ 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:42:50 lambda: runtest_hook(item=item, **kwds), 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:42:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:42:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:42:50 yield 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:42:50 return (yield) 10:42:50 ^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:42:50 item.session._setupstate.setup(item) 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:42:50 col.setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:42:50 super().setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:42:50 self._request._fillfixtures() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:42:50 item.funcargs[argname] = self.getfixturevalue(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:42:50 fixturedef = self._get_active_fixturedef(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:42:50 fixturedef.execute(request=subrequest) 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 10:42:50 self = 10:42:50 request = > 10:42:50 10:42:50 def execute(self, request: SubRequest) -> FixtureValue: 10:42:50 """Return the value of this fixture, executing it if not cached.""" 10:42:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:42:50 # This needs to be done before checking if we have a cached value, since 10:42:50 # if a dependent fixture has their cache invalidated, e.g. due to 10:42:50 # parametrization, they finalize themselves and fixtures depending on it 10:42:50 # (which will likely include this fixture) setting `self.cached_result = None`. 10:42:50 # See #4871 10:42:50 requested_fixtures_that_should_finalize_us = [] 10:42:50 for argname in self.argnames: 10:42:50 fixturedef = request._get_active_fixturedef(argname) 10:42:50 # Saves requested fixtures in a list so we later can add our finalizer 10:42:50 # to them, ensuring that if a requested fixture gets torn down we get torn 10:42:50 # down first. This is generally handled by SetupState, but still currently 10:42:50 # needed when this fixture is not parametrized but depends on a parametrized 10:42:50 # fixture. 10:42:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:42:50 10:42:50 # Check for (and return) cached value/exception. 10:42:50 if self.cached_result is not None: 10:42:50 request_cache_key = self.cache_key(request) 10:42:50 cache_key = self.cached_result[1] 10:42:50 try: 10:42:50 # Attempt to make a normal == check: this might fail for objects 10:42:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:42:50 cache_hit = bool(request_cache_key == cache_key) 10:42:50 except (ValueError, RuntimeError): 10:42:50 # If the comparison raises, use 'is' as fallback. 10:42:50 cache_hit = request_cache_key is cache_key 10:42:50 10:42:50 if cache_hit: 10:42:50 if self.cached_result[2] is not None: 10:42:50 exc, exc_tb = self.cached_result[2] 10:42:50 raise exc.with_traceback(exc_tb) 10:42:50 else: 10:42:50 return self.cached_result[0] 10:42:50 # We have a previous but differently parametrized fixture instance 10:42:50 # so we need to tear it down before creating a new one. 10:42:50 self.finish(request) 10:42:50 assert self.cached_result is None 10:42:50 10:42:50 # Add finalizer to requested fixtures we saved previously. 10:42:50 # We make sure to do this after checking for cached value to avoid 10:42:50 # adding our finalizer multiple times. (#12135) 10:42:50 finalizer = functools.partial(self.finish, request=request) 10:42:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:42:50 parent_fixture.addfinalizer(finalizer) 10:42:50 10:42:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:42:50 # which is executed last. 10:42:50 > assert not self._finalizers 10:42:50 ^^^^^^^^^^^^^^^^^^^^ 10:42:50 E AssertionError 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:42:50 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 10:42:50 10:42:50 cls = 10:42:50 func = . at 0x7f596a68fc40> 10:42:50 when = 'setup' 10:42:50 reraise = (, ) 10:42:50 10:42:50 @classmethod 10:42:50 def from_call( 10:42:50 cls, 10:42:50 func: Callable[[], TResult], 10:42:50 when: Literal["collect", "setup", "call", "teardown"], 10:42:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:42:50 ) -> CallInfo[TResult]: 10:42:50 """Call func, wrapping the result in a CallInfo. 10:42:50 10:42:50 :param func: 10:42:50 The function to call. Called without arguments. 10:42:50 :type func: Callable[[], _pytest.runner.TResult] 10:42:50 :param when: 10:42:50 The phase in which the function is called. 10:42:50 :param reraise: 10:42:50 Exception or exceptions that shall propagate if raised by the 10:42:50 function, instead of being wrapped in the CallInfo. 10:42:50 """ 10:42:50 excinfo = None 10:42:50 instant = timing.Instant() 10:42:50 try: 10:42:50 > result: TResult | None = func() 10:42:50 ^^^^^^ 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:42:50 lambda: runtest_hook(item=item, **kwds), 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:42:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:42:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:42:50 yield 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:42:50 return (yield) 10:42:50 ^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:42:50 item.session._setupstate.setup(item) 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:42:50 col.setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:42:50 super().setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:42:50 self._request._fillfixtures() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:42:50 item.funcargs[argname] = self.getfixturevalue(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:42:50 fixturedef = self._get_active_fixturedef(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:42:50 fixturedef.execute(request=subrequest) 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 10:42:50 self = 10:42:50 request = > 10:42:50 10:42:50 def execute(self, request: SubRequest) -> FixtureValue: 10:42:50 """Return the value of this fixture, executing it if not cached.""" 10:42:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:42:50 # This needs to be done before checking if we have a cached value, since 10:42:50 # if a dependent fixture has their cache invalidated, e.g. due to 10:42:50 # parametrization, they finalize themselves and fixtures depending on it 10:42:50 # (which will likely include this fixture) setting `self.cached_result = None`. 10:42:50 # See #4871 10:42:50 requested_fixtures_that_should_finalize_us = [] 10:42:50 for argname in self.argnames: 10:42:50 fixturedef = request._get_active_fixturedef(argname) 10:42:50 # Saves requested fixtures in a list so we later can add our finalizer 10:42:50 # to them, ensuring that if a requested fixture gets torn down we get torn 10:42:50 # down first. This is generally handled by SetupState, but still currently 10:42:50 # needed when this fixture is not parametrized but depends on a parametrized 10:42:50 # fixture. 10:42:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:42:50 10:42:50 # Check for (and return) cached value/exception. 10:42:50 if self.cached_result is not None: 10:42:50 request_cache_key = self.cache_key(request) 10:42:50 cache_key = self.cached_result[1] 10:42:50 try: 10:42:50 # Attempt to make a normal == check: this might fail for objects 10:42:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:42:50 cache_hit = bool(request_cache_key == cache_key) 10:42:50 except (ValueError, RuntimeError): 10:42:50 # If the comparison raises, use 'is' as fallback. 10:42:50 cache_hit = request_cache_key is cache_key 10:42:50 10:42:50 if cache_hit: 10:42:50 if self.cached_result[2] is not None: 10:42:50 exc, exc_tb = self.cached_result[2] 10:42:50 raise exc.with_traceback(exc_tb) 10:42:50 else: 10:42:50 return self.cached_result[0] 10:42:50 # We have a previous but differently parametrized fixture instance 10:42:50 # so we need to tear it down before creating a new one. 10:42:50 self.finish(request) 10:42:50 assert self.cached_result is None 10:42:50 10:42:50 # Add finalizer to requested fixtures we saved previously. 10:42:50 # We make sure to do this after checking for cached value to avoid 10:42:50 # adding our finalizer multiple times. (#12135) 10:42:50 finalizer = functools.partial(self.finish, request=request) 10:42:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:42:50 parent_fixture.addfinalizer(finalizer) 10:42:50 10:42:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:42:50 # which is executed last. 10:42:50 > assert not self._finalizers 10:42:50 ^^^^^^^^^^^^^^^^^^^^ 10:42:50 E AssertionError 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:42:50 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 10:42:50 10:42:50 cls = 10:42:50 func = . at 0x7f596a68f420> 10:42:50 when = 'setup' 10:42:50 reraise = (, ) 10:42:50 10:42:50 @classmethod 10:42:50 def from_call( 10:42:50 cls, 10:42:50 func: Callable[[], TResult], 10:42:50 when: Literal["collect", "setup", "call", "teardown"], 10:42:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:42:50 ) -> CallInfo[TResult]: 10:42:50 """Call func, wrapping the result in a CallInfo. 10:42:50 10:42:50 :param func: 10:42:50 The function to call. Called without arguments. 10:42:50 :type func: Callable[[], _pytest.runner.TResult] 10:42:50 :param when: 10:42:50 The phase in which the function is called. 10:42:50 :param reraise: 10:42:50 Exception or exceptions that shall propagate if raised by the 10:42:50 function, instead of being wrapped in the CallInfo. 10:42:50 """ 10:42:50 excinfo = None 10:42:50 instant = timing.Instant() 10:42:50 try: 10:42:50 > result: TResult | None = func() 10:42:50 ^^^^^^ 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:42:50 lambda: runtest_hook(item=item, **kwds), 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:42:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:42:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:42:50 yield 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:42:50 return (yield) 10:42:50 ^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:42:50 item.session._setupstate.setup(item) 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:42:50 col.setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:42:50 super().setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:42:50 self._request._fillfixtures() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:42:50 item.funcargs[argname] = self.getfixturevalue(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:42:50 fixturedef = self._get_active_fixturedef(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:42:50 fixturedef.execute(request=subrequest) 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 10:42:50 self = 10:42:50 request = > 10:42:50 10:42:50 def execute(self, request: SubRequest) -> FixtureValue: 10:42:50 """Return the value of this fixture, executing it if not cached.""" 10:42:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:42:50 # This needs to be done before checking if we have a cached value, since 10:42:50 # if a dependent fixture has their cache invalidated, e.g. due to 10:42:50 # parametrization, they finalize themselves and fixtures depending on it 10:42:50 # (which will likely include this fixture) setting `self.cached_result = None`. 10:42:50 # See #4871 10:42:50 requested_fixtures_that_should_finalize_us = [] 10:42:50 for argname in self.argnames: 10:42:50 fixturedef = request._get_active_fixturedef(argname) 10:42:50 # Saves requested fixtures in a list so we later can add our finalizer 10:42:50 # to them, ensuring that if a requested fixture gets torn down we get torn 10:42:50 # down first. This is generally handled by SetupState, but still currently 10:42:50 # needed when this fixture is not parametrized but depends on a parametrized 10:42:50 # fixture. 10:42:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:42:50 10:42:50 # Check for (and return) cached value/exception. 10:42:50 if self.cached_result is not None: 10:42:50 request_cache_key = self.cache_key(request) 10:42:50 cache_key = self.cached_result[1] 10:42:50 try: 10:42:50 # Attempt to make a normal == check: this might fail for objects 10:42:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:42:50 cache_hit = bool(request_cache_key == cache_key) 10:42:50 except (ValueError, RuntimeError): 10:42:50 # If the comparison raises, use 'is' as fallback. 10:42:50 cache_hit = request_cache_key is cache_key 10:42:50 10:42:50 if cache_hit: 10:42:50 if self.cached_result[2] is not None: 10:42:50 exc, exc_tb = self.cached_result[2] 10:42:50 raise exc.with_traceback(exc_tb) 10:42:50 else: 10:42:50 return self.cached_result[0] 10:42:50 # We have a previous but differently parametrized fixture instance 10:42:50 # so we need to tear it down before creating a new one. 10:42:50 self.finish(request) 10:42:50 assert self.cached_result is None 10:42:50 10:42:50 # Add finalizer to requested fixtures we saved previously. 10:42:50 # We make sure to do this after checking for cached value to avoid 10:42:50 # adding our finalizer multiple times. (#12135) 10:42:50 finalizer = functools.partial(self.finish, request=request) 10:42:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:42:50 parent_fixture.addfinalizer(finalizer) 10:42:50 10:42:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:42:50 # which is executed last. 10:42:50 > assert not self._finalizers 10:42:50 ^^^^^^^^^^^^^^^^^^^^ 10:42:50 E AssertionError 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:42:50 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 10:42:50 10:42:50 cls = 10:42:50 func = . at 0x7f596a67b380> 10:42:50 when = 'setup' 10:42:50 reraise = (, ) 10:42:50 10:42:50 @classmethod 10:42:50 def from_call( 10:42:50 cls, 10:42:50 func: Callable[[], TResult], 10:42:50 when: Literal["collect", "setup", "call", "teardown"], 10:42:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:42:50 ) -> CallInfo[TResult]: 10:42:50 """Call func, wrapping the result in a CallInfo. 10:42:50 10:42:50 :param func: 10:42:50 The function to call. Called without arguments. 10:42:50 :type func: Callable[[], _pytest.runner.TResult] 10:42:50 :param when: 10:42:50 The phase in which the function is called. 10:42:50 :param reraise: 10:42:50 Exception or exceptions that shall propagate if raised by the 10:42:50 function, instead of being wrapped in the CallInfo. 10:42:50 """ 10:42:50 excinfo = None 10:42:50 instant = timing.Instant() 10:42:50 try: 10:42:50 > result: TResult | None = func() 10:42:50 ^^^^^^ 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:42:50 lambda: runtest_hook(item=item, **kwds), 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:42:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:42:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:42:50 yield 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:42:50 return (yield) 10:42:50 ^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:42:50 item.session._setupstate.setup(item) 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:42:50 col.setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:42:50 super().setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:42:50 self._request._fillfixtures() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:42:50 item.funcargs[argname] = self.getfixturevalue(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:42:50 fixturedef = self._get_active_fixturedef(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:42:50 fixturedef.execute(request=subrequest) 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 10:42:50 self = 10:42:50 request = > 10:42:50 10:42:50 def execute(self, request: SubRequest) -> FixtureValue: 10:42:50 """Return the value of this fixture, executing it if not cached.""" 10:42:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:42:50 # This needs to be done before checking if we have a cached value, since 10:42:50 # if a dependent fixture has their cache invalidated, e.g. due to 10:42:50 # parametrization, they finalize themselves and fixtures depending on it 10:42:50 # (which will likely include this fixture) setting `self.cached_result = None`. 10:42:50 # See #4871 10:42:50 requested_fixtures_that_should_finalize_us = [] 10:42:50 for argname in self.argnames: 10:42:50 fixturedef = request._get_active_fixturedef(argname) 10:42:50 # Saves requested fixtures in a list so we later can add our finalizer 10:42:50 # to them, ensuring that if a requested fixture gets torn down we get torn 10:42:50 # down first. This is generally handled by SetupState, but still currently 10:42:50 # needed when this fixture is not parametrized but depends on a parametrized 10:42:50 # fixture. 10:42:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:42:50 10:42:50 # Check for (and return) cached value/exception. 10:42:50 if self.cached_result is not None: 10:42:50 request_cache_key = self.cache_key(request) 10:42:50 cache_key = self.cached_result[1] 10:42:50 try: 10:42:50 # Attempt to make a normal == check: this might fail for objects 10:42:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:42:50 cache_hit = bool(request_cache_key == cache_key) 10:42:50 except (ValueError, RuntimeError): 10:42:50 # If the comparison raises, use 'is' as fallback. 10:42:50 cache_hit = request_cache_key is cache_key 10:42:50 10:42:50 if cache_hit: 10:42:50 if self.cached_result[2] is not None: 10:42:50 exc, exc_tb = self.cached_result[2] 10:42:50 raise exc.with_traceback(exc_tb) 10:42:50 else: 10:42:50 return self.cached_result[0] 10:42:50 # We have a previous but differently parametrized fixture instance 10:42:50 # so we need to tear it down before creating a new one. 10:42:50 self.finish(request) 10:42:50 assert self.cached_result is None 10:42:50 10:42:50 # Add finalizer to requested fixtures we saved previously. 10:42:50 # We make sure to do this after checking for cached value to avoid 10:42:50 # adding our finalizer multiple times. (#12135) 10:42:50 finalizer = functools.partial(self.finish, request=request) 10:42:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:42:50 parent_fixture.addfinalizer(finalizer) 10:42:50 10:42:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:42:50 # which is executed last. 10:42:50 > assert not self._finalizers 10:42:50 ^^^^^^^^^^^^^^^^^^^^ 10:42:50 E AssertionError 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:42:50 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 10:42:50 10:42:50 cls = 10:42:50 func = . at 0x7f596a68f1a0> 10:42:50 when = 'setup' 10:42:50 reraise = (, ) 10:42:50 10:42:50 @classmethod 10:42:50 def from_call( 10:42:50 cls, 10:42:50 func: Callable[[], TResult], 10:42:50 when: Literal["collect", "setup", "call", "teardown"], 10:42:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:42:50 ) -> CallInfo[TResult]: 10:42:50 """Call func, wrapping the result in a CallInfo. 10:42:50 10:42:50 :param func: 10:42:50 The function to call. Called without arguments. 10:42:50 :type func: Callable[[], _pytest.runner.TResult] 10:42:50 :param when: 10:42:50 The phase in which the function is called. 10:42:50 :param reraise: 10:42:50 Exception or exceptions that shall propagate if raised by the 10:42:50 function, instead of being wrapped in the CallInfo. 10:42:50 """ 10:42:50 excinfo = None 10:42:50 instant = timing.Instant() 10:42:50 try: 10:42:50 > result: TResult | None = func() 10:42:50 ^^^^^^ 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:42:50 lambda: runtest_hook(item=item, **kwds), 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:42:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:42:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:42:50 yield 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:42:50 return (yield) 10:42:50 ^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:42:50 item.session._setupstate.setup(item) 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:42:50 col.setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:42:50 super().setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:42:50 self._request._fillfixtures() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:42:50 item.funcargs[argname] = self.getfixturevalue(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:42:50 fixturedef = self._get_active_fixturedef(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:42:50 fixturedef.execute(request=subrequest) 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 10:42:50 self = 10:42:50 request = > 10:42:50 10:42:50 def execute(self, request: SubRequest) -> FixtureValue: 10:42:50 """Return the value of this fixture, executing it if not cached.""" 10:42:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:42:50 # This needs to be done before checking if we have a cached value, since 10:42:50 # if a dependent fixture has their cache invalidated, e.g. due to 10:42:50 # parametrization, they finalize themselves and fixtures depending on it 10:42:50 # (which will likely include this fixture) setting `self.cached_result = None`. 10:42:50 # See #4871 10:42:50 requested_fixtures_that_should_finalize_us = [] 10:42:50 for argname in self.argnames: 10:42:50 fixturedef = request._get_active_fixturedef(argname) 10:42:50 # Saves requested fixtures in a list so we later can add our finalizer 10:42:50 # to them, ensuring that if a requested fixture gets torn down we get torn 10:42:50 # down first. This is generally handled by SetupState, but still currently 10:42:50 # needed when this fixture is not parametrized but depends on a parametrized 10:42:50 # fixture. 10:42:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:42:50 10:42:50 # Check for (and return) cached value/exception. 10:42:50 if self.cached_result is not None: 10:42:50 request_cache_key = self.cache_key(request) 10:42:50 cache_key = self.cached_result[1] 10:42:50 try: 10:42:50 # Attempt to make a normal == check: this might fail for objects 10:42:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:42:50 cache_hit = bool(request_cache_key == cache_key) 10:42:50 except (ValueError, RuntimeError): 10:42:50 # If the comparison raises, use 'is' as fallback. 10:42:50 cache_hit = request_cache_key is cache_key 10:42:50 10:42:50 if cache_hit: 10:42:50 if self.cached_result[2] is not None: 10:42:50 exc, exc_tb = self.cached_result[2] 10:42:50 raise exc.with_traceback(exc_tb) 10:42:50 else: 10:42:50 return self.cached_result[0] 10:42:50 # We have a previous but differently parametrized fixture instance 10:42:50 # so we need to tear it down before creating a new one. 10:42:50 self.finish(request) 10:42:50 assert self.cached_result is None 10:42:50 10:42:50 # Add finalizer to requested fixtures we saved previously. 10:42:50 # We make sure to do this after checking for cached value to avoid 10:42:50 # adding our finalizer multiple times. (#12135) 10:42:50 finalizer = functools.partial(self.finish, request=request) 10:42:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:42:50 parent_fixture.addfinalizer(finalizer) 10:42:50 10:42:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:42:50 # which is executed last. 10:42:50 > assert not self._finalizers 10:42:50 ^^^^^^^^^^^^^^^^^^^^ 10:42:50 E AssertionError 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:42:50 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 10:42:50 10:42:50 cls = 10:42:50 func = . at 0x7f596a68f6a0> 10:42:50 when = 'setup' 10:42:50 reraise = (, ) 10:42:50 10:42:50 @classmethod 10:42:50 def from_call( 10:42:50 cls, 10:42:50 func: Callable[[], TResult], 10:42:50 when: Literal["collect", "setup", "call", "teardown"], 10:42:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:42:50 ) -> CallInfo[TResult]: 10:42:50 """Call func, wrapping the result in a CallInfo. 10:42:50 10:42:50 :param func: 10:42:50 The function to call. Called without arguments. 10:42:50 :type func: Callable[[], _pytest.runner.TResult] 10:42:50 :param when: 10:42:50 The phase in which the function is called. 10:42:50 :param reraise: 10:42:50 Exception or exceptions that shall propagate if raised by the 10:42:50 function, instead of being wrapped in the CallInfo. 10:42:50 """ 10:42:50 excinfo = None 10:42:50 instant = timing.Instant() 10:42:50 try: 10:42:50 > result: TResult | None = func() 10:42:50 ^^^^^^ 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:42:50 lambda: runtest_hook(item=item, **kwds), 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:42:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:42:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:42:50 yield 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:42:50 return (yield) 10:42:50 ^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:42:50 item.session._setupstate.setup(item) 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:42:50 col.setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:42:50 super().setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:42:50 self._request._fillfixtures() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:42:50 item.funcargs[argname] = self.getfixturevalue(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:42:50 fixturedef = self._get_active_fixturedef(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:42:50 fixturedef.execute(request=subrequest) 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 10:42:50 self = 10:42:50 request = > 10:42:50 10:42:50 def execute(self, request: SubRequest) -> FixtureValue: 10:42:50 """Return the value of this fixture, executing it if not cached.""" 10:42:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:42:50 # This needs to be done before checking if we have a cached value, since 10:42:50 # if a dependent fixture has their cache invalidated, e.g. due to 10:42:50 # parametrization, they finalize themselves and fixtures depending on it 10:42:50 # (which will likely include this fixture) setting `self.cached_result = None`. 10:42:50 # See #4871 10:42:50 requested_fixtures_that_should_finalize_us = [] 10:42:50 for argname in self.argnames: 10:42:50 fixturedef = request._get_active_fixturedef(argname) 10:42:50 # Saves requested fixtures in a list so we later can add our finalizer 10:42:50 # to them, ensuring that if a requested fixture gets torn down we get torn 10:42:50 # down first. This is generally handled by SetupState, but still currently 10:42:50 # needed when this fixture is not parametrized but depends on a parametrized 10:42:50 # fixture. 10:42:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:42:50 10:42:50 # Check for (and return) cached value/exception. 10:42:50 if self.cached_result is not None: 10:42:50 request_cache_key = self.cache_key(request) 10:42:50 cache_key = self.cached_result[1] 10:42:50 try: 10:42:50 # Attempt to make a normal == check: this might fail for objects 10:42:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:42:50 cache_hit = bool(request_cache_key == cache_key) 10:42:50 except (ValueError, RuntimeError): 10:42:50 # If the comparison raises, use 'is' as fallback. 10:42:50 cache_hit = request_cache_key is cache_key 10:42:50 10:42:50 if cache_hit: 10:42:50 if self.cached_result[2] is not None: 10:42:50 exc, exc_tb = self.cached_result[2] 10:42:50 raise exc.with_traceback(exc_tb) 10:42:50 else: 10:42:50 return self.cached_result[0] 10:42:50 # We have a previous but differently parametrized fixture instance 10:42:50 # so we need to tear it down before creating a new one. 10:42:50 self.finish(request) 10:42:50 assert self.cached_result is None 10:42:50 10:42:50 # Add finalizer to requested fixtures we saved previously. 10:42:50 # We make sure to do this after checking for cached value to avoid 10:42:50 # adding our finalizer multiple times. (#12135) 10:42:50 finalizer = functools.partial(self.finish, request=request) 10:42:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:42:50 parent_fixture.addfinalizer(finalizer) 10:42:50 10:42:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:42:50 # which is executed last. 10:42:50 > assert not self._finalizers 10:42:50 ^^^^^^^^^^^^^^^^^^^^ 10:42:50 E AssertionError 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:42:50 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 10:42:50 10:42:50 cls = 10:42:50 func = . at 0x7f5969fd1da0> 10:42:50 when = 'setup' 10:42:50 reraise = (, ) 10:42:50 10:42:50 @classmethod 10:42:50 def from_call( 10:42:50 cls, 10:42:50 func: Callable[[], TResult], 10:42:50 when: Literal["collect", "setup", "call", "teardown"], 10:42:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:42:50 ) -> CallInfo[TResult]: 10:42:50 """Call func, wrapping the result in a CallInfo. 10:42:50 10:42:50 :param func: 10:42:50 The function to call. Called without arguments. 10:42:50 :type func: Callable[[], _pytest.runner.TResult] 10:42:50 :param when: 10:42:50 The phase in which the function is called. 10:42:50 :param reraise: 10:42:50 Exception or exceptions that shall propagate if raised by the 10:42:50 function, instead of being wrapped in the CallInfo. 10:42:50 """ 10:42:50 excinfo = None 10:42:50 instant = timing.Instant() 10:42:50 try: 10:42:50 > result: TResult | None = func() 10:42:50 ^^^^^^ 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:42:50 lambda: runtest_hook(item=item, **kwds), 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:42:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:42:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:42:50 yield 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:42:50 return (yield) 10:42:50 ^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:42:50 item.session._setupstate.setup(item) 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:42:50 col.setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:42:50 super().setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:42:50 self._request._fillfixtures() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:42:50 item.funcargs[argname] = self.getfixturevalue(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:42:50 fixturedef = self._get_active_fixturedef(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:42:50 fixturedef.execute(request=subrequest) 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 10:42:50 self = 10:42:50 request = > 10:42:50 10:42:50 def execute(self, request: SubRequest) -> FixtureValue: 10:42:50 """Return the value of this fixture, executing it if not cached.""" 10:42:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:42:50 # This needs to be done before checking if we have a cached value, since 10:42:50 # if a dependent fixture has their cache invalidated, e.g. due to 10:42:50 # parametrization, they finalize themselves and fixtures depending on it 10:42:50 # (which will likely include this fixture) setting `self.cached_result = None`. 10:42:50 # See #4871 10:42:50 requested_fixtures_that_should_finalize_us = [] 10:42:50 for argname in self.argnames: 10:42:50 fixturedef = request._get_active_fixturedef(argname) 10:42:50 # Saves requested fixtures in a list so we later can add our finalizer 10:42:50 # to them, ensuring that if a requested fixture gets torn down we get torn 10:42:50 # down first. This is generally handled by SetupState, but still currently 10:42:50 # needed when this fixture is not parametrized but depends on a parametrized 10:42:50 # fixture. 10:42:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:42:50 10:42:50 # Check for (and return) cached value/exception. 10:42:50 if self.cached_result is not None: 10:42:50 request_cache_key = self.cache_key(request) 10:42:50 cache_key = self.cached_result[1] 10:42:50 try: 10:42:50 # Attempt to make a normal == check: this might fail for objects 10:42:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:42:50 cache_hit = bool(request_cache_key == cache_key) 10:42:50 except (ValueError, RuntimeError): 10:42:50 # If the comparison raises, use 'is' as fallback. 10:42:50 cache_hit = request_cache_key is cache_key 10:42:50 10:42:50 if cache_hit: 10:42:50 if self.cached_result[2] is not None: 10:42:50 exc, exc_tb = self.cached_result[2] 10:42:50 raise exc.with_traceback(exc_tb) 10:42:50 else: 10:42:50 return self.cached_result[0] 10:42:50 # We have a previous but differently parametrized fixture instance 10:42:50 # so we need to tear it down before creating a new one. 10:42:50 self.finish(request) 10:42:50 assert self.cached_result is None 10:42:50 10:42:50 # Add finalizer to requested fixtures we saved previously. 10:42:50 # We make sure to do this after checking for cached value to avoid 10:42:50 # adding our finalizer multiple times. (#12135) 10:42:50 finalizer = functools.partial(self.finish, request=request) 10:42:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:42:50 parent_fixture.addfinalizer(finalizer) 10:42:50 10:42:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:42:50 # which is executed last. 10:42:50 > assert not self._finalizers 10:42:50 ^^^^^^^^^^^^^^^^^^^^ 10:42:50 E AssertionError 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:42:50 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 10:42:50 10:42:50 cls = 10:42:50 func = . at 0x7f596a67bec0> 10:42:50 when = 'setup' 10:42:50 reraise = (, ) 10:42:50 10:42:50 @classmethod 10:42:50 def from_call( 10:42:50 cls, 10:42:50 func: Callable[[], TResult], 10:42:50 when: Literal["collect", "setup", "call", "teardown"], 10:42:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:42:50 ) -> CallInfo[TResult]: 10:42:50 """Call func, wrapping the result in a CallInfo. 10:42:50 10:42:50 :param func: 10:42:50 The function to call. Called without arguments. 10:42:50 :type func: Callable[[], _pytest.runner.TResult] 10:42:50 :param when: 10:42:50 The phase in which the function is called. 10:42:50 :param reraise: 10:42:50 Exception or exceptions that shall propagate if raised by the 10:42:50 function, instead of being wrapped in the CallInfo. 10:42:50 """ 10:42:50 excinfo = None 10:42:50 instant = timing.Instant() 10:42:50 try: 10:42:50 > result: TResult | None = func() 10:42:50 ^^^^^^ 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:42:50 lambda: runtest_hook(item=item, **kwds), 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:42:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:42:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:42:50 yield 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:42:50 return (yield) 10:42:50 ^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:42:50 item.session._setupstate.setup(item) 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:42:50 col.setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:42:50 super().setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:42:50 self._request._fillfixtures() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:42:50 item.funcargs[argname] = self.getfixturevalue(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:42:50 fixturedef = self._get_active_fixturedef(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:42:50 fixturedef.execute(request=subrequest) 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 10:42:50 self = 10:42:50 request = > 10:42:50 10:42:50 def execute(self, request: SubRequest) -> FixtureValue: 10:42:50 """Return the value of this fixture, executing it if not cached.""" 10:42:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:42:50 # This needs to be done before checking if we have a cached value, since 10:42:50 # if a dependent fixture has their cache invalidated, e.g. due to 10:42:50 # parametrization, they finalize themselves and fixtures depending on it 10:42:50 # (which will likely include this fixture) setting `self.cached_result = None`. 10:42:50 # See #4871 10:42:50 requested_fixtures_that_should_finalize_us = [] 10:42:50 for argname in self.argnames: 10:42:50 fixturedef = request._get_active_fixturedef(argname) 10:42:50 # Saves requested fixtures in a list so we later can add our finalizer 10:42:50 # to them, ensuring that if a requested fixture gets torn down we get torn 10:42:50 # down first. This is generally handled by SetupState, but still currently 10:42:50 # needed when this fixture is not parametrized but depends on a parametrized 10:42:50 # fixture. 10:42:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:42:50 10:42:50 # Check for (and return) cached value/exception. 10:42:50 if self.cached_result is not None: 10:42:50 request_cache_key = self.cache_key(request) 10:42:50 cache_key = self.cached_result[1] 10:42:50 try: 10:42:50 # Attempt to make a normal == check: this might fail for objects 10:42:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:42:50 cache_hit = bool(request_cache_key == cache_key) 10:42:50 except (ValueError, RuntimeError): 10:42:50 # If the comparison raises, use 'is' as fallback. 10:42:50 cache_hit = request_cache_key is cache_key 10:42:50 10:42:50 if cache_hit: 10:42:50 if self.cached_result[2] is not None: 10:42:50 exc, exc_tb = self.cached_result[2] 10:42:50 raise exc.with_traceback(exc_tb) 10:42:50 else: 10:42:50 return self.cached_result[0] 10:42:50 # We have a previous but differently parametrized fixture instance 10:42:50 # so we need to tear it down before creating a new one. 10:42:50 self.finish(request) 10:42:50 assert self.cached_result is None 10:42:50 10:42:50 # Add finalizer to requested fixtures we saved previously. 10:42:50 # We make sure to do this after checking for cached value to avoid 10:42:50 # adding our finalizer multiple times. (#12135) 10:42:50 finalizer = functools.partial(self.finish, request=request) 10:42:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:42:50 parent_fixture.addfinalizer(finalizer) 10:42:50 10:42:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:42:50 # which is executed last. 10:42:50 > assert not self._finalizers 10:42:50 ^^^^^^^^^^^^^^^^^^^^ 10:42:50 E AssertionError 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:42:50 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 10:42:50 10:42:50 cls = 10:42:50 func = . at 0x7f596a67b380> 10:42:50 when = 'setup' 10:42:50 reraise = (, ) 10:42:50 10:42:50 @classmethod 10:42:50 def from_call( 10:42:50 cls, 10:42:50 func: Callable[[], TResult], 10:42:50 when: Literal["collect", "setup", "call", "teardown"], 10:42:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:42:50 ) -> CallInfo[TResult]: 10:42:50 """Call func, wrapping the result in a CallInfo. 10:42:50 10:42:50 :param func: 10:42:50 The function to call. Called without arguments. 10:42:50 :type func: Callable[[], _pytest.runner.TResult] 10:42:50 :param when: 10:42:50 The phase in which the function is called. 10:42:50 :param reraise: 10:42:50 Exception or exceptions that shall propagate if raised by the 10:42:50 function, instead of being wrapped in the CallInfo. 10:42:50 """ 10:42:50 excinfo = None 10:42:50 instant = timing.Instant() 10:42:50 try: 10:42:50 > result: TResult | None = func() 10:42:50 ^^^^^^ 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:42:50 lambda: runtest_hook(item=item, **kwds), 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:42:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:42:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:42:50 yield 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:42:50 return (yield) 10:42:50 ^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:42:50 item.session._setupstate.setup(item) 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:42:50 col.setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:42:50 super().setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:42:50 self._request._fillfixtures() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:42:50 item.funcargs[argname] = self.getfixturevalue(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:42:50 fixturedef = self._get_active_fixturedef(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:42:50 fixturedef.execute(request=subrequest) 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 10:42:50 self = 10:42:50 request = > 10:42:50 10:42:50 def execute(self, request: SubRequest) -> FixtureValue: 10:42:50 """Return the value of this fixture, executing it if not cached.""" 10:42:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:42:50 # This needs to be done before checking if we have a cached value, since 10:42:50 # if a dependent fixture has their cache invalidated, e.g. due to 10:42:50 # parametrization, they finalize themselves and fixtures depending on it 10:42:50 # (which will likely include this fixture) setting `self.cached_result = None`. 10:42:50 # See #4871 10:42:50 requested_fixtures_that_should_finalize_us = [] 10:42:50 for argname in self.argnames: 10:42:50 fixturedef = request._get_active_fixturedef(argname) 10:42:50 # Saves requested fixtures in a list so we later can add our finalizer 10:42:50 # to them, ensuring that if a requested fixture gets torn down we get torn 10:42:50 # down first. This is generally handled by SetupState, but still currently 10:42:50 # needed when this fixture is not parametrized but depends on a parametrized 10:42:50 # fixture. 10:42:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:42:50 10:42:50 # Check for (and return) cached value/exception. 10:42:50 if self.cached_result is not None: 10:42:50 request_cache_key = self.cache_key(request) 10:42:50 cache_key = self.cached_result[1] 10:42:50 try: 10:42:50 # Attempt to make a normal == check: this might fail for objects 10:42:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:42:50 cache_hit = bool(request_cache_key == cache_key) 10:42:50 except (ValueError, RuntimeError): 10:42:50 # If the comparison raises, use 'is' as fallback. 10:42:50 cache_hit = request_cache_key is cache_key 10:42:50 10:42:50 if cache_hit: 10:42:50 if self.cached_result[2] is not None: 10:42:50 exc, exc_tb = self.cached_result[2] 10:42:50 raise exc.with_traceback(exc_tb) 10:42:50 else: 10:42:50 return self.cached_result[0] 10:42:50 # We have a previous but differently parametrized fixture instance 10:42:50 # so we need to tear it down before creating a new one. 10:42:50 self.finish(request) 10:42:50 assert self.cached_result is None 10:42:50 10:42:50 # Add finalizer to requested fixtures we saved previously. 10:42:50 # We make sure to do this after checking for cached value to avoid 10:42:50 # adding our finalizer multiple times. (#12135) 10:42:50 finalizer = functools.partial(self.finish, request=request) 10:42:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:42:50 parent_fixture.addfinalizer(finalizer) 10:42:50 10:42:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:42:50 # which is executed last. 10:42:50 > assert not self._finalizers 10:42:50 ^^^^^^^^^^^^^^^^^^^^ 10:42:50 E AssertionError 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:42:50 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 10:42:50 10:42:50 cls = 10:42:50 func = . at 0x7f596a67bec0> 10:42:50 when = 'setup' 10:42:50 reraise = (, ) 10:42:50 10:42:50 @classmethod 10:42:50 def from_call( 10:42:50 cls, 10:42:50 func: Callable[[], TResult], 10:42:50 when: Literal["collect", "setup", "call", "teardown"], 10:42:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:42:50 ) -> CallInfo[TResult]: 10:42:50 """Call func, wrapping the result in a CallInfo. 10:42:50 10:42:50 :param func: 10:42:50 The function to call. Called without arguments. 10:42:50 :type func: Callable[[], _pytest.runner.TResult] 10:42:50 :param when: 10:42:50 The phase in which the function is called. 10:42:50 :param reraise: 10:42:50 Exception or exceptions that shall propagate if raised by the 10:42:50 function, instead of being wrapped in the CallInfo. 10:42:50 """ 10:42:50 excinfo = None 10:42:50 instant = timing.Instant() 10:42:50 try: 10:42:50 > result: TResult | None = func() 10:42:50 ^^^^^^ 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:42:50 lambda: runtest_hook(item=item, **kwds), 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:42:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:42:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:42:50 yield 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:42:50 return (yield) 10:42:50 ^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:42:50 item.session._setupstate.setup(item) 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:42:50 col.setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:42:50 super().setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:42:50 self._request._fillfixtures() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:42:50 item.funcargs[argname] = self.getfixturevalue(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:42:50 fixturedef = self._get_active_fixturedef(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:42:50 fixturedef.execute(request=subrequest) 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 10:42:50 self = 10:42:50 request = > 10:42:50 10:42:50 def execute(self, request: SubRequest) -> FixtureValue: 10:42:50 """Return the value of this fixture, executing it if not cached.""" 10:42:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:42:50 # This needs to be done before checking if we have a cached value, since 10:42:50 # if a dependent fixture has their cache invalidated, e.g. due to 10:42:50 # parametrization, they finalize themselves and fixtures depending on it 10:42:50 # (which will likely include this fixture) setting `self.cached_result = None`. 10:42:50 # See #4871 10:42:50 requested_fixtures_that_should_finalize_us = [] 10:42:50 for argname in self.argnames: 10:42:50 fixturedef = request._get_active_fixturedef(argname) 10:42:50 # Saves requested fixtures in a list so we later can add our finalizer 10:42:50 # to them, ensuring that if a requested fixture gets torn down we get torn 10:42:50 # down first. This is generally handled by SetupState, but still currently 10:42:50 # needed when this fixture is not parametrized but depends on a parametrized 10:42:50 # fixture. 10:42:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:42:50 10:42:50 # Check for (and return) cached value/exception. 10:42:50 if self.cached_result is not None: 10:42:50 request_cache_key = self.cache_key(request) 10:42:50 cache_key = self.cached_result[1] 10:42:50 try: 10:42:50 # Attempt to make a normal == check: this might fail for objects 10:42:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:42:50 cache_hit = bool(request_cache_key == cache_key) 10:42:50 except (ValueError, RuntimeError): 10:42:50 # If the comparison raises, use 'is' as fallback. 10:42:50 cache_hit = request_cache_key is cache_key 10:42:50 10:42:50 if cache_hit: 10:42:50 if self.cached_result[2] is not None: 10:42:50 exc, exc_tb = self.cached_result[2] 10:42:50 raise exc.with_traceback(exc_tb) 10:42:50 else: 10:42:50 return self.cached_result[0] 10:42:50 # We have a previous but differently parametrized fixture instance 10:42:50 # so we need to tear it down before creating a new one. 10:42:50 self.finish(request) 10:42:50 assert self.cached_result is None 10:42:50 10:42:50 # Add finalizer to requested fixtures we saved previously. 10:42:50 # We make sure to do this after checking for cached value to avoid 10:42:50 # adding our finalizer multiple times. (#12135) 10:42:50 finalizer = functools.partial(self.finish, request=request) 10:42:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:42:50 parent_fixture.addfinalizer(finalizer) 10:42:50 10:42:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:42:50 # which is executed last. 10:42:50 > assert not self._finalizers 10:42:50 ^^^^^^^^^^^^^^^^^^^^ 10:42:50 E AssertionError 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:42:50 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 10:42:50 10:42:50 cls = 10:42:50 func = . at 0x7f5969fd1940> 10:42:50 when = 'setup' 10:42:50 reraise = (, ) 10:42:50 10:42:50 @classmethod 10:42:50 def from_call( 10:42:50 cls, 10:42:50 func: Callable[[], TResult], 10:42:50 when: Literal["collect", "setup", "call", "teardown"], 10:42:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:42:50 ) -> CallInfo[TResult]: 10:42:50 """Call func, wrapping the result in a CallInfo. 10:42:50 10:42:50 :param func: 10:42:50 The function to call. Called without arguments. 10:42:50 :type func: Callable[[], _pytest.runner.TResult] 10:42:50 :param when: 10:42:50 The phase in which the function is called. 10:42:50 :param reraise: 10:42:50 Exception or exceptions that shall propagate if raised by the 10:42:50 function, instead of being wrapped in the CallInfo. 10:42:50 """ 10:42:50 excinfo = None 10:42:50 instant = timing.Instant() 10:42:50 try: 10:42:50 > result: TResult | None = func() 10:42:50 ^^^^^^ 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:42:50 lambda: runtest_hook(item=item, **kwds), 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:42:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:42:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:42:50 yield 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:42:50 return (yield) 10:42:50 ^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:42:50 item.session._setupstate.setup(item) 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:42:50 col.setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:42:50 super().setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:42:50 self._request._fillfixtures() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:42:50 item.funcargs[argname] = self.getfixturevalue(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:42:50 fixturedef = self._get_active_fixturedef(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:42:50 fixturedef.execute(request=subrequest) 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 10:42:50 self = 10:42:50 request = > 10:42:50 10:42:50 def execute(self, request: SubRequest) -> FixtureValue: 10:42:50 """Return the value of this fixture, executing it if not cached.""" 10:42:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:42:50 # This needs to be done before checking if we have a cached value, since 10:42:50 # if a dependent fixture has their cache invalidated, e.g. due to 10:42:50 # parametrization, they finalize themselves and fixtures depending on it 10:42:50 # (which will likely include this fixture) setting `self.cached_result = None`. 10:42:50 # See #4871 10:42:50 requested_fixtures_that_should_finalize_us = [] 10:42:50 for argname in self.argnames: 10:42:50 fixturedef = request._get_active_fixturedef(argname) 10:42:50 # Saves requested fixtures in a list so we later can add our finalizer 10:42:50 # to them, ensuring that if a requested fixture gets torn down we get torn 10:42:50 # down first. This is generally handled by SetupState, but still currently 10:42:50 # needed when this fixture is not parametrized but depends on a parametrized 10:42:50 # fixture. 10:42:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:42:50 10:42:50 # Check for (and return) cached value/exception. 10:42:50 if self.cached_result is not None: 10:42:50 request_cache_key = self.cache_key(request) 10:42:50 cache_key = self.cached_result[1] 10:42:50 try: 10:42:50 # Attempt to make a normal == check: this might fail for objects 10:42:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:42:50 cache_hit = bool(request_cache_key == cache_key) 10:42:50 except (ValueError, RuntimeError): 10:42:50 # If the comparison raises, use 'is' as fallback. 10:42:50 cache_hit = request_cache_key is cache_key 10:42:50 10:42:50 if cache_hit: 10:42:50 if self.cached_result[2] is not None: 10:42:50 exc, exc_tb = self.cached_result[2] 10:42:50 raise exc.with_traceback(exc_tb) 10:42:50 else: 10:42:50 return self.cached_result[0] 10:42:50 # We have a previous but differently parametrized fixture instance 10:42:50 # so we need to tear it down before creating a new one. 10:42:50 self.finish(request) 10:42:50 assert self.cached_result is None 10:42:50 10:42:50 # Add finalizer to requested fixtures we saved previously. 10:42:50 # We make sure to do this after checking for cached value to avoid 10:42:50 # adding our finalizer multiple times. (#12135) 10:42:50 finalizer = functools.partial(self.finish, request=request) 10:42:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:42:50 parent_fixture.addfinalizer(finalizer) 10:42:50 10:42:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:42:50 # which is executed last. 10:42:50 > assert not self._finalizers 10:42:50 ^^^^^^^^^^^^^^^^^^^^ 10:42:50 E AssertionError 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:42:50 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 10:42:50 10:42:50 cls = 10:42:50 func = . at 0x7f596a68f1a0> 10:42:50 when = 'setup' 10:42:50 reraise = (, ) 10:42:50 10:42:50 @classmethod 10:42:50 def from_call( 10:42:50 cls, 10:42:50 func: Callable[[], TResult], 10:42:50 when: Literal["collect", "setup", "call", "teardown"], 10:42:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:42:50 ) -> CallInfo[TResult]: 10:42:50 """Call func, wrapping the result in a CallInfo. 10:42:50 10:42:50 :param func: 10:42:50 The function to call. Called without arguments. 10:42:50 :type func: Callable[[], _pytest.runner.TResult] 10:42:50 :param when: 10:42:50 The phase in which the function is called. 10:42:50 :param reraise: 10:42:50 Exception or exceptions that shall propagate if raised by the 10:42:50 function, instead of being wrapped in the CallInfo. 10:42:50 """ 10:42:50 excinfo = None 10:42:50 instant = timing.Instant() 10:42:50 try: 10:42:50 > result: TResult | None = func() 10:42:50 ^^^^^^ 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:42:50 lambda: runtest_hook(item=item, **kwds), 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:42:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:42:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:42:50 yield 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:42:50 return (yield) 10:42:50 ^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:42:50 item.session._setupstate.setup(item) 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:42:50 col.setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:42:50 super().setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:42:50 self._request._fillfixtures() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:42:50 item.funcargs[argname] = self.getfixturevalue(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:42:50 fixturedef = self._get_active_fixturedef(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:42:50 fixturedef.execute(request=subrequest) 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 10:42:50 self = 10:42:50 request = > 10:42:50 10:42:50 def execute(self, request: SubRequest) -> FixtureValue: 10:42:50 """Return the value of this fixture, executing it if not cached.""" 10:42:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:42:50 # This needs to be done before checking if we have a cached value, since 10:42:50 # if a dependent fixture has their cache invalidated, e.g. due to 10:42:50 # parametrization, they finalize themselves and fixtures depending on it 10:42:50 # (which will likely include this fixture) setting `self.cached_result = None`. 10:42:50 # See #4871 10:42:50 requested_fixtures_that_should_finalize_us = [] 10:42:50 for argname in self.argnames: 10:42:50 fixturedef = request._get_active_fixturedef(argname) 10:42:50 # Saves requested fixtures in a list so we later can add our finalizer 10:42:50 # to them, ensuring that if a requested fixture gets torn down we get torn 10:42:50 # down first. This is generally handled by SetupState, but still currently 10:42:50 # needed when this fixture is not parametrized but depends on a parametrized 10:42:50 # fixture. 10:42:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:42:50 10:42:50 # Check for (and return) cached value/exception. 10:42:50 if self.cached_result is not None: 10:42:50 request_cache_key = self.cache_key(request) 10:42:50 cache_key = self.cached_result[1] 10:42:50 try: 10:42:50 # Attempt to make a normal == check: this might fail for objects 10:42:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:42:50 cache_hit = bool(request_cache_key == cache_key) 10:42:50 except (ValueError, RuntimeError): 10:42:50 # If the comparison raises, use 'is' as fallback. 10:42:50 cache_hit = request_cache_key is cache_key 10:42:50 10:42:50 if cache_hit: 10:42:50 if self.cached_result[2] is not None: 10:42:50 exc, exc_tb = self.cached_result[2] 10:42:50 raise exc.with_traceback(exc_tb) 10:42:50 else: 10:42:50 return self.cached_result[0] 10:42:50 # We have a previous but differently parametrized fixture instance 10:42:50 # so we need to tear it down before creating a new one. 10:42:50 self.finish(request) 10:42:50 assert self.cached_result is None 10:42:50 10:42:50 # Add finalizer to requested fixtures we saved previously. 10:42:50 # We make sure to do this after checking for cached value to avoid 10:42:50 # adding our finalizer multiple times. (#12135) 10:42:50 finalizer = functools.partial(self.finish, request=request) 10:42:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:42:50 parent_fixture.addfinalizer(finalizer) 10:42:50 10:42:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:42:50 # which is executed last. 10:42:50 > assert not self._finalizers 10:42:50 ^^^^^^^^^^^^^^^^^^^^ 10:42:50 E AssertionError 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:42:50 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 10:42:50 10:42:50 cls = 10:42:50 func = . at 0x7f596a67b380> 10:42:50 when = 'setup' 10:42:50 reraise = (, ) 10:42:50 10:42:50 @classmethod 10:42:50 def from_call( 10:42:50 cls, 10:42:50 func: Callable[[], TResult], 10:42:50 when: Literal["collect", "setup", "call", "teardown"], 10:42:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:42:50 ) -> CallInfo[TResult]: 10:42:50 """Call func, wrapping the result in a CallInfo. 10:42:50 10:42:50 :param func: 10:42:50 The function to call. Called without arguments. 10:42:50 :type func: Callable[[], _pytest.runner.TResult] 10:42:50 :param when: 10:42:50 The phase in which the function is called. 10:42:50 :param reraise: 10:42:50 Exception or exceptions that shall propagate if raised by the 10:42:50 function, instead of being wrapped in the CallInfo. 10:42:50 """ 10:42:50 excinfo = None 10:42:50 instant = timing.Instant() 10:42:50 try: 10:42:50 > result: TResult | None = func() 10:42:50 ^^^^^^ 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:42:50 lambda: runtest_hook(item=item, **kwds), 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:42:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:42:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:42:50 yield 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:42:50 return (yield) 10:42:50 ^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:42:50 item.session._setupstate.setup(item) 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:42:50 col.setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:42:50 super().setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:42:50 self._request._fillfixtures() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:42:50 item.funcargs[argname] = self.getfixturevalue(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:42:50 fixturedef = self._get_active_fixturedef(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:42:50 fixturedef.execute(request=subrequest) 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 10:42:50 self = 10:42:50 request = > 10:42:50 10:42:50 def execute(self, request: SubRequest) -> FixtureValue: 10:42:50 """Return the value of this fixture, executing it if not cached.""" 10:42:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:42:50 # This needs to be done before checking if we have a cached value, since 10:42:50 # if a dependent fixture has their cache invalidated, e.g. due to 10:42:50 # parametrization, they finalize themselves and fixtures depending on it 10:42:50 # (which will likely include this fixture) setting `self.cached_result = None`. 10:42:50 # See #4871 10:42:50 requested_fixtures_that_should_finalize_us = [] 10:42:50 for argname in self.argnames: 10:42:50 fixturedef = request._get_active_fixturedef(argname) 10:42:50 # Saves requested fixtures in a list so we later can add our finalizer 10:42:50 # to them, ensuring that if a requested fixture gets torn down we get torn 10:42:50 # down first. This is generally handled by SetupState, but still currently 10:42:50 # needed when this fixture is not parametrized but depends on a parametrized 10:42:50 # fixture. 10:42:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:42:50 10:42:50 # Check for (and return) cached value/exception. 10:42:50 if self.cached_result is not None: 10:42:50 request_cache_key = self.cache_key(request) 10:42:50 cache_key = self.cached_result[1] 10:42:50 try: 10:42:50 # Attempt to make a normal == check: this might fail for objects 10:42:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:42:50 cache_hit = bool(request_cache_key == cache_key) 10:42:50 except (ValueError, RuntimeError): 10:42:50 # If the comparison raises, use 'is' as fallback. 10:42:50 cache_hit = request_cache_key is cache_key 10:42:50 10:42:50 if cache_hit: 10:42:50 if self.cached_result[2] is not None: 10:42:50 exc, exc_tb = self.cached_result[2] 10:42:50 raise exc.with_traceback(exc_tb) 10:42:50 else: 10:42:50 return self.cached_result[0] 10:42:50 # We have a previous but differently parametrized fixture instance 10:42:50 # so we need to tear it down before creating a new one. 10:42:50 self.finish(request) 10:42:50 assert self.cached_result is None 10:42:50 10:42:50 # Add finalizer to requested fixtures we saved previously. 10:42:50 # We make sure to do this after checking for cached value to avoid 10:42:50 # adding our finalizer multiple times. (#12135) 10:42:50 finalizer = functools.partial(self.finish, request=request) 10:42:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:42:50 parent_fixture.addfinalizer(finalizer) 10:42:50 10:42:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:42:50 # which is executed last. 10:42:50 > assert not self._finalizers 10:42:50 ^^^^^^^^^^^^^^^^^^^^ 10:42:50 E AssertionError 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:42:50 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 10:42:50 10:42:50 cls = 10:42:50 func = . at 0x7f5969fd2980> 10:42:50 when = 'setup' 10:42:50 reraise = (, ) 10:42:50 10:42:50 @classmethod 10:42:50 def from_call( 10:42:50 cls, 10:42:50 func: Callable[[], TResult], 10:42:50 when: Literal["collect", "setup", "call", "teardown"], 10:42:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:42:50 ) -> CallInfo[TResult]: 10:42:50 """Call func, wrapping the result in a CallInfo. 10:42:50 10:42:50 :param func: 10:42:50 The function to call. Called without arguments. 10:42:50 :type func: Callable[[], _pytest.runner.TResult] 10:42:50 :param when: 10:42:50 The phase in which the function is called. 10:42:50 :param reraise: 10:42:50 Exception or exceptions that shall propagate if raised by the 10:42:50 function, instead of being wrapped in the CallInfo. 10:42:50 """ 10:42:50 excinfo = None 10:42:50 instant = timing.Instant() 10:42:50 try: 10:42:50 > result: TResult | None = func() 10:42:50 ^^^^^^ 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:42:50 lambda: runtest_hook(item=item, **kwds), 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:42:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:42:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:42:50 yield 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:42:50 return (yield) 10:42:50 ^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:42:50 item.session._setupstate.setup(item) 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:42:50 col.setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:42:50 super().setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:42:50 self._request._fillfixtures() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:42:50 item.funcargs[argname] = self.getfixturevalue(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:42:50 fixturedef = self._get_active_fixturedef(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:42:50 fixturedef.execute(request=subrequest) 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 10:42:50 self = 10:42:50 request = > 10:42:50 10:42:50 def execute(self, request: SubRequest) -> FixtureValue: 10:42:50 """Return the value of this fixture, executing it if not cached.""" 10:42:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:42:50 # This needs to be done before checking if we have a cached value, since 10:42:50 # if a dependent fixture has their cache invalidated, e.g. due to 10:42:50 # parametrization, they finalize themselves and fixtures depending on it 10:42:50 # (which will likely include this fixture) setting `self.cached_result = None`. 10:42:50 # See #4871 10:42:50 requested_fixtures_that_should_finalize_us = [] 10:42:50 for argname in self.argnames: 10:42:50 fixturedef = request._get_active_fixturedef(argname) 10:42:50 # Saves requested fixtures in a list so we later can add our finalizer 10:42:50 # to them, ensuring that if a requested fixture gets torn down we get torn 10:42:50 # down first. This is generally handled by SetupState, but still currently 10:42:50 # needed when this fixture is not parametrized but depends on a parametrized 10:42:50 # fixture. 10:42:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:42:50 10:42:50 # Check for (and return) cached value/exception. 10:42:50 if self.cached_result is not None: 10:42:50 request_cache_key = self.cache_key(request) 10:42:50 cache_key = self.cached_result[1] 10:42:50 try: 10:42:50 # Attempt to make a normal == check: this might fail for objects 10:42:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:42:50 cache_hit = bool(request_cache_key == cache_key) 10:42:50 except (ValueError, RuntimeError): 10:42:50 # If the comparison raises, use 'is' as fallback. 10:42:50 cache_hit = request_cache_key is cache_key 10:42:50 10:42:50 if cache_hit: 10:42:50 if self.cached_result[2] is not None: 10:42:50 exc, exc_tb = self.cached_result[2] 10:42:50 raise exc.with_traceback(exc_tb) 10:42:50 else: 10:42:50 return self.cached_result[0] 10:42:50 # We have a previous but differently parametrized fixture instance 10:42:50 # so we need to tear it down before creating a new one. 10:42:50 self.finish(request) 10:42:50 assert self.cached_result is None 10:42:50 10:42:50 # Add finalizer to requested fixtures we saved previously. 10:42:50 # We make sure to do this after checking for cached value to avoid 10:42:50 # adding our finalizer multiple times. (#12135) 10:42:50 finalizer = functools.partial(self.finish, request=request) 10:42:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:42:50 parent_fixture.addfinalizer(finalizer) 10:42:50 10:42:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:42:50 # which is executed last. 10:42:50 > assert not self._finalizers 10:42:50 ^^^^^^^^^^^^^^^^^^^^ 10:42:50 E AssertionError 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:42:50 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 10:42:50 10:42:50 cls = 10:42:50 func = . at 0x7f596a68c540> 10:42:50 when = 'setup' 10:42:50 reraise = (, ) 10:42:50 10:42:50 @classmethod 10:42:50 def from_call( 10:42:50 cls, 10:42:50 func: Callable[[], TResult], 10:42:50 when: Literal["collect", "setup", "call", "teardown"], 10:42:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:42:50 ) -> CallInfo[TResult]: 10:42:50 """Call func, wrapping the result in a CallInfo. 10:42:50 10:42:50 :param func: 10:42:50 The function to call. Called without arguments. 10:42:50 :type func: Callable[[], _pytest.runner.TResult] 10:42:50 :param when: 10:42:50 The phase in which the function is called. 10:42:50 :param reraise: 10:42:50 Exception or exceptions that shall propagate if raised by the 10:42:50 function, instead of being wrapped in the CallInfo. 10:42:50 """ 10:42:50 excinfo = None 10:42:50 instant = timing.Instant() 10:42:50 try: 10:42:50 > result: TResult | None = func() 10:42:50 ^^^^^^ 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:42:50 lambda: runtest_hook(item=item, **kwds), 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:42:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:42:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:42:50 yield 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:42:50 return (yield) 10:42:50 ^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:42:50 item.session._setupstate.setup(item) 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:42:50 col.setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:42:50 super().setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:42:50 self._request._fillfixtures() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:42:50 item.funcargs[argname] = self.getfixturevalue(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:42:50 fixturedef = self._get_active_fixturedef(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:42:50 fixturedef.execute(request=subrequest) 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 10:42:50 self = 10:42:50 request = > 10:42:50 10:42:50 def execute(self, request: SubRequest) -> FixtureValue: 10:42:50 """Return the value of this fixture, executing it if not cached.""" 10:42:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:42:50 # This needs to be done before checking if we have a cached value, since 10:42:50 # if a dependent fixture has their cache invalidated, e.g. due to 10:42:50 # parametrization, they finalize themselves and fixtures depending on it 10:42:50 # (which will likely include this fixture) setting `self.cached_result = None`. 10:42:50 # See #4871 10:42:50 requested_fixtures_that_should_finalize_us = [] 10:42:50 for argname in self.argnames: 10:42:50 fixturedef = request._get_active_fixturedef(argname) 10:42:50 # Saves requested fixtures in a list so we later can add our finalizer 10:42:50 # to them, ensuring that if a requested fixture gets torn down we get torn 10:42:50 # down first. This is generally handled by SetupState, but still currently 10:42:50 # needed when this fixture is not parametrized but depends on a parametrized 10:42:50 # fixture. 10:42:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:42:50 10:42:50 # Check for (and return) cached value/exception. 10:42:50 if self.cached_result is not None: 10:42:50 request_cache_key = self.cache_key(request) 10:42:50 cache_key = self.cached_result[1] 10:42:50 try: 10:42:50 # Attempt to make a normal == check: this might fail for objects 10:42:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:42:50 cache_hit = bool(request_cache_key == cache_key) 10:42:50 except (ValueError, RuntimeError): 10:42:50 # If the comparison raises, use 'is' as fallback. 10:42:50 cache_hit = request_cache_key is cache_key 10:42:50 10:42:50 if cache_hit: 10:42:50 if self.cached_result[2] is not None: 10:42:50 exc, exc_tb = self.cached_result[2] 10:42:50 raise exc.with_traceback(exc_tb) 10:42:50 else: 10:42:50 return self.cached_result[0] 10:42:50 # We have a previous but differently parametrized fixture instance 10:42:50 # so we need to tear it down before creating a new one. 10:42:50 self.finish(request) 10:42:50 assert self.cached_result is None 10:42:50 10:42:50 # Add finalizer to requested fixtures we saved previously. 10:42:50 # We make sure to do this after checking for cached value to avoid 10:42:50 # adding our finalizer multiple times. (#12135) 10:42:50 finalizer = functools.partial(self.finish, request=request) 10:42:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:42:50 parent_fixture.addfinalizer(finalizer) 10:42:50 10:42:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:42:50 # which is executed last. 10:42:50 > assert not self._finalizers 10:42:50 ^^^^^^^^^^^^^^^^^^^^ 10:42:50 E AssertionError 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:42:50 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 10:42:50 10:42:50 cls = 10:42:50 func = . at 0x7f596a67b380> 10:42:50 when = 'setup' 10:42:50 reraise = (, ) 10:42:50 10:42:50 @classmethod 10:42:50 def from_call( 10:42:50 cls, 10:42:50 func: Callable[[], TResult], 10:42:50 when: Literal["collect", "setup", "call", "teardown"], 10:42:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:42:50 ) -> CallInfo[TResult]: 10:42:50 """Call func, wrapping the result in a CallInfo. 10:42:50 10:42:50 :param func: 10:42:50 The function to call. Called without arguments. 10:42:50 :type func: Callable[[], _pytest.runner.TResult] 10:42:50 :param when: 10:42:50 The phase in which the function is called. 10:42:50 :param reraise: 10:42:50 Exception or exceptions that shall propagate if raised by the 10:42:50 function, instead of being wrapped in the CallInfo. 10:42:50 """ 10:42:50 excinfo = None 10:42:50 instant = timing.Instant() 10:42:50 try: 10:42:50 > result: TResult | None = func() 10:42:50 ^^^^^^ 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:42:50 lambda: runtest_hook(item=item, **kwds), 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:42:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:42:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:42:50 yield 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:42:50 return (yield) 10:42:50 ^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:42:50 item.session._setupstate.setup(item) 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:42:50 col.setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:42:50 super().setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:42:50 self._request._fillfixtures() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:42:50 item.funcargs[argname] = self.getfixturevalue(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:42:50 fixturedef = self._get_active_fixturedef(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:42:50 fixturedef.execute(request=subrequest) 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 10:42:50 self = 10:42:50 request = > 10:42:50 10:42:50 def execute(self, request: SubRequest) -> FixtureValue: 10:42:50 """Return the value of this fixture, executing it if not cached.""" 10:42:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:42:50 # This needs to be done before checking if we have a cached value, since 10:42:50 # if a dependent fixture has their cache invalidated, e.g. due to 10:42:50 # parametrization, they finalize themselves and fixtures depending on it 10:42:50 # (which will likely include this fixture) setting `self.cached_result = None`. 10:42:50 # See #4871 10:42:50 requested_fixtures_that_should_finalize_us = [] 10:42:50 for argname in self.argnames: 10:42:50 fixturedef = request._get_active_fixturedef(argname) 10:42:50 # Saves requested fixtures in a list so we later can add our finalizer 10:42:50 # to them, ensuring that if a requested fixture gets torn down we get torn 10:42:50 # down first. This is generally handled by SetupState, but still currently 10:42:50 # needed when this fixture is not parametrized but depends on a parametrized 10:42:50 # fixture. 10:42:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:42:50 10:42:50 # Check for (and return) cached value/exception. 10:42:50 if self.cached_result is not None: 10:42:50 request_cache_key = self.cache_key(request) 10:42:50 cache_key = self.cached_result[1] 10:42:50 try: 10:42:50 # Attempt to make a normal == check: this might fail for objects 10:42:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:42:50 cache_hit = bool(request_cache_key == cache_key) 10:42:50 except (ValueError, RuntimeError): 10:42:50 # If the comparison raises, use 'is' as fallback. 10:42:50 cache_hit = request_cache_key is cache_key 10:42:50 10:42:50 if cache_hit: 10:42:50 if self.cached_result[2] is not None: 10:42:50 exc, exc_tb = self.cached_result[2] 10:42:50 raise exc.with_traceback(exc_tb) 10:42:50 else: 10:42:50 return self.cached_result[0] 10:42:50 # We have a previous but differently parametrized fixture instance 10:42:50 # so we need to tear it down before creating a new one. 10:42:50 self.finish(request) 10:42:50 assert self.cached_result is None 10:42:50 10:42:50 # Add finalizer to requested fixtures we saved previously. 10:42:50 # We make sure to do this after checking for cached value to avoid 10:42:50 # adding our finalizer multiple times. (#12135) 10:42:50 finalizer = functools.partial(self.finish, request=request) 10:42:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:42:50 parent_fixture.addfinalizer(finalizer) 10:42:50 10:42:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:42:50 # which is executed last. 10:42:50 > assert not self._finalizers 10:42:50 ^^^^^^^^^^^^^^^^^^^^ 10:42:50 E AssertionError 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:42:50 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 10:42:50 10:42:50 cls = 10:42:50 func = . at 0x7f5969fd22a0> 10:42:50 when = 'setup' 10:42:50 reraise = (, ) 10:42:50 10:42:50 @classmethod 10:42:50 def from_call( 10:42:50 cls, 10:42:50 func: Callable[[], TResult], 10:42:50 when: Literal["collect", "setup", "call", "teardown"], 10:42:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:42:50 ) -> CallInfo[TResult]: 10:42:50 """Call func, wrapping the result in a CallInfo. 10:42:50 10:42:50 :param func: 10:42:50 The function to call. Called without arguments. 10:42:50 :type func: Callable[[], _pytest.runner.TResult] 10:42:50 :param when: 10:42:50 The phase in which the function is called. 10:42:50 :param reraise: 10:42:50 Exception or exceptions that shall propagate if raised by the 10:42:50 function, instead of being wrapped in the CallInfo. 10:42:50 """ 10:42:50 excinfo = None 10:42:50 instant = timing.Instant() 10:42:50 try: 10:42:50 > result: TResult | None = func() 10:42:50 ^^^^^^ 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:42:50 lambda: runtest_hook(item=item, **kwds), 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:42:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:42:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:42:50 yield 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:42:50 return (yield) 10:42:50 ^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:42:50 item.session._setupstate.setup(item) 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:42:50 col.setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:42:50 super().setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:42:50 self._request._fillfixtures() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:42:50 item.funcargs[argname] = self.getfixturevalue(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:42:50 fixturedef = self._get_active_fixturedef(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:42:50 fixturedef.execute(request=subrequest) 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 10:42:50 self = 10:42:50 request = > 10:42:50 10:42:50 def execute(self, request: SubRequest) -> FixtureValue: 10:42:50 """Return the value of this fixture, executing it if not cached.""" 10:42:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:42:50 # This needs to be done before checking if we have a cached value, since 10:42:50 # if a dependent fixture has their cache invalidated, e.g. due to 10:42:50 # parametrization, they finalize themselves and fixtures depending on it 10:42:50 # (which will likely include this fixture) setting `self.cached_result = None`. 10:42:50 # See #4871 10:42:50 requested_fixtures_that_should_finalize_us = [] 10:42:50 for argname in self.argnames: 10:42:50 fixturedef = request._get_active_fixturedef(argname) 10:42:50 # Saves requested fixtures in a list so we later can add our finalizer 10:42:50 # to them, ensuring that if a requested fixture gets torn down we get torn 10:42:50 # down first. This is generally handled by SetupState, but still currently 10:42:50 # needed when this fixture is not parametrized but depends on a parametrized 10:42:50 # fixture. 10:42:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:42:50 10:42:50 # Check for (and return) cached value/exception. 10:42:50 if self.cached_result is not None: 10:42:50 request_cache_key = self.cache_key(request) 10:42:50 cache_key = self.cached_result[1] 10:42:50 try: 10:42:50 # Attempt to make a normal == check: this might fail for objects 10:42:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:42:50 cache_hit = bool(request_cache_key == cache_key) 10:42:50 except (ValueError, RuntimeError): 10:42:50 # If the comparison raises, use 'is' as fallback. 10:42:50 cache_hit = request_cache_key is cache_key 10:42:50 10:42:50 if cache_hit: 10:42:50 if self.cached_result[2] is not None: 10:42:50 exc, exc_tb = self.cached_result[2] 10:42:50 raise exc.with_traceback(exc_tb) 10:42:50 else: 10:42:50 return self.cached_result[0] 10:42:50 # We have a previous but differently parametrized fixture instance 10:42:50 # so we need to tear it down before creating a new one. 10:42:50 self.finish(request) 10:42:50 assert self.cached_result is None 10:42:50 10:42:50 # Add finalizer to requested fixtures we saved previously. 10:42:50 # We make sure to do this after checking for cached value to avoid 10:42:50 # adding our finalizer multiple times. (#12135) 10:42:50 finalizer = functools.partial(self.finish, request=request) 10:42:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:42:50 parent_fixture.addfinalizer(finalizer) 10:42:50 10:42:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:42:50 # which is executed last. 10:42:50 > assert not self._finalizers 10:42:50 ^^^^^^^^^^^^^^^^^^^^ 10:42:50 E AssertionError 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:42:50 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 10:42:50 10:42:50 cls = 10:42:50 func = . at 0x7f596a68f1a0> 10:42:50 when = 'setup' 10:42:50 reraise = (, ) 10:42:50 10:42:50 @classmethod 10:42:50 def from_call( 10:42:50 cls, 10:42:50 func: Callable[[], TResult], 10:42:50 when: Literal["collect", "setup", "call", "teardown"], 10:42:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:42:50 ) -> CallInfo[TResult]: 10:42:50 """Call func, wrapping the result in a CallInfo. 10:42:50 10:42:50 :param func: 10:42:50 The function to call. Called without arguments. 10:42:50 :type func: Callable[[], _pytest.runner.TResult] 10:42:50 :param when: 10:42:50 The phase in which the function is called. 10:42:50 :param reraise: 10:42:50 Exception or exceptions that shall propagate if raised by the 10:42:50 function, instead of being wrapped in the CallInfo. 10:42:50 """ 10:42:50 excinfo = None 10:42:50 instant = timing.Instant() 10:42:50 try: 10:42:50 > result: TResult | None = func() 10:42:50 ^^^^^^ 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:42:50 lambda: runtest_hook(item=item, **kwds), 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:42:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:42:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:42:50 yield 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:42:50 return (yield) 10:42:50 ^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:42:50 item.session._setupstate.setup(item) 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:42:50 col.setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:42:50 super().setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:42:50 self._request._fillfixtures() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:42:50 item.funcargs[argname] = self.getfixturevalue(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:42:50 fixturedef = self._get_active_fixturedef(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:42:50 fixturedef.execute(request=subrequest) 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 10:42:50 self = 10:42:50 request = > 10:42:50 10:42:50 def execute(self, request: SubRequest) -> FixtureValue: 10:42:50 """Return the value of this fixture, executing it if not cached.""" 10:42:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:42:50 # This needs to be done before checking if we have a cached value, since 10:42:50 # if a dependent fixture has their cache invalidated, e.g. due to 10:42:50 # parametrization, they finalize themselves and fixtures depending on it 10:42:50 # (which will likely include this fixture) setting `self.cached_result = None`. 10:42:50 # See #4871 10:42:50 requested_fixtures_that_should_finalize_us = [] 10:42:50 for argname in self.argnames: 10:42:50 fixturedef = request._get_active_fixturedef(argname) 10:42:50 # Saves requested fixtures in a list so we later can add our finalizer 10:42:50 # to them, ensuring that if a requested fixture gets torn down we get torn 10:42:50 # down first. This is generally handled by SetupState, but still currently 10:42:50 # needed when this fixture is not parametrized but depends on a parametrized 10:42:50 # fixture. 10:42:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:42:50 10:42:50 # Check for (and return) cached value/exception. 10:42:50 if self.cached_result is not None: 10:42:50 request_cache_key = self.cache_key(request) 10:42:50 cache_key = self.cached_result[1] 10:42:50 try: 10:42:50 # Attempt to make a normal == check: this might fail for objects 10:42:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:42:50 cache_hit = bool(request_cache_key == cache_key) 10:42:50 except (ValueError, RuntimeError): 10:42:50 # If the comparison raises, use 'is' as fallback. 10:42:50 cache_hit = request_cache_key is cache_key 10:42:50 10:42:50 if cache_hit: 10:42:50 if self.cached_result[2] is not None: 10:42:50 exc, exc_tb = self.cached_result[2] 10:42:50 raise exc.with_traceback(exc_tb) 10:42:50 else: 10:42:50 return self.cached_result[0] 10:42:50 # We have a previous but differently parametrized fixture instance 10:42:50 # so we need to tear it down before creating a new one. 10:42:50 self.finish(request) 10:42:50 assert self.cached_result is None 10:42:50 10:42:50 # Add finalizer to requested fixtures we saved previously. 10:42:50 # We make sure to do this after checking for cached value to avoid 10:42:50 # adding our finalizer multiple times. (#12135) 10:42:50 finalizer = functools.partial(self.finish, request=request) 10:42:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:42:50 parent_fixture.addfinalizer(finalizer) 10:42:50 10:42:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:42:50 # which is executed last. 10:42:50 > assert not self._finalizers 10:42:50 ^^^^^^^^^^^^^^^^^^^^ 10:42:50 E AssertionError 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:42:50 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 10:42:50 10:42:50 cls = 10:42:50 func = . at 0x7f596a68c2c0> 10:42:50 when = 'setup' 10:42:50 reraise = (, ) 10:42:50 10:42:50 @classmethod 10:42:50 def from_call( 10:42:50 cls, 10:42:50 func: Callable[[], TResult], 10:42:50 when: Literal["collect", "setup", "call", "teardown"], 10:42:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:42:50 ) -> CallInfo[TResult]: 10:42:50 """Call func, wrapping the result in a CallInfo. 10:42:50 10:42:50 :param func: 10:42:50 The function to call. Called without arguments. 10:42:50 :type func: Callable[[], _pytest.runner.TResult] 10:42:50 :param when: 10:42:50 The phase in which the function is called. 10:42:50 :param reraise: 10:42:50 Exception or exceptions that shall propagate if raised by the 10:42:50 function, instead of being wrapped in the CallInfo. 10:42:50 """ 10:42:50 excinfo = None 10:42:50 instant = timing.Instant() 10:42:50 try: 10:42:50 > result: TResult | None = func() 10:42:50 ^^^^^^ 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:42:50 lambda: runtest_hook(item=item, **kwds), 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:42:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:42:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:42:50 yield 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:42:50 return (yield) 10:42:50 ^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:42:50 item.session._setupstate.setup(item) 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:42:50 col.setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:42:50 super().setup() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:42:50 self._request._fillfixtures() 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:42:50 item.funcargs[argname] = self.getfixturevalue(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:42:50 fixturedef = self._get_active_fixturedef(argname) 10:42:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:42:50 fixturedef.execute(request=subrequest) 10:42:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:42:50 10:42:50 self = 10:42:50 request = > 10:42:50 10:42:50 def execute(self, request: SubRequest) -> FixtureValue: 10:42:50 """Return the value of this fixture, executing it if not cached.""" 10:42:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:42:50 # This needs to be done before checking if we have a cached value, since 10:42:50 # if a dependent fixture has their cache invalidated, e.g. due to 10:42:50 # parametrization, they finalize themselves and fixtures depending on it 10:42:50 # (which will likely include this fixture) setting `self.cached_result = None`. 10:42:50 # See #4871 10:42:50 requested_fixtures_that_should_finalize_us = [] 10:42:50 for argname in self.argnames: 10:42:50 fixturedef = request._get_active_fixturedef(argname) 10:42:50 # Saves requested fixtures in a list so we later can add our finalizer 10:42:50 # to them, ensuring that if a requested fixture gets torn down we get torn 10:42:50 # down first. This is generally handled by SetupState, but still currently 10:42:50 # needed when this fixture is not parametrized but depends on a parametrized 10:42:50 # fixture. 10:42:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:42:50 10:42:50 # Check for (and return) cached value/exception. 10:42:50 if self.cached_result is not None: 10:42:50 request_cache_key = self.cache_key(request) 10:42:50 cache_key = self.cached_result[1] 10:42:50 try: 10:42:50 # Attempt to make a normal == check: this might fail for objects 10:42:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:42:50 cache_hit = bool(request_cache_key == cache_key) 10:42:50 except (ValueError, RuntimeError): 10:42:50 # If the comparison raises, use 'is' as fallback. 10:42:50 cache_hit = request_cache_key is cache_key 10:42:50 10:42:50 if cache_hit: 10:42:50 if self.cached_result[2] is not None: 10:42:50 exc, exc_tb = self.cached_result[2] 10:42:50 raise exc.with_traceback(exc_tb) 10:42:50 else: 10:42:50 return self.cached_result[0] 10:42:50 # We have a previous but differently parametrized fixture instance 10:42:50 # so we need to tear it down before creating a new one. 10:42:50 self.finish(request) 10:42:50 assert self.cached_result is None 10:42:50 10:42:50 # Add finalizer to requested fixtures we saved previously. 10:42:50 # We make sure to do this after checking for cached value to avoid 10:42:50 # adding our finalizer multiple times. (#12135) 10:42:50 finalizer = functools.partial(self.finish, request=request) 10:42:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:42:50 parent_fixture.addfinalizer(finalizer) 10:42:50 10:42:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:42:50 # which is executed last. 10:42:50 > assert not self._finalizers 10:42:50 ^^^^^^^^^^^^^^^^^^^^ 10:42:50 E AssertionError 10:42:50 10:42:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:42:50 =========================== short test summary info ============================ 10:42:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 10:42:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 10:42:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 10:42:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 10:42:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 10:42:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 10:42:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 10:42:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 10:42:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 10:42:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 10:42:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 10:42:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 10:42:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 10:42:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 10:42:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 10:42:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 10:42:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 10:42:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 10:42:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 10:42:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 10:42:50 20 errors in 123.86s (0:02:03) 10:42:50 testsPCE: exit 1 (124.19 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce pid=4171 10:42:50 testsPCE: FAIL ✖ in 2 minutes 51.14 seconds 10:42:50 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 10:42:57 tests_tapi: freeze> python -m pip freeze --all 10:42:58 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 10:42:58 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi 10:42:58 using environment variables from ./karaf221.env 10:42:58 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 10:44:38 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 10:44:47 ==================================== ERRORS ==================================== 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 10:44:47 10:44:47 cls = 10:44:47 10:44:47 @classmethod 10:44:47 def setUpClass(cls): 10:44:47 cls.init_failed = False 10:44:47 os.environ['JAVA_MIN_MEM'] = '1024M' 10:44:47 os.environ['JAVA_MAX_MEM'] = '4096M' 10:44:47 > cls.processes = test_utils.start_tpce() 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 10:44:47 transportpce_tests/tapi/test01_abstracted_topology.py:148: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 def start_tpce(): 10:44:47 if 'NO_ODL_STARTUP' in os.environ: 10:44:47 print('No OpenDaylight instance to start!') 10:44:47 return [] 10:44:47 print('starting OpenDaylight...') 10:44:47 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 10:44:47 process = start_lighty() 10:44:47 else: 10:44:47 process = start_karaf() 10:44:47 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 10:44:47 print('OpenDaylight started !') 10:44:47 else: 10:44:47 print('OpenDaylight failed to start !') 10:44:47 shutdown_process(process) 10:44:47 for pid in process_list: 10:44:47 shutdown_process(pid) 10:44:47 > sys.exit(1) 10:44:47 E SystemExit: 1 10:44:47 10:44:47 transportpce_tests/common/test_utils.py:234: SystemExit 10:44:47 ---------------------------- Captured stdout setup ----------------------------- 10:44:47 starting OpenDaylight... 10:44:47 starting KARAF (karaf221) TransportPCE build... 10:44:47 Pattern not found after 100 seconds! OpenDaylight failed to start ! 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d42f740> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d487c40> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39fb23060> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39ed7f060> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d487100> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d42db20> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d4876a0> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39fb23060> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d42e2a0> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39fb23060> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d06e020> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39fb23060> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d42da80> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d06e5c0> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d42e8e0> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d42e480> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d487100> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d42e480> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39fb23060> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d42e8e0> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39fb23060> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d06dbc0> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d42e8e0> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d06dbc0> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d06cd60> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d42e8e0> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d06c7c0> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d06eac0> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d42e8e0> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d06d300> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d06eac0> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d42e8e0> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d06da80> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d06efc0> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d42e8e0> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d06de40> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d42e8e0> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d06e020> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d06e340> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d42e8e0> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d06e340> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d06f240> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d42e8e0> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d06f420> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d06f560> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d42e8e0> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d06e3e0> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d06da80> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d42e8e0> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 10:44:47 10:44:47 cls = 10:44:47 func = . at 0x7fc39d06f060> 10:44:47 when = 'setup' 10:44:47 reraise = (, ) 10:44:47 10:44:47 @classmethod 10:44:47 def from_call( 10:44:47 cls, 10:44:47 func: Callable[[], TResult], 10:44:47 when: Literal["collect", "setup", "call", "teardown"], 10:44:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:44:47 ) -> CallInfo[TResult]: 10:44:47 """Call func, wrapping the result in a CallInfo. 10:44:47 10:44:47 :param func: 10:44:47 The function to call. Called without arguments. 10:44:47 :type func: Callable[[], _pytest.runner.TResult] 10:44:47 :param when: 10:44:47 The phase in which the function is called. 10:44:47 :param reraise: 10:44:47 Exception or exceptions that shall propagate if raised by the 10:44:47 function, instead of being wrapped in the CallInfo. 10:44:47 """ 10:44:47 excinfo = None 10:44:47 instant = timing.Instant() 10:44:47 try: 10:44:47 > result: TResult | None = func() 10:44:47 ^^^^^^ 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:44:47 lambda: runtest_hook(item=item, **kwds), 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:44:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:44:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:44:47 yield 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:44:47 return (yield) 10:44:47 ^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:44:47 item.session._setupstate.setup(item) 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:44:47 col.setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:44:47 super().setup() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:44:47 self._request._fillfixtures() 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:44:47 item.funcargs[argname] = self.getfixturevalue(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:44:47 fixturedef = self._get_active_fixturedef(argname) 10:44:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:44:47 fixturedef.execute(request=subrequest) 10:44:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:44:47 10:44:47 self = 10:44:47 request = > 10:44:47 10:44:47 def execute(self, request: SubRequest) -> FixtureValue: 10:44:47 """Return the value of this fixture, executing it if not cached.""" 10:44:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:44:47 # This needs to be done before checking if we have a cached value, since 10:44:47 # if a dependent fixture has their cache invalidated, e.g. due to 10:44:47 # parametrization, they finalize themselves and fixtures depending on it 10:44:47 # (which will likely include this fixture) setting `self.cached_result = None`. 10:44:47 # See #4871 10:44:47 requested_fixtures_that_should_finalize_us = [] 10:44:47 for argname in self.argnames: 10:44:47 fixturedef = request._get_active_fixturedef(argname) 10:44:47 # Saves requested fixtures in a list so we later can add our finalizer 10:44:47 # to them, ensuring that if a requested fixture gets torn down we get torn 10:44:47 # down first. This is generally handled by SetupState, but still currently 10:44:47 # needed when this fixture is not parametrized but depends on a parametrized 10:44:47 # fixture. 10:44:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:44:47 10:44:47 # Check for (and return) cached value/exception. 10:44:47 if self.cached_result is not None: 10:44:47 request_cache_key = self.cache_key(request) 10:44:47 cache_key = self.cached_result[1] 10:44:47 try: 10:44:47 # Attempt to make a normal == check: this might fail for objects 10:44:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:44:47 cache_hit = bool(request_cache_key == cache_key) 10:44:47 except (ValueError, RuntimeError): 10:44:47 # If the comparison raises, use 'is' as fallback. 10:44:47 cache_hit = request_cache_key is cache_key 10:44:47 10:44:47 if cache_hit: 10:44:47 if self.cached_result[2] is not None: 10:44:47 exc, exc_tb = self.cached_result[2] 10:44:47 raise exc.with_traceback(exc_tb) 10:44:47 else: 10:44:47 return self.cached_result[0] 10:44:47 # We have a previous but differently parametrized fixture instance 10:44:47 # so we need to tear it down before creating a new one. 10:44:47 self.finish(request) 10:44:47 assert self.cached_result is None 10:44:47 10:44:47 # Add finalizer to requested fixtures we saved previously. 10:44:47 # We make sure to do this after checking for cached value to avoid 10:44:47 # adding our finalizer multiple times. (#12135) 10:44:47 finalizer = functools.partial(self.finish, request=request) 10:44:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:44:47 parent_fixture.addfinalizer(finalizer) 10:44:47 10:44:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:44:47 # which is executed last. 10:44:47 > assert not self._finalizers 10:44:47 ^^^^^^^^^^^^^^^^^^^^ 10:44:47 E AssertionError 10:44:47 10:44:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:44:47 =========================== short test summary info ============================ 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 10:44:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 10:44:47 51 errors in 109.25s (0:01:49) 10:44:47 tests_tapi: exit 1 (109.55 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi pid=4245 10:44:47 tests_tapi: FAIL ✖ in 1 minute 57 seconds 10:44:47 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 10:44:47 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 10:44:56 tests200: freeze> python -m pip freeze --all 10:44:56 tests221: freeze> python -m pip freeze --all 10:44:56 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 10:44:56 tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 10:44:56 using environment variables from ./karafoc200.env 10:44:56 pytest -q transportpce_tests/oc200/test01_portmapping.py 10:44:56 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 10:44:56 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 10:44:56 using environment variables from ./karaf221.env 10:44:56 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 10:46:36 EEEEEEEEEEEEEEEEEEE [100%] 10:46:38 ==================================== ERRORS ==================================== 10:46:38 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 10:46:38 10:46:38 cls = 10:46:38 10:46:38 @classmethod 10:46:38 def setUpClass(cls): 10:46:38 > cls.processes = test_utils.start_tpce() 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 10:46:38 transportpce_tests/oc200/test01_portmapping.py:29: 10:46:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:38 10:46:38 def start_tpce(): 10:46:38 if 'NO_ODL_STARTUP' in os.environ: 10:46:38 print('No OpenDaylight instance to start!') 10:46:38 return [] 10:46:38 print('starting OpenDaylight...') 10:46:38 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 10:46:38 process = start_lighty() 10:46:38 else: 10:46:38 process = start_karaf() 10:46:38 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 10:46:38 print('OpenDaylight started !') 10:46:38 else: 10:46:38 print('OpenDaylight failed to start !') 10:46:38 shutdown_process(process) 10:46:38 for pid in process_list: 10:46:38 shutdown_process(pid) 10:46:38 > sys.exit(1) 10:46:38 E SystemExit: 1 10:46:38 10:46:38 transportpce_tests/common/test_utils.py:234: SystemExit 10:46:38 ---------------------------- Captured stdout setup ----------------------------- 10:46:38 starting OpenDaylight... 10:46:38 starting KARAF (karafoc200) TransportPCE build... 10:46:38 Pattern not found after 100 seconds! OpenDaylight failed to start ! 10:46:38 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catalog_input_insertion _ 10:46:38 10:46:38 cls = 10:46:38 func = . at 0x7fd24b737420> 10:46:38 when = 'setup' 10:46:38 reraise = (, ) 10:46:38 10:46:38 @classmethod 10:46:38 def from_call( 10:46:38 cls, 10:46:38 func: Callable[[], TResult], 10:46:38 when: Literal["collect", "setup", "call", "teardown"], 10:46:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:38 ) -> CallInfo[TResult]: 10:46:38 """Call func, wrapping the result in a CallInfo. 10:46:38 10:46:38 :param func: 10:46:38 The function to call. Called without arguments. 10:46:38 :type func: Callable[[], _pytest.runner.TResult] 10:46:38 :param when: 10:46:38 The phase in which the function is called. 10:46:38 :param reraise: 10:46:38 Exception or exceptions that shall propagate if raised by the 10:46:38 function, instead of being wrapped in the CallInfo. 10:46:38 """ 10:46:38 excinfo = None 10:46:38 instant = timing.Instant() 10:46:38 try: 10:46:38 > result: TResult | None = func() 10:46:38 ^^^^^^ 10:46:38 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:38 lambda: runtest_hook(item=item, **kwds), 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:38 yield 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:38 return (yield) 10:46:38 ^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:38 item.session._setupstate.setup(item) 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:38 col.setup() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:38 super().setup() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:38 self._request._fillfixtures() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:38 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:38 fixturedef = self._get_active_fixturedef(argname) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:38 fixturedef.execute(request=subrequest) 10:46:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:38 10:46:38 self = 10:46:38 request = > 10:46:38 10:46:38 def execute(self, request: SubRequest) -> FixtureValue: 10:46:38 """Return the value of this fixture, executing it if not cached.""" 10:46:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:38 # This needs to be done before checking if we have a cached value, since 10:46:38 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:38 # parametrization, they finalize themselves and fixtures depending on it 10:46:38 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:38 # See #4871 10:46:38 requested_fixtures_that_should_finalize_us = [] 10:46:38 for argname in self.argnames: 10:46:38 fixturedef = request._get_active_fixturedef(argname) 10:46:38 # Saves requested fixtures in a list so we later can add our finalizer 10:46:38 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:38 # down first. This is generally handled by SetupState, but still currently 10:46:38 # needed when this fixture is not parametrized but depends on a parametrized 10:46:38 # fixture. 10:46:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:38 10:46:38 # Check for (and return) cached value/exception. 10:46:38 if self.cached_result is not None: 10:46:38 request_cache_key = self.cache_key(request) 10:46:38 cache_key = self.cached_result[1] 10:46:38 try: 10:46:38 # Attempt to make a normal == check: this might fail for objects 10:46:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:38 cache_hit = bool(request_cache_key == cache_key) 10:46:38 except (ValueError, RuntimeError): 10:46:38 # If the comparison raises, use 'is' as fallback. 10:46:38 cache_hit = request_cache_key is cache_key 10:46:38 10:46:38 if cache_hit: 10:46:38 if self.cached_result[2] is not None: 10:46:38 exc, exc_tb = self.cached_result[2] 10:46:38 raise exc.with_traceback(exc_tb) 10:46:38 else: 10:46:38 return self.cached_result[0] 10:46:38 # We have a previous but differently parametrized fixture instance 10:46:38 # so we need to tear it down before creating a new one. 10:46:38 self.finish(request) 10:46:38 assert self.cached_result is None 10:46:38 10:46:38 # Add finalizer to requested fixtures we saved previously. 10:46:38 # We make sure to do this after checking for cached value to avoid 10:46:38 # adding our finalizer multiple times. (#12135) 10:46:38 finalizer = functools.partial(self.finish, request=request) 10:46:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:38 parent_fixture.addfinalizer(finalizer) 10:46:38 10:46:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:38 # which is executed last. 10:46:38 > assert not self._finalizers 10:46:38 ^^^^^^^^^^^^^^^^^^^^ 10:46:38 E AssertionError 10:46:38 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:38 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 10:46:38 10:46:38 cls = 10:46:38 func = . at 0x7fd24904bec0> 10:46:38 when = 'setup' 10:46:38 reraise = (, ) 10:46:38 10:46:38 @classmethod 10:46:38 def from_call( 10:46:38 cls, 10:46:38 func: Callable[[], TResult], 10:46:38 when: Literal["collect", "setup", "call", "teardown"], 10:46:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:38 ) -> CallInfo[TResult]: 10:46:38 """Call func, wrapping the result in a CallInfo. 10:46:38 10:46:38 :param func: 10:46:38 The function to call. Called without arguments. 10:46:38 :type func: Callable[[], _pytest.runner.TResult] 10:46:38 :param when: 10:46:38 The phase in which the function is called. 10:46:38 :param reraise: 10:46:38 Exception or exceptions that shall propagate if raised by the 10:46:38 function, instead of being wrapped in the CallInfo. 10:46:38 """ 10:46:38 excinfo = None 10:46:38 instant = timing.Instant() 10:46:38 try: 10:46:38 > result: TResult | None = func() 10:46:38 ^^^^^^ 10:46:38 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:38 lambda: runtest_hook(item=item, **kwds), 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:38 yield 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:38 return (yield) 10:46:38 ^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:38 item.session._setupstate.setup(item) 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:38 col.setup() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:38 super().setup() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:38 self._request._fillfixtures() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:38 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:38 fixturedef = self._get_active_fixturedef(argname) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:38 fixturedef.execute(request=subrequest) 10:46:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:38 10:46:38 self = 10:46:38 request = > 10:46:38 10:46:38 def execute(self, request: SubRequest) -> FixtureValue: 10:46:38 """Return the value of this fixture, executing it if not cached.""" 10:46:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:38 # This needs to be done before checking if we have a cached value, since 10:46:38 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:38 # parametrization, they finalize themselves and fixtures depending on it 10:46:38 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:38 # See #4871 10:46:38 requested_fixtures_that_should_finalize_us = [] 10:46:38 for argname in self.argnames: 10:46:38 fixturedef = request._get_active_fixturedef(argname) 10:46:38 # Saves requested fixtures in a list so we later can add our finalizer 10:46:38 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:38 # down first. This is generally handled by SetupState, but still currently 10:46:38 # needed when this fixture is not parametrized but depends on a parametrized 10:46:38 # fixture. 10:46:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:38 10:46:38 # Check for (and return) cached value/exception. 10:46:38 if self.cached_result is not None: 10:46:38 request_cache_key = self.cache_key(request) 10:46:38 cache_key = self.cached_result[1] 10:46:38 try: 10:46:38 # Attempt to make a normal == check: this might fail for objects 10:46:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:38 cache_hit = bool(request_cache_key == cache_key) 10:46:38 except (ValueError, RuntimeError): 10:46:38 # If the comparison raises, use 'is' as fallback. 10:46:38 cache_hit = request_cache_key is cache_key 10:46:38 10:46:38 if cache_hit: 10:46:38 if self.cached_result[2] is not None: 10:46:38 exc, exc_tb = self.cached_result[2] 10:46:38 raise exc.with_traceback(exc_tb) 10:46:38 else: 10:46:38 return self.cached_result[0] 10:46:38 # We have a previous but differently parametrized fixture instance 10:46:38 # so we need to tear it down before creating a new one. 10:46:38 self.finish(request) 10:46:38 assert self.cached_result is None 10:46:38 10:46:38 # Add finalizer to requested fixtures we saved previously. 10:46:38 # We make sure to do this after checking for cached value to avoid 10:46:38 # adding our finalizer multiple times. (#12135) 10:46:38 finalizer = functools.partial(self.finish, request=request) 10:46:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:38 parent_fixture.addfinalizer(finalizer) 10:46:38 10:46:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:38 # which is executed last. 10:46:38 > assert not self._finalizers 10:46:38 ^^^^^^^^^^^^^^^^^^^^ 10:46:38 E AssertionError 10:46:38 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:38 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 10:46:38 10:46:38 cls = 10:46:38 func = . at 0x7fd24a7eb600> 10:46:38 when = 'setup' 10:46:38 reraise = (, ) 10:46:38 10:46:38 @classmethod 10:46:38 def from_call( 10:46:38 cls, 10:46:38 func: Callable[[], TResult], 10:46:38 when: Literal["collect", "setup", "call", "teardown"], 10:46:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:38 ) -> CallInfo[TResult]: 10:46:38 """Call func, wrapping the result in a CallInfo. 10:46:38 10:46:38 :param func: 10:46:38 The function to call. Called without arguments. 10:46:38 :type func: Callable[[], _pytest.runner.TResult] 10:46:38 :param when: 10:46:38 The phase in which the function is called. 10:46:38 :param reraise: 10:46:38 Exception or exceptions that shall propagate if raised by the 10:46:38 function, instead of being wrapped in the CallInfo. 10:46:38 """ 10:46:38 excinfo = None 10:46:38 instant = timing.Instant() 10:46:38 try: 10:46:38 > result: TResult | None = func() 10:46:38 ^^^^^^ 10:46:38 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:38 lambda: runtest_hook(item=item, **kwds), 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:38 yield 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:38 return (yield) 10:46:38 ^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:38 item.session._setupstate.setup(item) 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:38 col.setup() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:38 super().setup() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:38 self._request._fillfixtures() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:38 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:38 fixturedef = self._get_active_fixturedef(argname) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:38 fixturedef.execute(request=subrequest) 10:46:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:38 10:46:38 self = 10:46:38 request = > 10:46:38 10:46:38 def execute(self, request: SubRequest) -> FixtureValue: 10:46:38 """Return the value of this fixture, executing it if not cached.""" 10:46:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:38 # This needs to be done before checking if we have a cached value, since 10:46:38 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:38 # parametrization, they finalize themselves and fixtures depending on it 10:46:38 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:38 # See #4871 10:46:38 requested_fixtures_that_should_finalize_us = [] 10:46:38 for argname in self.argnames: 10:46:38 fixturedef = request._get_active_fixturedef(argname) 10:46:38 # Saves requested fixtures in a list so we later can add our finalizer 10:46:38 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:38 # down first. This is generally handled by SetupState, but still currently 10:46:38 # needed when this fixture is not parametrized but depends on a parametrized 10:46:38 # fixture. 10:46:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:38 10:46:38 # Check for (and return) cached value/exception. 10:46:38 if self.cached_result is not None: 10:46:38 request_cache_key = self.cache_key(request) 10:46:38 cache_key = self.cached_result[1] 10:46:38 try: 10:46:38 # Attempt to make a normal == check: this might fail for objects 10:46:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:38 cache_hit = bool(request_cache_key == cache_key) 10:46:38 except (ValueError, RuntimeError): 10:46:38 # If the comparison raises, use 'is' as fallback. 10:46:38 cache_hit = request_cache_key is cache_key 10:46:38 10:46:38 if cache_hit: 10:46:38 if self.cached_result[2] is not None: 10:46:38 exc, exc_tb = self.cached_result[2] 10:46:38 raise exc.with_traceback(exc_tb) 10:46:38 else: 10:46:38 return self.cached_result[0] 10:46:38 # We have a previous but differently parametrized fixture instance 10:46:38 # so we need to tear it down before creating a new one. 10:46:38 self.finish(request) 10:46:38 assert self.cached_result is None 10:46:38 10:46:38 # Add finalizer to requested fixtures we saved previously. 10:46:38 # We make sure to do this after checking for cached value to avoid 10:46:38 # adding our finalizer multiple times. (#12135) 10:46:38 finalizer = functools.partial(self.finish, request=request) 10:46:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:38 parent_fixture.addfinalizer(finalizer) 10:46:38 10:46:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:38 # which is executed last. 10:46:38 > assert not self._finalizers 10:46:38 ^^^^^^^^^^^^^^^^^^^^ 10:46:38 E AssertionError 10:46:38 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:38 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 10:46:38 10:46:38 cls = 10:46:38 func = . at 0x7fd249027740> 10:46:38 when = 'setup' 10:46:38 reraise = (, ) 10:46:38 10:46:38 @classmethod 10:46:38 def from_call( 10:46:38 cls, 10:46:38 func: Callable[[], TResult], 10:46:38 when: Literal["collect", "setup", "call", "teardown"], 10:46:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:38 ) -> CallInfo[TResult]: 10:46:38 """Call func, wrapping the result in a CallInfo. 10:46:38 10:46:38 :param func: 10:46:38 The function to call. Called without arguments. 10:46:38 :type func: Callable[[], _pytest.runner.TResult] 10:46:38 :param when: 10:46:38 The phase in which the function is called. 10:46:38 :param reraise: 10:46:38 Exception or exceptions that shall propagate if raised by the 10:46:38 function, instead of being wrapped in the CallInfo. 10:46:38 """ 10:46:38 excinfo = None 10:46:38 instant = timing.Instant() 10:46:38 try: 10:46:38 > result: TResult | None = func() 10:46:38 ^^^^^^ 10:46:38 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:38 lambda: runtest_hook(item=item, **kwds), 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:38 yield 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:38 return (yield) 10:46:38 ^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:38 item.session._setupstate.setup(item) 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:38 col.setup() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:38 super().setup() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:38 self._request._fillfixtures() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:38 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:38 fixturedef = self._get_active_fixturedef(argname) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:38 fixturedef.execute(request=subrequest) 10:46:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:38 10:46:38 self = 10:46:38 request = > 10:46:38 10:46:38 def execute(self, request: SubRequest) -> FixtureValue: 10:46:38 """Return the value of this fixture, executing it if not cached.""" 10:46:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:38 # This needs to be done before checking if we have a cached value, since 10:46:38 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:38 # parametrization, they finalize themselves and fixtures depending on it 10:46:38 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:38 # See #4871 10:46:38 requested_fixtures_that_should_finalize_us = [] 10:46:38 for argname in self.argnames: 10:46:38 fixturedef = request._get_active_fixturedef(argname) 10:46:38 # Saves requested fixtures in a list so we later can add our finalizer 10:46:38 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:38 # down first. This is generally handled by SetupState, but still currently 10:46:38 # needed when this fixture is not parametrized but depends on a parametrized 10:46:38 # fixture. 10:46:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:38 10:46:38 # Check for (and return) cached value/exception. 10:46:38 if self.cached_result is not None: 10:46:38 request_cache_key = self.cache_key(request) 10:46:38 cache_key = self.cached_result[1] 10:46:38 try: 10:46:38 # Attempt to make a normal == check: this might fail for objects 10:46:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:38 cache_hit = bool(request_cache_key == cache_key) 10:46:38 except (ValueError, RuntimeError): 10:46:38 # If the comparison raises, use 'is' as fallback. 10:46:38 cache_hit = request_cache_key is cache_key 10:46:38 10:46:38 if cache_hit: 10:46:38 if self.cached_result[2] is not None: 10:46:38 exc, exc_tb = self.cached_result[2] 10:46:38 raise exc.with_traceback(exc_tb) 10:46:38 else: 10:46:38 return self.cached_result[0] 10:46:38 # We have a previous but differently parametrized fixture instance 10:46:38 # so we need to tear it down before creating a new one. 10:46:38 self.finish(request) 10:46:38 assert self.cached_result is None 10:46:38 10:46:38 # Add finalizer to requested fixtures we saved previously. 10:46:38 # We make sure to do this after checking for cached value to avoid 10:46:38 # adding our finalizer multiple times. (#12135) 10:46:38 finalizer = functools.partial(self.finish, request=request) 10:46:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:38 parent_fixture.addfinalizer(finalizer) 10:46:38 10:46:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:38 # which is executed last. 10:46:38 > assert not self._finalizers 10:46:38 ^^^^^^^^^^^^^^^^^^^^ 10:46:38 E AssertionError 10:46:38 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:38 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 10:46:38 10:46:38 cls = 10:46:38 func = . at 0x7fd24b737420> 10:46:38 when = 'setup' 10:46:38 reraise = (, ) 10:46:38 10:46:38 @classmethod 10:46:38 def from_call( 10:46:38 cls, 10:46:38 func: Callable[[], TResult], 10:46:38 when: Literal["collect", "setup", "call", "teardown"], 10:46:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:38 ) -> CallInfo[TResult]: 10:46:38 """Call func, wrapping the result in a CallInfo. 10:46:38 10:46:38 :param func: 10:46:38 The function to call. Called without arguments. 10:46:38 :type func: Callable[[], _pytest.runner.TResult] 10:46:38 :param when: 10:46:38 The phase in which the function is called. 10:46:38 :param reraise: 10:46:38 Exception or exceptions that shall propagate if raised by the 10:46:38 function, instead of being wrapped in the CallInfo. 10:46:38 """ 10:46:38 excinfo = None 10:46:38 instant = timing.Instant() 10:46:38 try: 10:46:38 > result: TResult | None = func() 10:46:38 ^^^^^^ 10:46:38 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:38 lambda: runtest_hook(item=item, **kwds), 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:38 yield 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:38 return (yield) 10:46:38 ^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:38 item.session._setupstate.setup(item) 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:38 col.setup() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:38 super().setup() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:38 self._request._fillfixtures() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:38 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:38 fixturedef = self._get_active_fixturedef(argname) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:38 fixturedef.execute(request=subrequest) 10:46:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:38 10:46:38 self = 10:46:38 request = > 10:46:38 10:46:38 def execute(self, request: SubRequest) -> FixtureValue: 10:46:38 """Return the value of this fixture, executing it if not cached.""" 10:46:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:38 # This needs to be done before checking if we have a cached value, since 10:46:38 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:38 # parametrization, they finalize themselves and fixtures depending on it 10:46:38 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:38 # See #4871 10:46:38 requested_fixtures_that_should_finalize_us = [] 10:46:38 for argname in self.argnames: 10:46:38 fixturedef = request._get_active_fixturedef(argname) 10:46:38 # Saves requested fixtures in a list so we later can add our finalizer 10:46:38 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:38 # down first. This is generally handled by SetupState, but still currently 10:46:38 # needed when this fixture is not parametrized but depends on a parametrized 10:46:38 # fixture. 10:46:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:38 10:46:38 # Check for (and return) cached value/exception. 10:46:38 if self.cached_result is not None: 10:46:38 request_cache_key = self.cache_key(request) 10:46:38 cache_key = self.cached_result[1] 10:46:38 try: 10:46:38 # Attempt to make a normal == check: this might fail for objects 10:46:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:38 cache_hit = bool(request_cache_key == cache_key) 10:46:38 except (ValueError, RuntimeError): 10:46:38 # If the comparison raises, use 'is' as fallback. 10:46:38 cache_hit = request_cache_key is cache_key 10:46:38 10:46:38 if cache_hit: 10:46:38 if self.cached_result[2] is not None: 10:46:38 exc, exc_tb = self.cached_result[2] 10:46:38 raise exc.with_traceback(exc_tb) 10:46:38 else: 10:46:38 return self.cached_result[0] 10:46:38 # We have a previous but differently parametrized fixture instance 10:46:38 # so we need to tear it down before creating a new one. 10:46:38 self.finish(request) 10:46:38 assert self.cached_result is None 10:46:38 10:46:38 # Add finalizer to requested fixtures we saved previously. 10:46:38 # We make sure to do this after checking for cached value to avoid 10:46:38 # adding our finalizer multiple times. (#12135) 10:46:38 finalizer = functools.partial(self.finish, request=request) 10:46:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:38 parent_fixture.addfinalizer(finalizer) 10:46:38 10:46:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:38 # which is executed last. 10:46:38 > assert not self._finalizers 10:46:38 ^^^^^^^^^^^^^^^^^^^^ 10:46:38 E AssertionError 10:46:38 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:38 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 10:46:38 10:46:38 cls = 10:46:38 func = . at 0x7fd24a7eb600> 10:46:38 when = 'setup' 10:46:38 reraise = (, ) 10:46:38 10:46:38 @classmethod 10:46:38 def from_call( 10:46:38 cls, 10:46:38 func: Callable[[], TResult], 10:46:38 when: Literal["collect", "setup", "call", "teardown"], 10:46:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:38 ) -> CallInfo[TResult]: 10:46:38 """Call func, wrapping the result in a CallInfo. 10:46:38 10:46:38 :param func: 10:46:38 The function to call. Called without arguments. 10:46:38 :type func: Callable[[], _pytest.runner.TResult] 10:46:38 :param when: 10:46:38 The phase in which the function is called. 10:46:38 :param reraise: 10:46:38 Exception or exceptions that shall propagate if raised by the 10:46:38 function, instead of being wrapped in the CallInfo. 10:46:38 """ 10:46:38 excinfo = None 10:46:38 instant = timing.Instant() 10:46:38 try: 10:46:38 > result: TResult | None = func() 10:46:38 ^^^^^^ 10:46:38 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:38 lambda: runtest_hook(item=item, **kwds), 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:38 yield 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:38 return (yield) 10:46:38 ^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:38 item.session._setupstate.setup(item) 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:38 col.setup() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:38 super().setup() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:38 self._request._fillfixtures() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:38 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:38 fixturedef = self._get_active_fixturedef(argname) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:38 fixturedef.execute(request=subrequest) 10:46:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:38 10:46:38 self = 10:46:38 request = > 10:46:38 10:46:38 def execute(self, request: SubRequest) -> FixtureValue: 10:46:38 """Return the value of this fixture, executing it if not cached.""" 10:46:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:38 # This needs to be done before checking if we have a cached value, since 10:46:38 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:38 # parametrization, they finalize themselves and fixtures depending on it 10:46:38 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:38 # See #4871 10:46:38 requested_fixtures_that_should_finalize_us = [] 10:46:38 for argname in self.argnames: 10:46:38 fixturedef = request._get_active_fixturedef(argname) 10:46:38 # Saves requested fixtures in a list so we later can add our finalizer 10:46:38 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:38 # down first. This is generally handled by SetupState, but still currently 10:46:38 # needed when this fixture is not parametrized but depends on a parametrized 10:46:38 # fixture. 10:46:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:38 10:46:38 # Check for (and return) cached value/exception. 10:46:38 if self.cached_result is not None: 10:46:38 request_cache_key = self.cache_key(request) 10:46:38 cache_key = self.cached_result[1] 10:46:38 try: 10:46:38 # Attempt to make a normal == check: this might fail for objects 10:46:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:38 cache_hit = bool(request_cache_key == cache_key) 10:46:38 except (ValueError, RuntimeError): 10:46:38 # If the comparison raises, use 'is' as fallback. 10:46:38 cache_hit = request_cache_key is cache_key 10:46:38 10:46:38 if cache_hit: 10:46:38 if self.cached_result[2] is not None: 10:46:38 exc, exc_tb = self.cached_result[2] 10:46:38 raise exc.with_traceback(exc_tb) 10:46:38 else: 10:46:38 return self.cached_result[0] 10:46:38 # We have a previous but differently parametrized fixture instance 10:46:38 # so we need to tear it down before creating a new one. 10:46:38 self.finish(request) 10:46:38 assert self.cached_result is None 10:46:38 10:46:38 # Add finalizer to requested fixtures we saved previously. 10:46:38 # We make sure to do this after checking for cached value to avoid 10:46:38 # adding our finalizer multiple times. (#12135) 10:46:38 finalizer = functools.partial(self.finish, request=request) 10:46:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:38 parent_fixture.addfinalizer(finalizer) 10:46:38 10:46:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:38 # which is executed last. 10:46:38 > assert not self._finalizers 10:46:38 ^^^^^^^^^^^^^^^^^^^^ 10:46:38 E AssertionError 10:46:38 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:38 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 10:46:38 10:46:38 cls = 10:46:38 func = . at 0x7fd24904b880> 10:46:38 when = 'setup' 10:46:38 reraise = (, ) 10:46:38 10:46:38 @classmethod 10:46:38 def from_call( 10:46:38 cls, 10:46:38 func: Callable[[], TResult], 10:46:38 when: Literal["collect", "setup", "call", "teardown"], 10:46:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:38 ) -> CallInfo[TResult]: 10:46:38 """Call func, wrapping the result in a CallInfo. 10:46:38 10:46:38 :param func: 10:46:38 The function to call. Called without arguments. 10:46:38 :type func: Callable[[], _pytest.runner.TResult] 10:46:38 :param when: 10:46:38 The phase in which the function is called. 10:46:38 :param reraise: 10:46:38 Exception or exceptions that shall propagate if raised by the 10:46:38 function, instead of being wrapped in the CallInfo. 10:46:38 """ 10:46:38 excinfo = None 10:46:38 instant = timing.Instant() 10:46:38 try: 10:46:38 > result: TResult | None = func() 10:46:38 ^^^^^^ 10:46:38 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:38 lambda: runtest_hook(item=item, **kwds), 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:38 yield 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:38 return (yield) 10:46:38 ^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:38 item.session._setupstate.setup(item) 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:38 col.setup() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:38 super().setup() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:38 self._request._fillfixtures() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:38 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:38 fixturedef = self._get_active_fixturedef(argname) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:38 fixturedef.execute(request=subrequest) 10:46:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:38 10:46:38 self = 10:46:38 request = > 10:46:38 10:46:38 def execute(self, request: SubRequest) -> FixtureValue: 10:46:38 """Return the value of this fixture, executing it if not cached.""" 10:46:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:38 # This needs to be done before checking if we have a cached value, since 10:46:38 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:38 # parametrization, they finalize themselves and fixtures depending on it 10:46:38 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:38 # See #4871 10:46:38 requested_fixtures_that_should_finalize_us = [] 10:46:38 for argname in self.argnames: 10:46:38 fixturedef = request._get_active_fixturedef(argname) 10:46:38 # Saves requested fixtures in a list so we later can add our finalizer 10:46:38 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:38 # down first. This is generally handled by SetupState, but still currently 10:46:38 # needed when this fixture is not parametrized but depends on a parametrized 10:46:38 # fixture. 10:46:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:38 10:46:38 # Check for (and return) cached value/exception. 10:46:38 if self.cached_result is not None: 10:46:38 request_cache_key = self.cache_key(request) 10:46:38 cache_key = self.cached_result[1] 10:46:38 try: 10:46:38 # Attempt to make a normal == check: this might fail for objects 10:46:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:38 cache_hit = bool(request_cache_key == cache_key) 10:46:38 except (ValueError, RuntimeError): 10:46:38 # If the comparison raises, use 'is' as fallback. 10:46:38 cache_hit = request_cache_key is cache_key 10:46:38 10:46:38 if cache_hit: 10:46:38 if self.cached_result[2] is not None: 10:46:38 exc, exc_tb = self.cached_result[2] 10:46:38 raise exc.with_traceback(exc_tb) 10:46:38 else: 10:46:38 return self.cached_result[0] 10:46:38 # We have a previous but differently parametrized fixture instance 10:46:38 # so we need to tear it down before creating a new one. 10:46:38 self.finish(request) 10:46:38 assert self.cached_result is None 10:46:38 10:46:38 # Add finalizer to requested fixtures we saved previously. 10:46:38 # We make sure to do this after checking for cached value to avoid 10:46:38 # adding our finalizer multiple times. (#12135) 10:46:38 finalizer = functools.partial(self.finish, request=request) 10:46:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:38 parent_fixture.addfinalizer(finalizer) 10:46:38 10:46:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:38 # which is executed last. 10:46:38 > assert not self._finalizers 10:46:38 ^^^^^^^^^^^^^^^^^^^^ 10:46:38 E AssertionError 10:46:38 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:38 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 10:46:38 10:46:38 cls = 10:46:38 func = . at 0x7fd24904b6a0> 10:46:38 when = 'setup' 10:46:38 reraise = (, ) 10:46:38 10:46:38 @classmethod 10:46:38 def from_call( 10:46:38 cls, 10:46:38 func: Callable[[], TResult], 10:46:38 when: Literal["collect", "setup", "call", "teardown"], 10:46:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:38 ) -> CallInfo[TResult]: 10:46:38 """Call func, wrapping the result in a CallInfo. 10:46:38 10:46:38 :param func: 10:46:38 The function to call. Called without arguments. 10:46:38 :type func: Callable[[], _pytest.runner.TResult] 10:46:38 :param when: 10:46:38 The phase in which the function is called. 10:46:38 :param reraise: 10:46:38 Exception or exceptions that shall propagate if raised by the 10:46:38 function, instead of being wrapped in the CallInfo. 10:46:38 """ 10:46:38 excinfo = None 10:46:38 instant = timing.Instant() 10:46:38 try: 10:46:38 > result: TResult | None = func() 10:46:38 ^^^^^^ 10:46:38 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:38 lambda: runtest_hook(item=item, **kwds), 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:38 yield 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:38 return (yield) 10:46:38 ^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:38 item.session._setupstate.setup(item) 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:38 col.setup() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:38 super().setup() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:38 self._request._fillfixtures() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:38 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:38 fixturedef = self._get_active_fixturedef(argname) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:38 fixturedef.execute(request=subrequest) 10:46:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:38 10:46:38 self = 10:46:38 request = > 10:46:38 10:46:38 def execute(self, request: SubRequest) -> FixtureValue: 10:46:38 """Return the value of this fixture, executing it if not cached.""" 10:46:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:38 # This needs to be done before checking if we have a cached value, since 10:46:38 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:38 # parametrization, they finalize themselves and fixtures depending on it 10:46:38 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:38 # See #4871 10:46:38 requested_fixtures_that_should_finalize_us = [] 10:46:38 for argname in self.argnames: 10:46:38 fixturedef = request._get_active_fixturedef(argname) 10:46:38 # Saves requested fixtures in a list so we later can add our finalizer 10:46:38 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:38 # down first. This is generally handled by SetupState, but still currently 10:46:38 # needed when this fixture is not parametrized but depends on a parametrized 10:46:38 # fixture. 10:46:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:38 10:46:38 # Check for (and return) cached value/exception. 10:46:38 if self.cached_result is not None: 10:46:38 request_cache_key = self.cache_key(request) 10:46:38 cache_key = self.cached_result[1] 10:46:38 try: 10:46:38 # Attempt to make a normal == check: this might fail for objects 10:46:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:38 cache_hit = bool(request_cache_key == cache_key) 10:46:38 except (ValueError, RuntimeError): 10:46:38 # If the comparison raises, use 'is' as fallback. 10:46:38 cache_hit = request_cache_key is cache_key 10:46:38 10:46:38 if cache_hit: 10:46:38 if self.cached_result[2] is not None: 10:46:38 exc, exc_tb = self.cached_result[2] 10:46:38 raise exc.with_traceback(exc_tb) 10:46:38 else: 10:46:38 return self.cached_result[0] 10:46:38 # We have a previous but differently parametrized fixture instance 10:46:38 # so we need to tear it down before creating a new one. 10:46:38 self.finish(request) 10:46:38 assert self.cached_result is None 10:46:38 10:46:38 # Add finalizer to requested fixtures we saved previously. 10:46:38 # We make sure to do this after checking for cached value to avoid 10:46:38 # adding our finalizer multiple times. (#12135) 10:46:38 finalizer = functools.partial(self.finish, request=request) 10:46:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:38 parent_fixture.addfinalizer(finalizer) 10:46:38 10:46:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:38 # which is executed last. 10:46:38 > assert not self._finalizers 10:46:38 ^^^^^^^^^^^^^^^^^^^^ 10:46:38 E AssertionError 10:46:38 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:38 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 10:46:38 10:46:38 cls = 10:46:38 func = . at 0x7fd24904b600> 10:46:38 when = 'setup' 10:46:38 reraise = (, ) 10:46:38 10:46:38 @classmethod 10:46:38 def from_call( 10:46:38 cls, 10:46:38 func: Callable[[], TResult], 10:46:38 when: Literal["collect", "setup", "call", "teardown"], 10:46:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:38 ) -> CallInfo[TResult]: 10:46:38 """Call func, wrapping the result in a CallInfo. 10:46:38 10:46:38 :param func: 10:46:38 The function to call. Called without arguments. 10:46:38 :type func: Callable[[], _pytest.runner.TResult] 10:46:38 :param when: 10:46:38 The phase in which the function is called. 10:46:38 :param reraise: 10:46:38 Exception or exceptions that shall propagate if raised by the 10:46:38 function, instead of being wrapped in the CallInfo. 10:46:38 """ 10:46:38 excinfo = None 10:46:38 instant = timing.Instant() 10:46:38 try: 10:46:38 > result: TResult | None = func() 10:46:38 ^^^^^^ 10:46:38 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:38 lambda: runtest_hook(item=item, **kwds), 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:38 yield 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:38 return (yield) 10:46:38 ^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:38 item.session._setupstate.setup(item) 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:38 col.setup() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:38 super().setup() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:38 self._request._fillfixtures() 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:38 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:38 fixturedef = self._get_active_fixturedef(argname) 10:46:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:38 fixturedef.execute(request=subrequest) 10:46:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:38 10:46:38 self = 10:46:38 request = > 10:46:38 10:46:38 def execute(self, request: SubRequest) -> FixtureValue: 10:46:38 """Return the value of this fixture, executing it if not cached.""" 10:46:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:38 # This needs to be done before checking if we have a cached value, since 10:46:38 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:38 # parametrization, they finalize themselves and fixtures depending on it 10:46:38 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:38 # See #4871 10:46:38 requested_fixtures_that_should_finalize_us = [] 10:46:38 for argname in self.argnames: 10:46:38 fixturedef = request._get_active_fixturedef(argname) 10:46:38 # Saves requested fixtures in a list so we later can add our finalizer 10:46:38 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:38 # down first. This is generally handled by SetupState, but still currently 10:46:38 # needed when this fixture is not parametrized but depends on a parametrized 10:46:38 # fixture. 10:46:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:38 10:46:38 # Check for (and return) cached value/exception. 10:46:38 if self.cached_result is not None: 10:46:38 request_cache_key = self.cache_key(request) 10:46:38 cache_key = self.cached_result[1] 10:46:38 try: 10:46:38 # Attempt to make a normal == check: this might fail for objects 10:46:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:38 cache_hit = bool(request_cache_key == cache_key) 10:46:38 except (ValueError, RuntimeError): 10:46:38 # If the comparison raises, use 'is' as fallback. 10:46:38 cache_hit = request_cache_key is cache_key 10:46:38 10:46:38 if cache_hit: 10:46:38 if self.cached_result[2] is not None: 10:46:38 exc, exc_tb = self.cached_result[2] 10:46:38 raise exc.with_traceback(exc_tb) 10:46:38 else: 10:46:38 return self.cached_result[0] 10:46:38 # We have a previous but differently parametrized fixture instance 10:46:38 # so we need to tear it down before creating a new one. 10:46:38 self.finish(request) 10:46:38 assert self.cached_result is None 10:46:38 10:46:38 # Add finalizer to requested fixtures we saved previously. 10:46:38 # We make sure to do this after checking for cached value to avoid 10:46:38 # adding our finalizer multiple times. (#12135) 10:46:38 finalizer = functools.partial(self.finish, request=request) 10:46:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:38 parent_fixture.addfinalizer(finalizer) 10:46:38 10:46:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:38 # which is executed last. 10:46:38 > assert not self._finalizers 10:46:38 ^^^^^^^^^^^^^^^^^^^^ 10:46:38 E AssertionError 10:46:38 10:46:38 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:38 =========================== short test summary info ============================ 10:46:38 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 10:46:38 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catalog_input_insertion 10:46:38 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 10:46:38 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 10:46:38 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 10:46:38 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 10:46:38 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 10:46:38 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 10:46:38 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 10:46:38 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 10:46:38 10 errors in 101.96s (0:01:41) 10:46:38 Etests200: exit 1 (102.24 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 pid=4386 10:46:38 Etests200: FAIL ✖ in 1 minute 50.79 seconds 10:46:38 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 10:46:38 EEEEEEEEEEEEEEEEEEEEEEEE [100%] 10:46:42 ==================================== ERRORS ==================================== 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 10:46:42 10:46:42 cls = 10:46:42 10:46:42 @classmethod 10:46:42 def setUpClass(cls): 10:46:42 > cls.processes = test_utils.start_tpce() 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 10:46:42 transportpce_tests/2.2.1/test01_portmapping.py:33: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 def start_tpce(): 10:46:42 if 'NO_ODL_STARTUP' in os.environ: 10:46:42 print('No OpenDaylight instance to start!') 10:46:42 return [] 10:46:42 print('starting OpenDaylight...') 10:46:42 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 10:46:42 process = start_lighty() 10:46:42 else: 10:46:42 process = start_karaf() 10:46:42 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 10:46:42 print('OpenDaylight started !') 10:46:42 else: 10:46:42 print('OpenDaylight failed to start !') 10:46:42 shutdown_process(process) 10:46:42 for pid in process_list: 10:46:42 shutdown_process(pid) 10:46:42 > sys.exit(1) 10:46:42 E SystemExit: 1 10:46:42 10:46:42 transportpce_tests/common/test_utils.py:234: SystemExit 10:46:42 ---------------------------- Captured stdout setup ----------------------------- 10:46:42 starting OpenDaylight... 10:46:42 starting KARAF (karaf221) TransportPCE build... 10:46:42 Pattern not found after 100 seconds! OpenDaylight failed to start ! 10:46:42 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a683b100> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a683b2e0> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a8f4f240> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a815f060> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a683b100> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a815f060> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a6839120> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a687ad40> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a815f060> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a6839120> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a687bf60> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a815f060> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a687b9c0> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a6839120> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a815f060> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a687a520> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a687b9c0> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a687bd80> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a6839120> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a815f060> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a683a0c0> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a6839f80> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a687b9c0> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a6839f80> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a815f060> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a687b9c0> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a815f060> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a68a44a0> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a687b9c0> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a68a5800> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a68a4540> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a687b9c0> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a68a56c0> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 10:46:42 10:46:42 cls = 10:46:42 func = . at 0x7fb1a687b9c0> 10:46:42 when = 'setup' 10:46:42 reraise = (, ) 10:46:42 10:46:42 @classmethod 10:46:42 def from_call( 10:46:42 cls, 10:46:42 func: Callable[[], TResult], 10:46:42 when: Literal["collect", "setup", "call", "teardown"], 10:46:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:46:42 ) -> CallInfo[TResult]: 10:46:42 """Call func, wrapping the result in a CallInfo. 10:46:42 10:46:42 :param func: 10:46:42 The function to call. Called without arguments. 10:46:42 :type func: Callable[[], _pytest.runner.TResult] 10:46:42 :param when: 10:46:42 The phase in which the function is called. 10:46:42 :param reraise: 10:46:42 Exception or exceptions that shall propagate if raised by the 10:46:42 function, instead of being wrapped in the CallInfo. 10:46:42 """ 10:46:42 excinfo = None 10:46:42 instant = timing.Instant() 10:46:42 try: 10:46:42 > result: TResult | None = func() 10:46:42 ^^^^^^ 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:46:42 lambda: runtest_hook(item=item, **kwds), 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:46:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:46:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:46:42 yield 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:46:42 return (yield) 10:46:42 ^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:46:42 item.session._setupstate.setup(item) 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:46:42 col.setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:46:42 super().setup() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:46:42 self._request._fillfixtures() 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:46:42 item.funcargs[argname] = self.getfixturevalue(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:46:42 fixturedef = self._get_active_fixturedef(argname) 10:46:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:46:42 fixturedef.execute(request=subrequest) 10:46:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:46:42 10:46:42 self = 10:46:42 request = > 10:46:42 10:46:42 def execute(self, request: SubRequest) -> FixtureValue: 10:46:42 """Return the value of this fixture, executing it if not cached.""" 10:46:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:46:42 # This needs to be done before checking if we have a cached value, since 10:46:42 # if a dependent fixture has their cache invalidated, e.g. due to 10:46:42 # parametrization, they finalize themselves and fixtures depending on it 10:46:42 # (which will likely include this fixture) setting `self.cached_result = None`. 10:46:42 # See #4871 10:46:42 requested_fixtures_that_should_finalize_us = [] 10:46:42 for argname in self.argnames: 10:46:42 fixturedef = request._get_active_fixturedef(argname) 10:46:42 # Saves requested fixtures in a list so we later can add our finalizer 10:46:42 # to them, ensuring that if a requested fixture gets torn down we get torn 10:46:42 # down first. This is generally handled by SetupState, but still currently 10:46:42 # needed when this fixture is not parametrized but depends on a parametrized 10:46:42 # fixture. 10:46:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:46:42 10:46:42 # Check for (and return) cached value/exception. 10:46:42 if self.cached_result is not None: 10:46:42 request_cache_key = self.cache_key(request) 10:46:42 cache_key = self.cached_result[1] 10:46:42 try: 10:46:42 # Attempt to make a normal == check: this might fail for objects 10:46:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:46:42 cache_hit = bool(request_cache_key == cache_key) 10:46:42 except (ValueError, RuntimeError): 10:46:42 # If the comparison raises, use 'is' as fallback. 10:46:42 cache_hit = request_cache_key is cache_key 10:46:42 10:46:42 if cache_hit: 10:46:42 if self.cached_result[2] is not None: 10:46:42 exc, exc_tb = self.cached_result[2] 10:46:42 raise exc.with_traceback(exc_tb) 10:46:42 else: 10:46:42 return self.cached_result[0] 10:46:42 # We have a previous but differently parametrized fixture instance 10:46:42 # so we need to tear it down before creating a new one. 10:46:42 self.finish(request) 10:46:42 assert self.cached_result is None 10:46:42 10:46:42 # Add finalizer to requested fixtures we saved previously. 10:46:42 # We make sure to do this after checking for cached value to avoid 10:46:42 # adding our finalizer multiple times. (#12135) 10:46:42 finalizer = functools.partial(self.finish, request=request) 10:46:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:46:42 parent_fixture.addfinalizer(finalizer) 10:46:42 10:46:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:46:42 # which is executed last. 10:46:42 > assert not self._finalizers 10:46:42 ^^^^^^^^^^^^^^^^^^^^ 10:46:42 E AssertionError 10:46:42 10:46:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:46:42 =========================== short test summary info ============================ 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 10:46:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 10:46:42 35 errors in 106.46s (0:01:46) 10:46:42 tests221: exit 1 (106.74 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 pid=4397 10:46:43 tests221: FAIL ✖ in 1 minute 55.3 seconds 10:46:43 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 10:46:47 tests71: freeze> python -m pip freeze --all 10:46:47 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 10:46:47 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 10:46:47 using environment variables from ./karaf71.env 10:46:47 pytest -q transportpce_tests/7.1/test01_portmapping.py 10:46:49 tests_hybrid: freeze> python -m pip freeze --all 10:46:49 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 10:46:49 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid 10:46:49 using environment variables from ./karaf221.env 10:46:49 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 10:48:27 EEEEEEEEEEEE [100%] 10:48:30 ==================================== ERRORS ==================================== 10:48:30 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 10:48:30 10:48:30 cls = 10:48:30 10:48:30 @classmethod 10:48:30 def setUpClass(cls): 10:48:30 > cls.processes = test_utils.start_tpce() 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 10:48:30 transportpce_tests/7.1/test01_portmapping.py:32: 10:48:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:30 10:48:30 def start_tpce(): 10:48:30 if 'NO_ODL_STARTUP' in os.environ: 10:48:30 print('No OpenDaylight instance to start!') 10:48:30 return [] 10:48:30 print('starting OpenDaylight...') 10:48:30 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 10:48:30 process = start_lighty() 10:48:30 else: 10:48:30 process = start_karaf() 10:48:30 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 10:48:30 print('OpenDaylight started !') 10:48:30 else: 10:48:30 print('OpenDaylight failed to start !') 10:48:30 shutdown_process(process) 10:48:30 for pid in process_list: 10:48:30 shutdown_process(pid) 10:48:30 > sys.exit(1) 10:48:30 E SystemExit: 1 10:48:30 10:48:30 transportpce_tests/common/test_utils.py:234: SystemExit 10:48:30 ---------------------------- Captured stdout setup ----------------------------- 10:48:30 starting OpenDaylight... 10:48:30 starting KARAF (karaf71) TransportPCE build... 10:48:30 Pattern not found after 100 seconds! OpenDaylight failed to start ! 10:48:30 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 10:48:30 10:48:30 cls = 10:48:30 func = . at 0x7f621433f4c0> 10:48:30 when = 'setup' 10:48:30 reraise = (, ) 10:48:30 10:48:30 @classmethod 10:48:30 def from_call( 10:48:30 cls, 10:48:30 func: Callable[[], TResult], 10:48:30 when: Literal["collect", "setup", "call", "teardown"], 10:48:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:30 ) -> CallInfo[TResult]: 10:48:30 """Call func, wrapping the result in a CallInfo. 10:48:30 10:48:30 :param func: 10:48:30 The function to call. Called without arguments. 10:48:30 :type func: Callable[[], _pytest.runner.TResult] 10:48:30 :param when: 10:48:30 The phase in which the function is called. 10:48:30 :param reraise: 10:48:30 Exception or exceptions that shall propagate if raised by the 10:48:30 function, instead of being wrapped in the CallInfo. 10:48:30 """ 10:48:30 excinfo = None 10:48:30 instant = timing.Instant() 10:48:30 try: 10:48:30 > result: TResult | None = func() 10:48:30 ^^^^^^ 10:48:30 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:30 lambda: runtest_hook(item=item, **kwds), 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:30 yield 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:30 return (yield) 10:48:30 ^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:30 item.session._setupstate.setup(item) 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:30 col.setup() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:30 super().setup() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:30 self._request._fillfixtures() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:30 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:30 fixturedef = self._get_active_fixturedef(argname) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:30 fixturedef.execute(request=subrequest) 10:48:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:30 10:48:30 self = 10:48:30 request = > 10:48:30 10:48:30 def execute(self, request: SubRequest) -> FixtureValue: 10:48:30 """Return the value of this fixture, executing it if not cached.""" 10:48:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:30 # This needs to be done before checking if we have a cached value, since 10:48:30 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:30 # parametrization, they finalize themselves and fixtures depending on it 10:48:30 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:30 # See #4871 10:48:30 requested_fixtures_that_should_finalize_us = [] 10:48:30 for argname in self.argnames: 10:48:30 fixturedef = request._get_active_fixturedef(argname) 10:48:30 # Saves requested fixtures in a list so we later can add our finalizer 10:48:30 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:30 # down first. This is generally handled by SetupState, but still currently 10:48:30 # needed when this fixture is not parametrized but depends on a parametrized 10:48:30 # fixture. 10:48:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:30 10:48:30 # Check for (and return) cached value/exception. 10:48:30 if self.cached_result is not None: 10:48:30 request_cache_key = self.cache_key(request) 10:48:30 cache_key = self.cached_result[1] 10:48:30 try: 10:48:30 # Attempt to make a normal == check: this might fail for objects 10:48:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:30 cache_hit = bool(request_cache_key == cache_key) 10:48:30 except (ValueError, RuntimeError): 10:48:30 # If the comparison raises, use 'is' as fallback. 10:48:30 cache_hit = request_cache_key is cache_key 10:48:30 10:48:30 if cache_hit: 10:48:30 if self.cached_result[2] is not None: 10:48:30 exc, exc_tb = self.cached_result[2] 10:48:30 raise exc.with_traceback(exc_tb) 10:48:30 else: 10:48:30 return self.cached_result[0] 10:48:30 # We have a previous but differently parametrized fixture instance 10:48:30 # so we need to tear it down before creating a new one. 10:48:30 self.finish(request) 10:48:30 assert self.cached_result is None 10:48:30 10:48:30 # Add finalizer to requested fixtures we saved previously. 10:48:30 # We make sure to do this after checking for cached value to avoid 10:48:30 # adding our finalizer multiple times. (#12135) 10:48:30 finalizer = functools.partial(self.finish, request=request) 10:48:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:30 parent_fixture.addfinalizer(finalizer) 10:48:30 10:48:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:30 # which is executed last. 10:48:30 > assert not self._finalizers 10:48:30 ^^^^^^^^^^^^^^^^^^^^ 10:48:30 E AssertionError 10:48:30 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:30 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 10:48:30 10:48:30 cls = 10:48:30 func = . at 0x7f6211c33a60> 10:48:30 when = 'setup' 10:48:30 reraise = (, ) 10:48:30 10:48:30 @classmethod 10:48:30 def from_call( 10:48:30 cls, 10:48:30 func: Callable[[], TResult], 10:48:30 when: Literal["collect", "setup", "call", "teardown"], 10:48:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:30 ) -> CallInfo[TResult]: 10:48:30 """Call func, wrapping the result in a CallInfo. 10:48:30 10:48:30 :param func: 10:48:30 The function to call. Called without arguments. 10:48:30 :type func: Callable[[], _pytest.runner.TResult] 10:48:30 :param when: 10:48:30 The phase in which the function is called. 10:48:30 :param reraise: 10:48:30 Exception or exceptions that shall propagate if raised by the 10:48:30 function, instead of being wrapped in the CallInfo. 10:48:30 """ 10:48:30 excinfo = None 10:48:30 instant = timing.Instant() 10:48:30 try: 10:48:30 > result: TResult | None = func() 10:48:30 ^^^^^^ 10:48:30 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:30 lambda: runtest_hook(item=item, **kwds), 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:30 yield 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:30 return (yield) 10:48:30 ^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:30 item.session._setupstate.setup(item) 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:30 col.setup() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:30 super().setup() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:30 self._request._fillfixtures() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:30 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:30 fixturedef = self._get_active_fixturedef(argname) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:30 fixturedef.execute(request=subrequest) 10:48:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:30 10:48:30 self = 10:48:30 request = > 10:48:30 10:48:30 def execute(self, request: SubRequest) -> FixtureValue: 10:48:30 """Return the value of this fixture, executing it if not cached.""" 10:48:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:30 # This needs to be done before checking if we have a cached value, since 10:48:30 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:30 # parametrization, they finalize themselves and fixtures depending on it 10:48:30 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:30 # See #4871 10:48:30 requested_fixtures_that_should_finalize_us = [] 10:48:30 for argname in self.argnames: 10:48:30 fixturedef = request._get_active_fixturedef(argname) 10:48:30 # Saves requested fixtures in a list so we later can add our finalizer 10:48:30 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:30 # down first. This is generally handled by SetupState, but still currently 10:48:30 # needed when this fixture is not parametrized but depends on a parametrized 10:48:30 # fixture. 10:48:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:30 10:48:30 # Check for (and return) cached value/exception. 10:48:30 if self.cached_result is not None: 10:48:30 request_cache_key = self.cache_key(request) 10:48:30 cache_key = self.cached_result[1] 10:48:30 try: 10:48:30 # Attempt to make a normal == check: this might fail for objects 10:48:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:30 cache_hit = bool(request_cache_key == cache_key) 10:48:30 except (ValueError, RuntimeError): 10:48:30 # If the comparison raises, use 'is' as fallback. 10:48:30 cache_hit = request_cache_key is cache_key 10:48:30 10:48:30 if cache_hit: 10:48:30 if self.cached_result[2] is not None: 10:48:30 exc, exc_tb = self.cached_result[2] 10:48:30 raise exc.with_traceback(exc_tb) 10:48:30 else: 10:48:30 return self.cached_result[0] 10:48:30 # We have a previous but differently parametrized fixture instance 10:48:30 # so we need to tear it down before creating a new one. 10:48:30 self.finish(request) 10:48:30 assert self.cached_result is None 10:48:30 10:48:30 # Add finalizer to requested fixtures we saved previously. 10:48:30 # We make sure to do this after checking for cached value to avoid 10:48:30 # adding our finalizer multiple times. (#12135) 10:48:30 finalizer = functools.partial(self.finish, request=request) 10:48:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:30 parent_fixture.addfinalizer(finalizer) 10:48:30 10:48:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:30 # which is executed last. 10:48:30 > assert not self._finalizers 10:48:30 ^^^^^^^^^^^^^^^^^^^^ 10:48:30 E AssertionError 10:48:30 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:30 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 10:48:30 10:48:30 cls = 10:48:30 func = . at 0x7f6213546fc0> 10:48:30 when = 'setup' 10:48:30 reraise = (, ) 10:48:30 10:48:30 @classmethod 10:48:30 def from_call( 10:48:30 cls, 10:48:30 func: Callable[[], TResult], 10:48:30 when: Literal["collect", "setup", "call", "teardown"], 10:48:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:30 ) -> CallInfo[TResult]: 10:48:30 """Call func, wrapping the result in a CallInfo. 10:48:30 10:48:30 :param func: 10:48:30 The function to call. Called without arguments. 10:48:30 :type func: Callable[[], _pytest.runner.TResult] 10:48:30 :param when: 10:48:30 The phase in which the function is called. 10:48:30 :param reraise: 10:48:30 Exception or exceptions that shall propagate if raised by the 10:48:30 function, instead of being wrapped in the CallInfo. 10:48:30 """ 10:48:30 excinfo = None 10:48:30 instant = timing.Instant() 10:48:30 try: 10:48:30 > result: TResult | None = func() 10:48:30 ^^^^^^ 10:48:30 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:30 lambda: runtest_hook(item=item, **kwds), 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:30 yield 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:30 return (yield) 10:48:30 ^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:30 item.session._setupstate.setup(item) 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:30 col.setup() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:30 super().setup() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:30 self._request._fillfixtures() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:30 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:30 fixturedef = self._get_active_fixturedef(argname) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:30 fixturedef.execute(request=subrequest) 10:48:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:30 10:48:30 self = 10:48:30 request = > 10:48:30 10:48:30 def execute(self, request: SubRequest) -> FixtureValue: 10:48:30 """Return the value of this fixture, executing it if not cached.""" 10:48:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:30 # This needs to be done before checking if we have a cached value, since 10:48:30 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:30 # parametrization, they finalize themselves and fixtures depending on it 10:48:30 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:30 # See #4871 10:48:30 requested_fixtures_that_should_finalize_us = [] 10:48:30 for argname in self.argnames: 10:48:30 fixturedef = request._get_active_fixturedef(argname) 10:48:30 # Saves requested fixtures in a list so we later can add our finalizer 10:48:30 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:30 # down first. This is generally handled by SetupState, but still currently 10:48:30 # needed when this fixture is not parametrized but depends on a parametrized 10:48:30 # fixture. 10:48:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:30 10:48:30 # Check for (and return) cached value/exception. 10:48:30 if self.cached_result is not None: 10:48:30 request_cache_key = self.cache_key(request) 10:48:30 cache_key = self.cached_result[1] 10:48:30 try: 10:48:30 # Attempt to make a normal == check: this might fail for objects 10:48:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:30 cache_hit = bool(request_cache_key == cache_key) 10:48:30 except (ValueError, RuntimeError): 10:48:30 # If the comparison raises, use 'is' as fallback. 10:48:30 cache_hit = request_cache_key is cache_key 10:48:30 10:48:30 if cache_hit: 10:48:30 if self.cached_result[2] is not None: 10:48:30 exc, exc_tb = self.cached_result[2] 10:48:30 raise exc.with_traceback(exc_tb) 10:48:30 else: 10:48:30 return self.cached_result[0] 10:48:30 # We have a previous but differently parametrized fixture instance 10:48:30 # so we need to tear it down before creating a new one. 10:48:30 self.finish(request) 10:48:30 assert self.cached_result is None 10:48:30 10:48:30 # Add finalizer to requested fixtures we saved previously. 10:48:30 # We make sure to do this after checking for cached value to avoid 10:48:30 # adding our finalizer multiple times. (#12135) 10:48:30 finalizer = functools.partial(self.finish, request=request) 10:48:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:30 parent_fixture.addfinalizer(finalizer) 10:48:30 10:48:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:30 # which is executed last. 10:48:30 > assert not self._finalizers 10:48:30 ^^^^^^^^^^^^^^^^^^^^ 10:48:30 E AssertionError 10:48:30 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:30 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 10:48:30 10:48:30 cls = 10:48:30 func = . at 0x7f621433f2e0> 10:48:30 when = 'setup' 10:48:30 reraise = (, ) 10:48:30 10:48:30 @classmethod 10:48:30 def from_call( 10:48:30 cls, 10:48:30 func: Callable[[], TResult], 10:48:30 when: Literal["collect", "setup", "call", "teardown"], 10:48:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:30 ) -> CallInfo[TResult]: 10:48:30 """Call func, wrapping the result in a CallInfo. 10:48:30 10:48:30 :param func: 10:48:30 The function to call. Called without arguments. 10:48:30 :type func: Callable[[], _pytest.runner.TResult] 10:48:30 :param when: 10:48:30 The phase in which the function is called. 10:48:30 :param reraise: 10:48:30 Exception or exceptions that shall propagate if raised by the 10:48:30 function, instead of being wrapped in the CallInfo. 10:48:30 """ 10:48:30 excinfo = None 10:48:30 instant = timing.Instant() 10:48:30 try: 10:48:30 > result: TResult | None = func() 10:48:30 ^^^^^^ 10:48:30 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:30 lambda: runtest_hook(item=item, **kwds), 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:30 yield 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:30 return (yield) 10:48:30 ^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:30 item.session._setupstate.setup(item) 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:30 col.setup() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:30 super().setup() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:30 self._request._fillfixtures() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:30 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:30 fixturedef = self._get_active_fixturedef(argname) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:30 fixturedef.execute(request=subrequest) 10:48:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:30 10:48:30 self = 10:48:30 request = > 10:48:30 10:48:30 def execute(self, request: SubRequest) -> FixtureValue: 10:48:30 """Return the value of this fixture, executing it if not cached.""" 10:48:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:30 # This needs to be done before checking if we have a cached value, since 10:48:30 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:30 # parametrization, they finalize themselves and fixtures depending on it 10:48:30 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:30 # See #4871 10:48:30 requested_fixtures_that_should_finalize_us = [] 10:48:30 for argname in self.argnames: 10:48:30 fixturedef = request._get_active_fixturedef(argname) 10:48:30 # Saves requested fixtures in a list so we later can add our finalizer 10:48:30 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:30 # down first. This is generally handled by SetupState, but still currently 10:48:30 # needed when this fixture is not parametrized but depends on a parametrized 10:48:30 # fixture. 10:48:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:30 10:48:30 # Check for (and return) cached value/exception. 10:48:30 if self.cached_result is not None: 10:48:30 request_cache_key = self.cache_key(request) 10:48:30 cache_key = self.cached_result[1] 10:48:30 try: 10:48:30 # Attempt to make a normal == check: this might fail for objects 10:48:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:30 cache_hit = bool(request_cache_key == cache_key) 10:48:30 except (ValueError, RuntimeError): 10:48:30 # If the comparison raises, use 'is' as fallback. 10:48:30 cache_hit = request_cache_key is cache_key 10:48:30 10:48:30 if cache_hit: 10:48:30 if self.cached_result[2] is not None: 10:48:30 exc, exc_tb = self.cached_result[2] 10:48:30 raise exc.with_traceback(exc_tb) 10:48:30 else: 10:48:30 return self.cached_result[0] 10:48:30 # We have a previous but differently parametrized fixture instance 10:48:30 # so we need to tear it down before creating a new one. 10:48:30 self.finish(request) 10:48:30 assert self.cached_result is None 10:48:30 10:48:30 # Add finalizer to requested fixtures we saved previously. 10:48:30 # We make sure to do this after checking for cached value to avoid 10:48:30 # adding our finalizer multiple times. (#12135) 10:48:30 finalizer = functools.partial(self.finish, request=request) 10:48:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:30 parent_fixture.addfinalizer(finalizer) 10:48:30 10:48:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:30 # which is executed last. 10:48:30 > assert not self._finalizers 10:48:30 ^^^^^^^^^^^^^^^^^^^^ 10:48:30 E AssertionError 10:48:30 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:30 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 10:48:30 10:48:30 cls = 10:48:30 func = . at 0x7f6211c337e0> 10:48:30 when = 'setup' 10:48:30 reraise = (, ) 10:48:30 10:48:30 @classmethod 10:48:30 def from_call( 10:48:30 cls, 10:48:30 func: Callable[[], TResult], 10:48:30 when: Literal["collect", "setup", "call", "teardown"], 10:48:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:30 ) -> CallInfo[TResult]: 10:48:30 """Call func, wrapping the result in a CallInfo. 10:48:30 10:48:30 :param func: 10:48:30 The function to call. Called without arguments. 10:48:30 :type func: Callable[[], _pytest.runner.TResult] 10:48:30 :param when: 10:48:30 The phase in which the function is called. 10:48:30 :param reraise: 10:48:30 Exception or exceptions that shall propagate if raised by the 10:48:30 function, instead of being wrapped in the CallInfo. 10:48:30 """ 10:48:30 excinfo = None 10:48:30 instant = timing.Instant() 10:48:30 try: 10:48:30 > result: TResult | None = func() 10:48:30 ^^^^^^ 10:48:30 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:30 lambda: runtest_hook(item=item, **kwds), 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:30 yield 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:30 return (yield) 10:48:30 ^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:30 item.session._setupstate.setup(item) 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:30 col.setup() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:30 super().setup() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:30 self._request._fillfixtures() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:30 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:30 fixturedef = self._get_active_fixturedef(argname) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:30 fixturedef.execute(request=subrequest) 10:48:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:30 10:48:30 self = 10:48:30 request = > 10:48:30 10:48:30 def execute(self, request: SubRequest) -> FixtureValue: 10:48:30 """Return the value of this fixture, executing it if not cached.""" 10:48:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:30 # This needs to be done before checking if we have a cached value, since 10:48:30 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:30 # parametrization, they finalize themselves and fixtures depending on it 10:48:30 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:30 # See #4871 10:48:30 requested_fixtures_that_should_finalize_us = [] 10:48:30 for argname in self.argnames: 10:48:30 fixturedef = request._get_active_fixturedef(argname) 10:48:30 # Saves requested fixtures in a list so we later can add our finalizer 10:48:30 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:30 # down first. This is generally handled by SetupState, but still currently 10:48:30 # needed when this fixture is not parametrized but depends on a parametrized 10:48:30 # fixture. 10:48:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:30 10:48:30 # Check for (and return) cached value/exception. 10:48:30 if self.cached_result is not None: 10:48:30 request_cache_key = self.cache_key(request) 10:48:30 cache_key = self.cached_result[1] 10:48:30 try: 10:48:30 # Attempt to make a normal == check: this might fail for objects 10:48:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:30 cache_hit = bool(request_cache_key == cache_key) 10:48:30 except (ValueError, RuntimeError): 10:48:30 # If the comparison raises, use 'is' as fallback. 10:48:30 cache_hit = request_cache_key is cache_key 10:48:30 10:48:30 if cache_hit: 10:48:30 if self.cached_result[2] is not None: 10:48:30 exc, exc_tb = self.cached_result[2] 10:48:30 raise exc.with_traceback(exc_tb) 10:48:30 else: 10:48:30 return self.cached_result[0] 10:48:30 # We have a previous but differently parametrized fixture instance 10:48:30 # so we need to tear it down before creating a new one. 10:48:30 self.finish(request) 10:48:30 assert self.cached_result is None 10:48:30 10:48:30 # Add finalizer to requested fixtures we saved previously. 10:48:30 # We make sure to do this after checking for cached value to avoid 10:48:30 # adding our finalizer multiple times. (#12135) 10:48:30 finalizer = functools.partial(self.finish, request=request) 10:48:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:30 parent_fixture.addfinalizer(finalizer) 10:48:30 10:48:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:30 # which is executed last. 10:48:30 > assert not self._finalizers 10:48:30 ^^^^^^^^^^^^^^^^^^^^ 10:48:30 E AssertionError 10:48:30 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:30 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 10:48:30 10:48:30 cls = 10:48:30 func = . at 0x7f6213546fc0> 10:48:30 when = 'setup' 10:48:30 reraise = (, ) 10:48:30 10:48:30 @classmethod 10:48:30 def from_call( 10:48:30 cls, 10:48:30 func: Callable[[], TResult], 10:48:30 when: Literal["collect", "setup", "call", "teardown"], 10:48:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:30 ) -> CallInfo[TResult]: 10:48:30 """Call func, wrapping the result in a CallInfo. 10:48:30 10:48:30 :param func: 10:48:30 The function to call. Called without arguments. 10:48:30 :type func: Callable[[], _pytest.runner.TResult] 10:48:30 :param when: 10:48:30 The phase in which the function is called. 10:48:30 :param reraise: 10:48:30 Exception or exceptions that shall propagate if raised by the 10:48:30 function, instead of being wrapped in the CallInfo. 10:48:30 """ 10:48:30 excinfo = None 10:48:30 instant = timing.Instant() 10:48:30 try: 10:48:30 > result: TResult | None = func() 10:48:30 ^^^^^^ 10:48:30 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:30 lambda: runtest_hook(item=item, **kwds), 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:30 yield 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:30 return (yield) 10:48:30 ^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:30 item.session._setupstate.setup(item) 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:30 col.setup() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:30 super().setup() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:30 self._request._fillfixtures() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:30 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:30 fixturedef = self._get_active_fixturedef(argname) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:30 fixturedef.execute(request=subrequest) 10:48:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:30 10:48:30 self = 10:48:30 request = > 10:48:30 10:48:30 def execute(self, request: SubRequest) -> FixtureValue: 10:48:30 """Return the value of this fixture, executing it if not cached.""" 10:48:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:30 # This needs to be done before checking if we have a cached value, since 10:48:30 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:30 # parametrization, they finalize themselves and fixtures depending on it 10:48:30 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:30 # See #4871 10:48:30 requested_fixtures_that_should_finalize_us = [] 10:48:30 for argname in self.argnames: 10:48:30 fixturedef = request._get_active_fixturedef(argname) 10:48:30 # Saves requested fixtures in a list so we later can add our finalizer 10:48:30 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:30 # down first. This is generally handled by SetupState, but still currently 10:48:30 # needed when this fixture is not parametrized but depends on a parametrized 10:48:30 # fixture. 10:48:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:30 10:48:30 # Check for (and return) cached value/exception. 10:48:30 if self.cached_result is not None: 10:48:30 request_cache_key = self.cache_key(request) 10:48:30 cache_key = self.cached_result[1] 10:48:30 try: 10:48:30 # Attempt to make a normal == check: this might fail for objects 10:48:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:30 cache_hit = bool(request_cache_key == cache_key) 10:48:30 except (ValueError, RuntimeError): 10:48:30 # If the comparison raises, use 'is' as fallback. 10:48:30 cache_hit = request_cache_key is cache_key 10:48:30 10:48:30 if cache_hit: 10:48:30 if self.cached_result[2] is not None: 10:48:30 exc, exc_tb = self.cached_result[2] 10:48:30 raise exc.with_traceback(exc_tb) 10:48:30 else: 10:48:30 return self.cached_result[0] 10:48:30 # We have a previous but differently parametrized fixture instance 10:48:30 # so we need to tear it down before creating a new one. 10:48:30 self.finish(request) 10:48:30 assert self.cached_result is None 10:48:30 10:48:30 # Add finalizer to requested fixtures we saved previously. 10:48:30 # We make sure to do this after checking for cached value to avoid 10:48:30 # adding our finalizer multiple times. (#12135) 10:48:30 finalizer = functools.partial(self.finish, request=request) 10:48:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:30 parent_fixture.addfinalizer(finalizer) 10:48:30 10:48:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:30 # which is executed last. 10:48:30 > assert not self._finalizers 10:48:30 ^^^^^^^^^^^^^^^^^^^^ 10:48:30 E AssertionError 10:48:30 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:30 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 10:48:30 10:48:30 cls = 10:48:30 func = . at 0x7f6211c33a60> 10:48:30 when = 'setup' 10:48:30 reraise = (, ) 10:48:30 10:48:30 @classmethod 10:48:30 def from_call( 10:48:30 cls, 10:48:30 func: Callable[[], TResult], 10:48:30 when: Literal["collect", "setup", "call", "teardown"], 10:48:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:30 ) -> CallInfo[TResult]: 10:48:30 """Call func, wrapping the result in a CallInfo. 10:48:30 10:48:30 :param func: 10:48:30 The function to call. Called without arguments. 10:48:30 :type func: Callable[[], _pytest.runner.TResult] 10:48:30 :param when: 10:48:30 The phase in which the function is called. 10:48:30 :param reraise: 10:48:30 Exception or exceptions that shall propagate if raised by the 10:48:30 function, instead of being wrapped in the CallInfo. 10:48:30 """ 10:48:30 excinfo = None 10:48:30 instant = timing.Instant() 10:48:30 try: 10:48:30 > result: TResult | None = func() 10:48:30 ^^^^^^ 10:48:30 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:30 lambda: runtest_hook(item=item, **kwds), 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:30 yield 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:30 return (yield) 10:48:30 ^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:30 item.session._setupstate.setup(item) 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:30 col.setup() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:30 super().setup() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:30 self._request._fillfixtures() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:30 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:30 fixturedef = self._get_active_fixturedef(argname) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:30 fixturedef.execute(request=subrequest) 10:48:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:30 10:48:30 self = 10:48:30 request = > 10:48:30 10:48:30 def execute(self, request: SubRequest) -> FixtureValue: 10:48:30 """Return the value of this fixture, executing it if not cached.""" 10:48:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:30 # This needs to be done before checking if we have a cached value, since 10:48:30 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:30 # parametrization, they finalize themselves and fixtures depending on it 10:48:30 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:30 # See #4871 10:48:30 requested_fixtures_that_should_finalize_us = [] 10:48:30 for argname in self.argnames: 10:48:30 fixturedef = request._get_active_fixturedef(argname) 10:48:30 # Saves requested fixtures in a list so we later can add our finalizer 10:48:30 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:30 # down first. This is generally handled by SetupState, but still currently 10:48:30 # needed when this fixture is not parametrized but depends on a parametrized 10:48:30 # fixture. 10:48:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:30 10:48:30 # Check for (and return) cached value/exception. 10:48:30 if self.cached_result is not None: 10:48:30 request_cache_key = self.cache_key(request) 10:48:30 cache_key = self.cached_result[1] 10:48:30 try: 10:48:30 # Attempt to make a normal == check: this might fail for objects 10:48:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:30 cache_hit = bool(request_cache_key == cache_key) 10:48:30 except (ValueError, RuntimeError): 10:48:30 # If the comparison raises, use 'is' as fallback. 10:48:30 cache_hit = request_cache_key is cache_key 10:48:30 10:48:30 if cache_hit: 10:48:30 if self.cached_result[2] is not None: 10:48:30 exc, exc_tb = self.cached_result[2] 10:48:30 raise exc.with_traceback(exc_tb) 10:48:30 else: 10:48:30 return self.cached_result[0] 10:48:30 # We have a previous but differently parametrized fixture instance 10:48:30 # so we need to tear it down before creating a new one. 10:48:30 self.finish(request) 10:48:30 assert self.cached_result is None 10:48:30 10:48:30 # Add finalizer to requested fixtures we saved previously. 10:48:30 # We make sure to do this after checking for cached value to avoid 10:48:30 # adding our finalizer multiple times. (#12135) 10:48:30 finalizer = functools.partial(self.finish, request=request) 10:48:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:30 parent_fixture.addfinalizer(finalizer) 10:48:30 10:48:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:30 # which is executed last. 10:48:30 > assert not self._finalizers 10:48:30 ^^^^^^^^^^^^^^^^^^^^ 10:48:30 E AssertionError 10:48:30 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:30 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 10:48:30 10:48:30 cls = 10:48:30 func = . at 0x7f6211c31120> 10:48:30 when = 'setup' 10:48:30 reraise = (, ) 10:48:30 10:48:30 @classmethod 10:48:30 def from_call( 10:48:30 cls, 10:48:30 func: Callable[[], TResult], 10:48:30 when: Literal["collect", "setup", "call", "teardown"], 10:48:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:30 ) -> CallInfo[TResult]: 10:48:30 """Call func, wrapping the result in a CallInfo. 10:48:30 10:48:30 :param func: 10:48:30 The function to call. Called without arguments. 10:48:30 :type func: Callable[[], _pytest.runner.TResult] 10:48:30 :param when: 10:48:30 The phase in which the function is called. 10:48:30 :param reraise: 10:48:30 Exception or exceptions that shall propagate if raised by the 10:48:30 function, instead of being wrapped in the CallInfo. 10:48:30 """ 10:48:30 excinfo = None 10:48:30 instant = timing.Instant() 10:48:30 try: 10:48:30 > result: TResult | None = func() 10:48:30 ^^^^^^ 10:48:30 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:30 lambda: runtest_hook(item=item, **kwds), 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:30 yield 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:30 return (yield) 10:48:30 ^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:30 item.session._setupstate.setup(item) 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:30 col.setup() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:30 super().setup() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:30 self._request._fillfixtures() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:30 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:30 fixturedef = self._get_active_fixturedef(argname) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:30 fixturedef.execute(request=subrequest) 10:48:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:30 10:48:30 self = 10:48:30 request = > 10:48:30 10:48:30 def execute(self, request: SubRequest) -> FixtureValue: 10:48:30 """Return the value of this fixture, executing it if not cached.""" 10:48:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:30 # This needs to be done before checking if we have a cached value, since 10:48:30 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:30 # parametrization, they finalize themselves and fixtures depending on it 10:48:30 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:30 # See #4871 10:48:30 requested_fixtures_that_should_finalize_us = [] 10:48:30 for argname in self.argnames: 10:48:30 fixturedef = request._get_active_fixturedef(argname) 10:48:30 # Saves requested fixtures in a list so we later can add our finalizer 10:48:30 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:30 # down first. This is generally handled by SetupState, but still currently 10:48:30 # needed when this fixture is not parametrized but depends on a parametrized 10:48:30 # fixture. 10:48:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:30 10:48:30 # Check for (and return) cached value/exception. 10:48:30 if self.cached_result is not None: 10:48:30 request_cache_key = self.cache_key(request) 10:48:30 cache_key = self.cached_result[1] 10:48:30 try: 10:48:30 # Attempt to make a normal == check: this might fail for objects 10:48:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:30 cache_hit = bool(request_cache_key == cache_key) 10:48:30 except (ValueError, RuntimeError): 10:48:30 # If the comparison raises, use 'is' as fallback. 10:48:30 cache_hit = request_cache_key is cache_key 10:48:30 10:48:30 if cache_hit: 10:48:30 if self.cached_result[2] is not None: 10:48:30 exc, exc_tb = self.cached_result[2] 10:48:30 raise exc.with_traceback(exc_tb) 10:48:30 else: 10:48:30 return self.cached_result[0] 10:48:30 # We have a previous but differently parametrized fixture instance 10:48:30 # so we need to tear it down before creating a new one. 10:48:30 self.finish(request) 10:48:30 assert self.cached_result is None 10:48:30 10:48:30 # Add finalizer to requested fixtures we saved previously. 10:48:30 # We make sure to do this after checking for cached value to avoid 10:48:30 # adding our finalizer multiple times. (#12135) 10:48:30 finalizer = functools.partial(self.finish, request=request) 10:48:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:30 parent_fixture.addfinalizer(finalizer) 10:48:30 10:48:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:30 # which is executed last. 10:48:30 > assert not self._finalizers 10:48:30 ^^^^^^^^^^^^^^^^^^^^ 10:48:30 E AssertionError 10:48:30 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:30 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 10:48:30 10:48:30 cls = 10:48:30 func = . at 0x7f6211c337e0> 10:48:30 when = 'setup' 10:48:30 reraise = (, ) 10:48:30 10:48:30 @classmethod 10:48:30 def from_call( 10:48:30 cls, 10:48:30 func: Callable[[], TResult], 10:48:30 when: Literal["collect", "setup", "call", "teardown"], 10:48:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:30 ) -> CallInfo[TResult]: 10:48:30 """Call func, wrapping the result in a CallInfo. 10:48:30 10:48:30 :param func: 10:48:30 The function to call. Called without arguments. 10:48:30 :type func: Callable[[], _pytest.runner.TResult] 10:48:30 :param when: 10:48:30 The phase in which the function is called. 10:48:30 :param reraise: 10:48:30 Exception or exceptions that shall propagate if raised by the 10:48:30 function, instead of being wrapped in the CallInfo. 10:48:30 """ 10:48:30 excinfo = None 10:48:30 instant = timing.Instant() 10:48:30 try: 10:48:30 > result: TResult | None = func() 10:48:30 ^^^^^^ 10:48:30 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:30 lambda: runtest_hook(item=item, **kwds), 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:30 yield 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:30 return (yield) 10:48:30 ^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:30 item.session._setupstate.setup(item) 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:30 col.setup() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:30 super().setup() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:30 self._request._fillfixtures() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:30 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:30 fixturedef = self._get_active_fixturedef(argname) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:30 fixturedef.execute(request=subrequest) 10:48:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:30 10:48:30 self = 10:48:30 request = > 10:48:30 10:48:30 def execute(self, request: SubRequest) -> FixtureValue: 10:48:30 """Return the value of this fixture, executing it if not cached.""" 10:48:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:30 # This needs to be done before checking if we have a cached value, since 10:48:30 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:30 # parametrization, they finalize themselves and fixtures depending on it 10:48:30 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:30 # See #4871 10:48:30 requested_fixtures_that_should_finalize_us = [] 10:48:30 for argname in self.argnames: 10:48:30 fixturedef = request._get_active_fixturedef(argname) 10:48:30 # Saves requested fixtures in a list so we later can add our finalizer 10:48:30 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:30 # down first. This is generally handled by SetupState, but still currently 10:48:30 # needed when this fixture is not parametrized but depends on a parametrized 10:48:30 # fixture. 10:48:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:30 10:48:30 # Check for (and return) cached value/exception. 10:48:30 if self.cached_result is not None: 10:48:30 request_cache_key = self.cache_key(request) 10:48:30 cache_key = self.cached_result[1] 10:48:30 try: 10:48:30 # Attempt to make a normal == check: this might fail for objects 10:48:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:30 cache_hit = bool(request_cache_key == cache_key) 10:48:30 except (ValueError, RuntimeError): 10:48:30 # If the comparison raises, use 'is' as fallback. 10:48:30 cache_hit = request_cache_key is cache_key 10:48:30 10:48:30 if cache_hit: 10:48:30 if self.cached_result[2] is not None: 10:48:30 exc, exc_tb = self.cached_result[2] 10:48:30 raise exc.with_traceback(exc_tb) 10:48:30 else: 10:48:30 return self.cached_result[0] 10:48:30 # We have a previous but differently parametrized fixture instance 10:48:30 # so we need to tear it down before creating a new one. 10:48:30 self.finish(request) 10:48:30 assert self.cached_result is None 10:48:30 10:48:30 # Add finalizer to requested fixtures we saved previously. 10:48:30 # We make sure to do this after checking for cached value to avoid 10:48:30 # adding our finalizer multiple times. (#12135) 10:48:30 finalizer = functools.partial(self.finish, request=request) 10:48:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:30 parent_fixture.addfinalizer(finalizer) 10:48:30 10:48:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:30 # which is executed last. 10:48:30 > assert not self._finalizers 10:48:30 ^^^^^^^^^^^^^^^^^^^^ 10:48:30 E AssertionError 10:48:30 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:30 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 10:48:30 10:48:30 cls = 10:48:30 func = . at 0x7f6211c33600> 10:48:30 when = 'setup' 10:48:30 reraise = (, ) 10:48:30 10:48:30 @classmethod 10:48:30 def from_call( 10:48:30 cls, 10:48:30 func: Callable[[], TResult], 10:48:30 when: Literal["collect", "setup", "call", "teardown"], 10:48:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:30 ) -> CallInfo[TResult]: 10:48:30 """Call func, wrapping the result in a CallInfo. 10:48:30 10:48:30 :param func: 10:48:30 The function to call. Called without arguments. 10:48:30 :type func: Callable[[], _pytest.runner.TResult] 10:48:30 :param when: 10:48:30 The phase in which the function is called. 10:48:30 :param reraise: 10:48:30 Exception or exceptions that shall propagate if raised by the 10:48:30 function, instead of being wrapped in the CallInfo. 10:48:30 """ 10:48:30 excinfo = None 10:48:30 instant = timing.Instant() 10:48:30 try: 10:48:30 > result: TResult | None = func() 10:48:30 ^^^^^^ 10:48:30 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:30 lambda: runtest_hook(item=item, **kwds), 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:30 yield 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:30 return (yield) 10:48:30 ^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:30 item.session._setupstate.setup(item) 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:30 col.setup() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:30 super().setup() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:30 self._request._fillfixtures() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:30 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:30 fixturedef = self._get_active_fixturedef(argname) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:30 fixturedef.execute(request=subrequest) 10:48:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:30 10:48:30 self = 10:48:30 request = > 10:48:30 10:48:30 def execute(self, request: SubRequest) -> FixtureValue: 10:48:30 """Return the value of this fixture, executing it if not cached.""" 10:48:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:30 # This needs to be done before checking if we have a cached value, since 10:48:30 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:30 # parametrization, they finalize themselves and fixtures depending on it 10:48:30 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:30 # See #4871 10:48:30 requested_fixtures_that_should_finalize_us = [] 10:48:30 for argname in self.argnames: 10:48:30 fixturedef = request._get_active_fixturedef(argname) 10:48:30 # Saves requested fixtures in a list so we later can add our finalizer 10:48:30 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:30 # down first. This is generally handled by SetupState, but still currently 10:48:30 # needed when this fixture is not parametrized but depends on a parametrized 10:48:30 # fixture. 10:48:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:30 10:48:30 # Check for (and return) cached value/exception. 10:48:30 if self.cached_result is not None: 10:48:30 request_cache_key = self.cache_key(request) 10:48:30 cache_key = self.cached_result[1] 10:48:30 try: 10:48:30 # Attempt to make a normal == check: this might fail for objects 10:48:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:30 cache_hit = bool(request_cache_key == cache_key) 10:48:30 except (ValueError, RuntimeError): 10:48:30 # If the comparison raises, use 'is' as fallback. 10:48:30 cache_hit = request_cache_key is cache_key 10:48:30 10:48:30 if cache_hit: 10:48:30 if self.cached_result[2] is not None: 10:48:30 exc, exc_tb = self.cached_result[2] 10:48:30 raise exc.with_traceback(exc_tb) 10:48:30 else: 10:48:30 return self.cached_result[0] 10:48:30 # We have a previous but differently parametrized fixture instance 10:48:30 # so we need to tear it down before creating a new one. 10:48:30 self.finish(request) 10:48:30 assert self.cached_result is None 10:48:30 10:48:30 # Add finalizer to requested fixtures we saved previously. 10:48:30 # We make sure to do this after checking for cached value to avoid 10:48:30 # adding our finalizer multiple times. (#12135) 10:48:30 finalizer = functools.partial(self.finish, request=request) 10:48:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:30 parent_fixture.addfinalizer(finalizer) 10:48:30 10:48:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:30 # which is executed last. 10:48:30 > assert not self._finalizers 10:48:30 ^^^^^^^^^^^^^^^^^^^^ 10:48:30 E AssertionError 10:48:30 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:30 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 10:48:30 10:48:30 cls = 10:48:30 func = . at 0x7f6211c31120> 10:48:30 when = 'setup' 10:48:30 reraise = (, ) 10:48:30 10:48:30 @classmethod 10:48:30 def from_call( 10:48:30 cls, 10:48:30 func: Callable[[], TResult], 10:48:30 when: Literal["collect", "setup", "call", "teardown"], 10:48:30 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:30 ) -> CallInfo[TResult]: 10:48:30 """Call func, wrapping the result in a CallInfo. 10:48:30 10:48:30 :param func: 10:48:30 The function to call. Called without arguments. 10:48:30 :type func: Callable[[], _pytest.runner.TResult] 10:48:30 :param when: 10:48:30 The phase in which the function is called. 10:48:30 :param reraise: 10:48:30 Exception or exceptions that shall propagate if raised by the 10:48:30 function, instead of being wrapped in the CallInfo. 10:48:30 """ 10:48:30 excinfo = None 10:48:30 instant = timing.Instant() 10:48:30 try: 10:48:30 > result: TResult | None = func() 10:48:30 ^^^^^^ 10:48:30 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:30 lambda: runtest_hook(item=item, **kwds), 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:30 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:30 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:30 yield 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:30 return (yield) 10:48:30 ^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:30 item.session._setupstate.setup(item) 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:30 col.setup() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:30 super().setup() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:30 self._request._fillfixtures() 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:30 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:30 fixturedef = self._get_active_fixturedef(argname) 10:48:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:30 fixturedef.execute(request=subrequest) 10:48:30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:30 10:48:30 self = 10:48:30 request = > 10:48:30 10:48:30 def execute(self, request: SubRequest) -> FixtureValue: 10:48:30 """Return the value of this fixture, executing it if not cached.""" 10:48:30 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:30 # This needs to be done before checking if we have a cached value, since 10:48:30 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:30 # parametrization, they finalize themselves and fixtures depending on it 10:48:30 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:30 # See #4871 10:48:30 requested_fixtures_that_should_finalize_us = [] 10:48:30 for argname in self.argnames: 10:48:30 fixturedef = request._get_active_fixturedef(argname) 10:48:30 # Saves requested fixtures in a list so we later can add our finalizer 10:48:30 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:30 # down first. This is generally handled by SetupState, but still currently 10:48:30 # needed when this fixture is not parametrized but depends on a parametrized 10:48:30 # fixture. 10:48:30 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:30 10:48:30 # Check for (and return) cached value/exception. 10:48:30 if self.cached_result is not None: 10:48:30 request_cache_key = self.cache_key(request) 10:48:30 cache_key = self.cached_result[1] 10:48:30 try: 10:48:30 # Attempt to make a normal == check: this might fail for objects 10:48:30 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:30 cache_hit = bool(request_cache_key == cache_key) 10:48:30 except (ValueError, RuntimeError): 10:48:30 # If the comparison raises, use 'is' as fallback. 10:48:30 cache_hit = request_cache_key is cache_key 10:48:30 10:48:30 if cache_hit: 10:48:30 if self.cached_result[2] is not None: 10:48:30 exc, exc_tb = self.cached_result[2] 10:48:30 raise exc.with_traceback(exc_tb) 10:48:30 else: 10:48:30 return self.cached_result[0] 10:48:30 # We have a previous but differently parametrized fixture instance 10:48:30 # so we need to tear it down before creating a new one. 10:48:30 self.finish(request) 10:48:30 assert self.cached_result is None 10:48:30 10:48:30 # Add finalizer to requested fixtures we saved previously. 10:48:30 # We make sure to do this after checking for cached value to avoid 10:48:30 # adding our finalizer multiple times. (#12135) 10:48:30 finalizer = functools.partial(self.finish, request=request) 10:48:30 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:30 parent_fixture.addfinalizer(finalizer) 10:48:30 10:48:30 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:30 # which is executed last. 10:48:30 > assert not self._finalizers 10:48:30 ^^^^^^^^^^^^^^^^^^^^ 10:48:30 E AssertionError 10:48:30 10:48:30 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:30 =========================== short test summary info ============================ 10:48:30 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 10:48:30 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 10:48:30 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 10:48:30 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 10:48:30 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 10:48:30 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 10:48:30 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 10:48:30 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 10:48:30 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 10:48:30 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 10:48:30 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 10:48:30 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 10:48:30 12 errors in 102.49s (0:01:42) 10:48:30 Etests71: exit 1 (102.81 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 pid=4526 10:48:30 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 10:48:39 ==================================== ERRORS ==================================== 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 10:48:39 10:48:39 cls = 10:48:39 10:48:39 @classmethod 10:48:39 def setUpClass(cls): 10:48:39 > cls.processes = test_utils.start_tpce() 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 10:48:39 transportpce_tests/hybrid/test01_device_change_notifications.py:76: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 def start_tpce(): 10:48:39 if 'NO_ODL_STARTUP' in os.environ: 10:48:39 print('No OpenDaylight instance to start!') 10:48:39 return [] 10:48:39 print('starting OpenDaylight...') 10:48:39 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 10:48:39 process = start_lighty() 10:48:39 else: 10:48:39 process = start_karaf() 10:48:39 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 10:48:39 print('OpenDaylight started !') 10:48:39 else: 10:48:39 print('OpenDaylight failed to start !') 10:48:39 shutdown_process(process) 10:48:39 for pid in process_list: 10:48:39 shutdown_process(pid) 10:48:39 > sys.exit(1) 10:48:39 E SystemExit: 1 10:48:39 10:48:39 transportpce_tests/common/test_utils.py:234: SystemExit 10:48:39 ---------------------------- Captured stdout setup ----------------------------- 10:48:39 starting OpenDaylight... 10:48:39 starting KARAF (karaf221) TransportPCE build... 10:48:39 Pattern not found after 100 seconds! OpenDaylight failed to start ! 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4bd6a20> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4c2bf60> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec72d2f20> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4bd5440> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec65453a0> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4bd5440> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4c2a700> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4c2a980> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4c2a700> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4bd5440> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec45e9940> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4c2a700> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4bd5440> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec45e9da0> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4bd5440> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4bd58a0> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4c2a8e0> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4bd58a0> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4c2ad40> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4c2a8e0> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4c2ad40> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec45ea0c0> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4c2ad40> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec45ea0c0> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec45e8860> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4c2ad40> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec45e9440> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec45e9260> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4c2ad40> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec45e96c0> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec45e9800> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4c2ad40> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec45e9d00> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec45e9800> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4c2ad40> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec45e9f80> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4c2ad40> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec45e8ea0> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec45e9a80> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4c2ad40> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec45e9a80> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec45eaa20> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4c2ad40> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec45e99e0> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec45e9bc0> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4c2ad40> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec45e9f80> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec45ea5c0> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec4c2ad40> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 10:48:39 10:48:39 cls = 10:48:39 func = . at 0x7f5ec45ea2a0> 10:48:39 when = 'setup' 10:48:39 reraise = (, ) 10:48:39 10:48:39 @classmethod 10:48:39 def from_call( 10:48:39 cls, 10:48:39 func: Callable[[], TResult], 10:48:39 when: Literal["collect", "setup", "call", "teardown"], 10:48:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:48:39 ) -> CallInfo[TResult]: 10:48:39 """Call func, wrapping the result in a CallInfo. 10:48:39 10:48:39 :param func: 10:48:39 The function to call. Called without arguments. 10:48:39 :type func: Callable[[], _pytest.runner.TResult] 10:48:39 :param when: 10:48:39 The phase in which the function is called. 10:48:39 :param reraise: 10:48:39 Exception or exceptions that shall propagate if raised by the 10:48:39 function, instead of being wrapped in the CallInfo. 10:48:39 """ 10:48:39 excinfo = None 10:48:39 instant = timing.Instant() 10:48:39 try: 10:48:39 > result: TResult | None = func() 10:48:39 ^^^^^^ 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:48:39 lambda: runtest_hook(item=item, **kwds), 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 10:48:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 10:48:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:48:39 yield 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:48:39 return (yield) 10:48:39 ^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:48:39 item.session._setupstate.setup(item) 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:48:39 col.setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:48:39 super().setup() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:48:39 self._request._fillfixtures() 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:48:39 item.funcargs[argname] = self.getfixturevalue(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:48:39 fixturedef = self._get_active_fixturedef(argname) 10:48:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:48:39 fixturedef.execute(request=subrequest) 10:48:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:48:39 10:48:39 self = 10:48:39 request = > 10:48:39 10:48:39 def execute(self, request: SubRequest) -> FixtureValue: 10:48:39 """Return the value of this fixture, executing it if not cached.""" 10:48:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:48:39 # This needs to be done before checking if we have a cached value, since 10:48:39 # if a dependent fixture has their cache invalidated, e.g. due to 10:48:39 # parametrization, they finalize themselves and fixtures depending on it 10:48:39 # (which will likely include this fixture) setting `self.cached_result = None`. 10:48:39 # See #4871 10:48:39 requested_fixtures_that_should_finalize_us = [] 10:48:39 for argname in self.argnames: 10:48:39 fixturedef = request._get_active_fixturedef(argname) 10:48:39 # Saves requested fixtures in a list so we later can add our finalizer 10:48:39 # to them, ensuring that if a requested fixture gets torn down we get torn 10:48:39 # down first. This is generally handled by SetupState, but still currently 10:48:39 # needed when this fixture is not parametrized but depends on a parametrized 10:48:39 # fixture. 10:48:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:48:39 10:48:39 # Check for (and return) cached value/exception. 10:48:39 if self.cached_result is not None: 10:48:39 request_cache_key = self.cache_key(request) 10:48:39 cache_key = self.cached_result[1] 10:48:39 try: 10:48:39 # Attempt to make a normal == check: this might fail for objects 10:48:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:48:39 cache_hit = bool(request_cache_key == cache_key) 10:48:39 except (ValueError, RuntimeError): 10:48:39 # If the comparison raises, use 'is' as fallback. 10:48:39 cache_hit = request_cache_key is cache_key 10:48:39 10:48:39 if cache_hit: 10:48:39 if self.cached_result[2] is not None: 10:48:39 exc, exc_tb = self.cached_result[2] 10:48:39 raise exc.with_traceback(exc_tb) 10:48:39 else: 10:48:39 return self.cached_result[0] 10:48:39 # We have a previous but differently parametrized fixture instance 10:48:39 # so we need to tear it down before creating a new one. 10:48:39 self.finish(request) 10:48:39 assert self.cached_result is None 10:48:39 10:48:39 # Add finalizer to requested fixtures we saved previously. 10:48:39 # We make sure to do this after checking for cached value to avoid 10:48:39 # adding our finalizer multiple times. (#12135) 10:48:39 finalizer = functools.partial(self.finish, request=request) 10:48:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:48:39 parent_fixture.addfinalizer(finalizer) 10:48:39 10:48:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:48:39 # which is executed last. 10:48:39 > assert not self._finalizers 10:48:39 ^^^^^^^^^^^^^^^^^^^^ 10:48:39 E AssertionError 10:48:39 10:48:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:48:39 =========================== short test summary info ============================ 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 10:48:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 10:48:39 51 errors in 109.46s (0:01:49) 10:48:39 tests71: FAIL ✖ in 1 minute 51.76 seconds 10:48:39 tests_hybrid: exit 1 (109.74 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid pid=4541 10:48:39 buildcontroller: FAIL code 1 (9.13=setup[8.51]+cmd[0.61] seconds) 10:48:39 sims: OK (11.01=setup[7.47]+cmd[3.55] seconds) 10:48:39 testsPCE: FAIL code 1 (171.14=setup[46.95]+cmd[124.19] seconds) 10:48:39 build_karaf_tests221: FAIL code 127 (7.09=setup[7.08]+cmd[0.00] seconds) 10:48:39 tests_tapi: FAIL code 1 (117.00=setup[7.45]+cmd[109.55] seconds) 10:48:39 tests221: FAIL code 1 (115.30=setup[8.56]+cmd[106.74] seconds) 10:48:39 build_karaf_tests71: FAIL code 127 (6.89=setup[6.89]+cmd[0.00] seconds) 10:48:39 tests71: FAIL code 1 (111.76=setup[8.95]+cmd[102.81] seconds) 10:48:39 build_karaf_tests200: FAIL code 127 (6.84=setup[6.83]+cmd[0.00] seconds) 10:48:39 tests200: FAIL code 1 (110.79=setup[8.55]+cmd[102.24] seconds) 10:48:39 tests_hybrid: FAIL code 1 (116.32=setup[6.57]+cmd[109.74] seconds) 10:48:39 buildlighty: FAIL code 9 (7.04=setup[7.03]+cmd[0.01] seconds) 10:48:39 docs: OK (18.19=setup[15.78]+cmd[2.41] seconds) 10:48:39 docs-linkcheck: OK (19.88=setup[15.44]+cmd[4.43] seconds) 10:48:39 checkbashisms: OK (2.92=setup[1.76]+cmd[0.01,0.04,1.11] seconds) 10:48:39 pre-commit: OK (57.14=setup[2.86]+cmd[0.00,0.00,44.71,9.56] seconds) 10:48:39 pylint: FAIL code 1 (21.98=setup[4.36]+cmd[17.62] seconds) 10:48:39 evaluation failed :( (551.92 seconds) 10:48:39 + tox_status=1 10:48:39 + echo '---> Completed tox runs' 10:48:39 ---> Completed tox runs 10:48:39 + for i in .tox/*/log 10:48:39 ++ echo .tox/build_karaf_tests200/log 10:48:39 ++ awk -F/ '{print $2}' 10:48:39 + tox_env=build_karaf_tests200 10:48:39 + cp -r .tox/build_karaf_tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests200 10:48:39 + for i in .tox/*/log 10:48:39 ++ echo .tox/build_karaf_tests221/log 10:48:39 ++ awk -F/ '{print $2}' 10:48:39 + tox_env=build_karaf_tests221 10:48:39 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests221 10:48:39 + for i in .tox/*/log 10:48:39 ++ echo .tox/build_karaf_tests71/log 10:48:39 ++ awk -F/ '{print $2}' 10:48:39 + tox_env=build_karaf_tests71 10:48:39 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests71 10:48:39 + for i in .tox/*/log 10:48:39 ++ echo .tox/buildcontroller/log 10:48:39 ++ awk -F/ '{print $2}' 10:48:39 + tox_env=buildcontroller 10:48:39 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildcontroller 10:48:39 + for i in .tox/*/log 10:48:39 ++ echo .tox/buildlighty/log 10:48:39 ++ awk -F/ '{print $2}' 10:48:39 + tox_env=buildlighty 10:48:39 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildlighty 10:48:39 + for i in .tox/*/log 10:48:39 ++ echo .tox/checkbashisms/log 10:48:39 ++ awk -F/ '{print $2}' 10:48:39 + tox_env=checkbashisms 10:48:39 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/checkbashisms 10:48:39 + for i in .tox/*/log 10:48:39 ++ echo .tox/docs-linkcheck/log 10:48:39 ++ awk -F/ '{print $2}' 10:48:39 + tox_env=docs-linkcheck 10:48:39 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs-linkcheck 10:48:39 + for i in .tox/*/log 10:48:39 ++ echo .tox/docs/log 10:48:39 ++ awk -F/ '{print $2}' 10:48:39 + tox_env=docs 10:48:39 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs 10:48:39 + for i in .tox/*/log 10:48:39 ++ echo .tox/pre-commit/log 10:48:39 ++ awk -F/ '{print $2}' 10:48:39 + tox_env=pre-commit 10:48:39 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pre-commit 10:48:39 + for i in .tox/*/log 10:48:39 ++ echo .tox/pylint/log 10:48:39 ++ awk -F/ '{print $2}' 10:48:39 + tox_env=pylint 10:48:39 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pylint 10:48:39 + for i in .tox/*/log 10:48:39 ++ echo .tox/sims/log 10:48:39 ++ awk -F/ '{print $2}' 10:48:39 + tox_env=sims 10:48:39 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/sims 10:48:39 + for i in .tox/*/log 10:48:39 ++ echo .tox/tests200/log 10:48:39 ++ awk -F/ '{print $2}' 10:48:39 + tox_env=tests200 10:48:39 + cp -r .tox/tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests200 10:48:39 + for i in .tox/*/log 10:48:39 ++ echo .tox/tests221/log 10:48:39 ++ awk -F/ '{print $2}' 10:48:39 + tox_env=tests221 10:48:39 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests221 10:48:39 + for i in .tox/*/log 10:48:39 ++ echo .tox/tests71/log 10:48:39 ++ awk -F/ '{print $2}' 10:48:39 + tox_env=tests71 10:48:39 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests71 10:48:39 + for i in .tox/*/log 10:48:39 ++ echo .tox/testsPCE/log 10:48:39 ++ awk -F/ '{print $2}' 10:48:39 + tox_env=testsPCE 10:48:39 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/testsPCE 10:48:39 + for i in .tox/*/log 10:48:39 ++ echo .tox/tests_hybrid/log 10:48:39 ++ awk -F/ '{print $2}' 10:48:39 + tox_env=tests_hybrid 10:48:39 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_hybrid 10:48:39 + for i in .tox/*/log 10:48:39 ++ echo .tox/tests_tapi/log 10:48:39 ++ awk -F/ '{print $2}' 10:48:39 + tox_env=tests_tapi 10:48:39 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_tapi 10:48:39 + DOC_DIR=docs/_build/html 10:48:39 + [[ -d docs/_build/html ]] 10:48:39 + echo '---> Archiving generated docs' 10:48:39 ---> Archiving generated docs 10:48:39 + mv docs/_build/html /w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 10:48:39 + echo '---> tox-run.sh ends' 10:48:39 ---> tox-run.sh ends 10:48:39 + test 1 -eq 0 10:48:39 + exit 1 10:48:39 ++ '[' 1 = 1 ']' 10:48:39 ++ '[' -x /usr/bin/clear_console ']' 10:48:39 ++ /usr/bin/clear_console -q 10:48:39 Build step 'Execute shell' marked build as failure 10:48:39 $ ssh-agent -k 10:48:39 unset SSH_AUTH_SOCK; 10:48:39 unset SSH_AGENT_PID; 10:48:39 echo Agent pid 1572 killed; 10:48:39 [ssh-agent] Stopped. 10:48:39 [PostBuildScript] - [INFO] Executing post build scripts. 10:48:39 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins6565879190299119124.sh 10:48:39 ---> sysstat.sh 10:48:39 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins13470765422648821876.sh 10:48:39 ---> package-listing.sh 10:48:39 + '[' -f /etc/os-release ']' 10:48:39 + . /etc/os-release 10:48:39 ++ PRETTY_NAME='Ubuntu 22.04.5 LTS' 10:48:39 ++ NAME=Ubuntu 10:48:39 ++ VERSION_ID=22.04 10:48:39 ++ VERSION='22.04.5 LTS (Jammy Jellyfish)' 10:48:39 ++ VERSION_CODENAME=jammy 10:48:39 ++ ID=ubuntu 10:48:39 ++ ID_LIKE=debian 10:48:39 ++ HOME_URL=https://www.ubuntu.com/ 10:48:39 ++ SUPPORT_URL=https://help.ubuntu.com/ 10:48:39 ++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/ 10:48:39 ++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy 10:48:39 ++ UBUNTU_CODENAME=jammy 10:48:39 + case " ${ID:-} ${ID_LIKE:-} " in 10:48:39 + OS_FAMILY=debian 10:48:39 + workspace=/w/workspace/transportpce-tox-verify-transportpce-master 10:48:39 + START_PACKAGES=/tmp/packages_start.txt 10:48:39 + END_PACKAGES=/tmp/packages_end.txt 10:48:39 + DIFF_PACKAGES=/tmp/packages_diff.txt 10:48:39 + PACKAGES=/tmp/packages_start.txt 10:48:39 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 10:48:39 + PACKAGES=/tmp/packages_end.txt 10:48:39 + case "${OS_FAMILY}" in 10:48:39 + dpkg -l 10:48:39 + grep '^ii' 10:48:39 + '[' -f /tmp/packages_start.txt ']' 10:48:39 + '[' -f /tmp/packages_end.txt ']' 10:48:39 + diff /tmp/packages_start.txt /tmp/packages_end.txt 10:48:39 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 10:48:39 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 10:48:39 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 10:48:39 + exit 0 10:48:39 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins13337925447112494783.sh 10:48:39 ---> capture-instance-metadata.sh 10:48:39 Setup pyenv: 10:48:39 system 10:48:39 3.8.20 10:48:39 3.9.20 10:48:39 3.10.15 10:48:39 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 10:48:40 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-BB7z from file:/tmp/.os_lf_venv 10:48:40 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 10:48:42 lf-activate-venv(): INFO: Installing additional packages: lftools 10:48:55 lf-activate-venv(): INFO: Adding /tmp/venv-BB7z/bin to PATH 10:48:55 INFO: Running in OpenStack, capturing instance metadata 10:48:55 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins17537778348212615328.sh 10:48:55 provisioning config files... 10:48:56 Could not find credentials [logs] for transportpce-tox-verify-transportpce-master #6171 10:48:56 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-transportpce-master@tmp/config12561411909449276301tmp 10:48:56 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 10:48:56 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 10:48:56 provisioning config files... 10:48:56 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 10:48:56 [EnvInject] - Injecting environment variables from a build step. 10:48:56 [EnvInject] - Injecting as environment variables the properties content 10:48:56 SERVER_ID=logs 10:48:56 10:48:56 [EnvInject] - Variables injected successfully. 10:48:56 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins11036811341336728758.sh 10:48:56 ---> create-netrc.sh 10:48:56 WARN: Log server credential not found. 10:48:56 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins16363002562306705501.sh 10:48:56 ---> python-tools-install.sh 10:48:56 Setup pyenv: 10:48:56 system 10:48:56 3.8.20 10:48:56 3.9.20 10:48:56 3.10.15 10:48:56 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 10:48:56 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-BB7z from file:/tmp/.os_lf_venv 10:48:56 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 10:48:58 lf-activate-venv(): INFO: Installing additional packages: lftools 10:49:08 lf-activate-venv(): INFO: Adding /tmp/venv-BB7z/bin to PATH 10:49:08 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins334894582693667789.sh 10:49:08 ---> uv-install.sh 10:49:08 uv 0.12.24 is already installed 10:49:08 uvx 0.12.24 (x86_64-unknown-linux-gnu) 10:49:08 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins15559096841282219804.sh 10:49:08 ---> sudo-logs.sh 10:49:08 Archiving 'sudo' log.. 10:49:08 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins928795899063730996.sh 10:49:08 ---> job-cost.sh 10:49:08 INFO: Activating Python virtual environment... 10:49:08 Setup pyenv: 10:49:08 system 10:49:08 3.8.20 10:49:08 3.9.20 10:49:08 3.10.15 10:49:08 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 10:49:09 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-BB7z from file:/tmp/.os_lf_venv 10:49:09 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 10:49:10 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 10:49:16 lf-activate-venv(): INFO: Adding /tmp/venv-BB7z/bin to PATH 10:49:16 INFO: No stack-cost file found 10:49:16 INFO: Instance uptime: 725s 10:49:16 INFO: Fetching instance metadata (attempt 1 of 3)... 10:49:16 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 10:49:17 INFO: Successfully fetched instance metadata 10:49:17 INFO: Instance type: v3-standard-4 10:49:17 INFO: Retrieving pricing info for: v3-standard-4 10:49:17 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 10:49:17 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=725 10:49:17 INFO: Successfully fetched Vexxhost pricing API 10:49:17 INFO: Retrieved cost: 0.11 10:49:17 INFO: Retrieved resource: v3-standard-4 10:49:17 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost 10:49:17 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost.csv 10:49:17 INFO: Successfully archived job cost data 10:49:17 DEBUG: Cost data: transportpce-tox-verify-transportpce-master,6171,2026-10-09 10:49:17,v3-standard-4,725,0.11,0.00,FAILURE 10:49:17 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins638371467256121066.sh 10:49:17 ---> logs-deploy.sh 10:49:17 Setup pyenv: 10:49:17 system 10:49:17 3.8.20 10:49:17 3.9.20 10:49:17 3.10.15 10:49:17 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 10:49:18 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-BB7z from file:/tmp/.os_lf_venv 10:49:18 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 10:49:19 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 10:49:29 lf-activate-venv(): INFO: Adding /tmp/venv-BB7z/bin to PATH 10:49:29 WARNING: Nexus logging server not set 10:49:29 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-transportpce-master/6171/ 10:49:29 INFO: archiving logs to S3 10:49:30 ---> uname -a: 10:49:30 Linux prd-ubuntu2204-docker-4c-16g-63111 5.15.0-198-generic #208-Ubuntu SMP Fri Sep 4 10:22:38 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 10:49:30 10:49:30 10:49:30 ---> lscpu: 10:49:30 Architecture: x86_64 10:49:30 CPU op-mode(s): 32-bit, 64-bit 10:49:30 Address sizes: 40 bits physical, 48 bits virtual 10:49:30 Byte Order: Little Endian 10:49:30 CPU(s): 4 10:49:30 On-line CPU(s) list: 0-3 10:49:30 Vendor ID: AuthenticAMD 10:49:30 Model name: AMD EPYC-Rome Processor 10:49:30 CPU family: 23 10:49:30 Model: 49 10:49:30 Thread(s) per core: 1 10:49:30 Core(s) per socket: 1 10:49:30 Socket(s): 4 10:49:30 Stepping: 0 10:49:30 BogoMIPS: 5600.00 10:49:30 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 10:49:30 Virtualization: AMD-V 10:49:30 Hypervisor vendor: KVM 10:49:30 Virtualization type: full 10:49:30 L1d cache: 128 KiB (4 instances) 10:49:30 L1i cache: 128 KiB (4 instances) 10:49:30 L2 cache: 2 MiB (4 instances) 10:49:30 L3 cache: 64 MiB (4 instances) 10:49:30 NUMA node(s): 1 10:49:30 NUMA node0 CPU(s): 0-3 10:49:30 Vulnerability Gather data sampling: Not affected 10:49:30 Vulnerability Indirect target selection: Not affected 10:49:30 Vulnerability Itlb multihit: Not affected 10:49:30 Vulnerability L1tf: Not affected 10:49:30 Vulnerability Mds: Not affected 10:49:30 Vulnerability Meltdown: Not affected 10:49:30 Vulnerability Mmio stale data: Not affected 10:49:30 Vulnerability Reg file data sampling: Not affected 10:49:30 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 10:49:30 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 10:49:30 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 10:49:30 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 10:49:30 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 10:49:30 Vulnerability Srbds: Not affected 10:49:30 Vulnerability Tsa: Not affected 10:49:30 Vulnerability Tsx async abort: Not affected 10:49:30 Vulnerability Vmscape: Not affected 10:49:30 10:49:30 10:49:30 ---> nproc: 10:49:30 4 10:49:30 10:49:30 10:49:30 ---> df -h: 10:49:30 Filesystem Size Used Avail Use% Mounted on 10:49:30 tmpfs 1.6G 1.1M 1.6G 1% /run 10:49:30 /dev/vda1 78G 11G 67G 14% / 10:49:30 tmpfs 7.9G 0 7.9G 0% /dev/shm 10:49:30 tmpfs 5.0M 0 5.0M 0% /run/lock 10:49:30 /dev/vda15 105M 6.1M 99M 6% /boot/efi 10:49:30 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 10:49:30 10:49:30 10:49:30 ---> free -m: 10:49:30 total used free shared buff/cache available 10:49:30 Mem: 15989 692 9820 4 5476 14953 10:49:30 Swap: 1023 0 1023 10:49:30 10:49:30 10:49:30 ---> ip addr: 10:49:30 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 10:49:30 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 10:49:30 inet 127.0.0.1/8 scope host lo 10:49:30 valid_lft forever preferred_lft forever 10:49:30 inet6 ::1/128 scope host 10:49:30 valid_lft forever preferred_lft forever 10:49:30 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 10:49:30 link/ether fa:16:3e:6b:4f:ac brd ff:ff:ff:ff:ff:ff 10:49:30 altname enp0s3 10:49:30 inet 10.30.170.21/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 10:49:30 valid_lft 85670sec preferred_lft 85670sec 10:49:30 inet6 fe80::f816:3eff:fe6b:4fac/64 scope link 10:49:30 valid_lft forever preferred_lft forever 10:49:30 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 10:49:30 link/ether 42:b7:39:44:d1:91 brd ff:ff:ff:ff:ff:ff 10:49:30 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 10:49:30 valid_lft forever preferred_lft forever 10:49:30 inet6 fe80::40b7:39ff:fe44:d191/64 scope link 10:49:30 valid_lft forever preferred_lft forever 10:49:30 10:49:30 10:49:30 ---> sar -b -r -n DEV: 10:49:30 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-63111) 10/09/26 _x86_64_ (4 CPU) 10:49:30 10:49:30 10:37:23 LINUX RESTART (4 CPU) 10:49:30 10:49:30 10:49:30 ---> sar -P ALL: 10:49:30 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-63111) 10/09/26 _x86_64_ (4 CPU) 10:49:30 10:49:30 10:37:23 LINUX RESTART (4 CPU) 10:49:30 10:49:30 10:49:30