15:44:30 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/126684 15:44:30 Running as SYSTEM 15:44:30 [EnvInject] - Loading node environment variables. 15:44:30 Building remotely on prd-ubuntu2204-docker-4c-16g-62473 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-transportpce-master 15:44:31 [ssh-agent] Looking for ssh-agent implementation... 15:44:31 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 15:44:31 $ ssh-agent 15:44:32 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXlFAYMn/agent.1568 15:44:32 SSH_AGENT_PID=1570 15:44:32 [ssh-agent] Started. 15:44:32 Running ssh-add (command line suppressed) 15:44:32 Identity added: /w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_12757716821983999820.key (/w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_12757716821983999820.key) 15:44:32 [ssh-agent] Using credentials jenkins (jenkins-ssh) 15:44:32 The recommended git tool is: NONE 15:44:36 using credential jenkins-ssh 15:44:36 Wiping out workspace first. 15:44:36 Cloning the remote Git repository 15:44:36 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 15:44:36 > git init /w/workspace/transportpce-tox-verify-transportpce-master # timeout=10 15:44:36 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 15:44:36 > git --version # timeout=10 15:44:36 > git --version # 'git version 2.34.1' 15:44:36 using GIT_SSH to set credentials jenkins-ssh 15:44:36 Verifying host key using known hosts file, will automatically accept unseen keys 15:44:36 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 15:44:41 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 15:44:41 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 15:44:41 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 15:44:42 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 15:44:42 using GIT_SSH to set credentials jenkins-ssh 15:44:42 Verifying host key using known hosts file, will automatically accept unseen keys 15:44:42 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/84/126684/1 # timeout=10 15:44:42 > git rev-parse dc208403fec9149649c9b9f0e6eddde15614e294^{commit} # timeout=10 15:44:42 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script 15:44:42 Checking out Revision dc208403fec9149649c9b9f0e6eddde15614e294 (refs/changes/84/126684/1) 15:44:42 > git config core.sparsecheckout # timeout=10 15:44:42 > git checkout -f dc208403fec9149649c9b9f0e6eddde15614e294 # timeout=10 15:44:42 Commit message: "Fix networkmodel code style violations" 15:44:42 > git rev-parse FETCH_HEAD^{commit} # timeout=10 15:44:42 > git rev-list --no-walk 9e8bb06d4f46e6d7b71f04fef11a3b639958d2e3 # timeout=10 15:44:42 > git remote # timeout=10 15:44:42 > git submodule init # timeout=10 15:44:42 > git submodule sync # timeout=10 15:44:43 > git config --get remote.origin.url # timeout=10 15:44:43 > git submodule init # timeout=10 15:44:43 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 15:44:43 ERROR: No submodules found. 15:44:46 provisioning config files... 15:44:46 copy managed file [npmrc] to file:/home/jenkins/.npmrc 15:44:46 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 15:44:46 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins17021782663976346412.sh 15:44:46 ---> python-tools-install.sh 15:44:46 Setup pyenv: 15:44:46 * system (set by /opt/pyenv/version) 15:44:46 * 3.8.20 (set by /opt/pyenv/version) 15:44:46 * 3.9.20 (set by /opt/pyenv/version) 15:44:46 3.10.15 15:44:46 3.11.10 15:44:51 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-dcDJ 15:44:51 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 15:44:51 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:44:55 lf-activate-venv(): INFO: Installing additional packages: lftools 15:45:20 lf-activate-venv(): INFO: Adding /tmp/venv-dcDJ/bin to PATH 15:45:20 Generating Requirements File 15:45:45 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. 15:45:45 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 15:45:45 Python 3.11.10 15:45:46 pip 26.2.1 from /tmp/venv-dcDJ/lib/python3.11/site-packages/pip (python 3.11) 15:45:46 aiohappyeyeballs==2.7.1 15:45:46 aiohttp==3.14.4 15:45:46 aiosignal==1.4.0 15:45:46 appdirs==1.4.4 15:45:46 argcomplete==3.7.2 15:45:46 aspy.yaml==1.3.0 15:45:46 attrs==26.1.0 15:45:46 autopage==0.6.0 15:45:46 beautifulsoup4==4.15.0 15:45:46 boto3==1.43.108 15:45:46 botocore==1.43.108 15:45:46 bs4==0.0.2 15:45:46 certifi==2026.7.22 15:45:46 cffi==2.1.1 15:45:46 cfgv==3.5.0 15:45:46 chardet==7.6.0 15:45:46 charset-normalizer==3.5.2 15:45:46 click==8.5.0 15:45:46 cliff==4.16.0 15:45:46 cmd2==4.2.4 15:45:46 cryptography==3.3.2 15:45:46 debtcollector==3.1.0 15:45:46 decorator==5.3.1 15:45:46 defusedxml==0.7.1 15:45:46 Deprecated==1.3.1 15:45:46 distlib==0.4.3 15:45:46 dnspython==2.8.0 15:45:46 docker==7.2.0 15:45:46 dogpile.cache==1.5.0 15:45:46 durationpy==0.11 15:45:46 email-validator==2.3.0 15:45:46 filelock==4.0.12 15:45:46 frozenlist==1.8.0 15:45:46 future==1.0.0 15:45:46 gitdb==4.0.12 15:45:46 GitPython==3.2.0 15:45:46 httplib2==0.30.2 15:45:46 identify==2.6.20 15:45:46 idna==3.20 15:45:46 importlib-resources==1.5.0 15:45:46 iso8601==2.1.0 15:45:46 Jinja2==3.1.6 15:45:46 jmespath==1.1.0 15:45:46 jsonpatch==1.33 15:45:46 jsonpointer==3.1.1 15:45:46 jsonschema==4.26.0 15:45:46 jsonschema-specifications==2025.9.1 15:45:46 keystoneauth1==5.17.0 15:45:46 kubernetes==36.0.3 15:45:46 lftools==0.37.23 15:45:46 lxml==6.1.3 15:45:46 markdown-it-py==4.2.0 15:45:46 MarkupSafe==3.0.4 15:45:46 mdurl==0.1.2 15:45:46 msgpack==1.2.3 15:45:46 multi_key_dict==2.0.3 15:45:46 multidict==6.9.1 15:45:46 munch==4.0.0 15:45:46 netaddr==1.3.0 15:45:46 niet==1.4.2 15:45:46 nodeenv==1.11.0 15:45:46 oauth2client==4.1.3 15:45:46 oauthlib==4.0.0 15:45:46 openstacksdk==4.20.0 15:45:46 os-service-types==1.9.0 15:45:46 osc-lib==4.7.0 15:45:46 oslo.config==10.7.0 15:45:46 oslo.context==6.5.0 15:45:46 oslo.i18n==6.9.0 15:45:46 oslo.log==8.3.2 15:45:46 oslo.serialization==5.11.0 15:45:46 oslo.utils==10.2.0 15:45:46 packaging==26.3 15:45:46 pbr==7.0.3 15:45:46 platformdirs==4.12.3 15:45:46 prettytable==3.18.0 15:45:46 prompt_toolkit==3.0.53 15:45:46 propcache==0.5.4 15:45:46 psutil==7.2.2 15:45:46 pyasn1==0.6.4 15:45:46 pyasn1_modules==0.4.2 15:45:46 pycparser==3.0 15:45:46 pygerrit2==2.0.15 15:45:46 PyGithub==2.10.0 15:45:46 Pygments==2.21.0 15:45:46 PyJWT==2.15.1 15:45:46 PyNaCl==1.6.2 15:45:46 pyparsing==2.4.7 15:45:46 pyperclip==1.11.0 15:45:46 pyrsistent==0.20.0 15:45:46 python-dateutil==2.9.0.post0 15:45:46 python-discovery==1.6.1 15:45:46 python-heatclient==5.3.0 15:45:46 python-jenkins==1.8.3 15:45:46 python-keystoneclient==6.0.0 15:45:46 python-magnumclient==5.0.0 15:45:46 python-manilaclient==6.3.0 15:45:46 python-openstackclient==10.3.0 15:45:46 python-swiftclient==4.11.0 15:45:46 PyYAML==6.0.3 15:45:46 referencing==0.37.0 15:45:46 requests==2.34.2 15:45:46 requests-oauthlib==2.0.0 15:45:46 rfc3986==2.0.0 15:45:46 rich==15.0.0 15:45:46 rich-argparse==1.8.0 15:45:46 rpds-py==2026.9.1 15:45:46 rsa==4.9.1 15:45:46 ruamel.yaml==0.19.1 15:45:46 ruamel.yaml.clib==0.2.15 15:45:46 s3transfer==0.19.2 15:45:46 simplejson==4.2.0 15:45:46 six==1.17.0 15:45:46 smmap==5.0.3 15:45:46 soupsieve==2.10 15:45:46 stevedore==5.9.1 15:45:46 tabulate==0.10.0 15:45:46 toml==0.10.2 15:45:46 tomlkit==0.15.1 15:45:46 tqdm==4.70.1 15:45:46 typing_extensions==4.16.0 15:45:46 urllib3==1.26.20 15:45:46 virtualenv==21.14.5 15:45:46 wcwidth==0.9.2 15:45:46 websocket-client==1.9.2 15:45:46 wrapt==2.5.0 15:45:46 xdg==6.0.0 15:45:46 xmltodict==1.0.4 15:45:46 yarl==1.25.1 15:45:46 yq==4.4.0 15:45:46 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins17677026473972312823.sh 15:45:46 ---> uv-install.sh 15:45:46 Installing uv/uvx (latest) using shell installer 15:45:46 2026-10-06 15:45:46 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71308/71308] -> "/tmp/uv-install-DKW970.sh" [1] 15:45:46 downloading uv 0.12.23 x86_64-unknown-linux-gnu 15:45:47 installing to /home/jenkins/.local/bin 15:45:47 uv 15:45:47 uvx 15:45:47 everything's installed! 15:45:47 15:45:47 To add $HOME/.local/bin to your PATH, either restart your shell or run: 15:45:47 15:45:47 source $HOME/.local/bin/env (sh, bash, zsh) 15:45:47 source $HOME/.local/bin/env.fish (fish) 15:45:47 Adding install location to PATH 15:45:47 ---> Validating uv/uvx install 15:45:47 uvx 0.12.23 (x86_64-unknown-linux-gnu) 15:45:47 [EnvInject] - Injecting environment variables from a build step. 15:45:47 [EnvInject] - Injecting as environment variables the properties content 15:45:47 PYTHON=python3 15:45:47 15:45:47 [EnvInject] - Variables injected successfully. 15:45:47 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins14031480016403614951.sh 15:45:47 ---> tox-install.sh 15:45:47 + source /home/jenkins/lf-env.sh 15:45:47 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 15:45:47 ++ mktemp -d /tmp/venv-XXXX 15:45:47 + lf_venv=/tmp/venv-za0O 15:45:47 + local venv_file=/tmp/.os_lf_venv 15:45:47 + local python=python3 15:45:47 + local options 15:45:47 + local set_path=true 15:45:47 + local install_args= 15:45:47 ++ 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 15:45:47 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 15:45:47 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 15:45:47 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 15:45:47 + true 15:45:47 + case $1 in 15:45:47 + venv_file=/tmp/.toxenv 15:45:47 + shift 2 15:45:47 + true 15:45:47 + case $1 in 15:45:47 + shift 15:45:47 + break 15:45:47 + case $python in 15:45:47 + local pkg_list= 15:45:47 + [[ -d /opt/pyenv ]] 15:45:47 + echo 'Setup pyenv:' 15:45:47 Setup pyenv: 15:45:47 + export PYENV_ROOT=/opt/pyenv 15:45:47 + PYENV_ROOT=/opt/pyenv 15:45:47 + 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 15:45:47 + 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 15:45:47 + pyenv versions 15:45:47 system 15:45:47 3.8.20 15:45:47 3.9.20 15:45:47 3.10.15 15:45:47 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:45:47 + command -v pyenv 15:45:47 ++ pyenv init - --no-rehash 15:45:47 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 15:45:47 for i in ${!paths[@]}; do 15:45:47 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 15:45:47 fi; done; 15:45:47 echo "${paths[*]}"'\'')" 15:45:47 export PATH="/opt/pyenv/shims:${PATH}" 15:45:47 export PYENV_SHELL=bash 15:45:47 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 15:45:47 pyenv() { 15:45:47 local command 15:45:47 command="${1:-}" 15:45:47 if [ "$#" -gt 0 ]; then 15:45:47 shift 15:45:47 fi 15:45:47 15:45:47 case "$command" in 15:45:47 rehash|shell) 15:45:47 eval "$(pyenv "sh-$command" "$@")" 15:45:47 ;; 15:45:47 *) 15:45:47 command pyenv "$command" "$@" 15:45:47 ;; 15:45:47 esac 15:45:47 }' 15:45:47 +++ bash --norc -ec 'IFS=:; paths=($PATH); 15:45:47 for i in ${!paths[@]}; do 15:45:47 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 15:45:47 fi; done; 15:45:47 echo "${paths[*]}"' 15:45:47 ++ 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 15:45:47 ++ 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 15:45:47 ++ 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 15:45:47 ++ export PYENV_SHELL=bash 15:45:47 ++ PYENV_SHELL=bash 15:45:47 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 15:45:47 +++ complete -F _pyenv pyenv 15:45:47 ++ lf-pyver python3 15:45:47 ++ local py_version_xy=python3 15:45:47 ++ local py_version_xyz= 15:45:47 ++ pyenv versions 15:45:47 ++ sed 's/^[ *]* //' 15:45:47 ++ local command 15:45:47 ++ command=versions 15:45:47 ++ '[' 1 -gt 0 ']' 15:45:47 ++ shift 15:45:47 ++ case "$command" in 15:45:47 ++ command pyenv versions 15:45:47 ++ awk '{ print $1 }' 15:45:47 ++ grep -E '^[0-9.]*[0-9]$' 15:45:48 ++ [[ ! -s /tmp/.pyenv_versions ]] 15:45:48 +++ grep '^3' /tmp/.pyenv_versions 15:45:48 +++ sort -V 15:45:48 +++ tail -n 1 15:45:48 ++ py_version_xyz=3.11.10 15:45:48 ++ [[ -z 3.11.10 ]] 15:45:48 ++ echo 3.11.10 15:45:48 ++ return 0 15:45:48 + pyenv local 3.11.10 15:45:48 + local command 15:45:48 + command=local 15:45:48 + '[' 2 -gt 0 ']' 15:45:48 + shift 15:45:48 + case "$command" in 15:45:48 + command pyenv local 3.11.10 15:45:48 + for arg in "$@" 15:45:48 + case $arg in 15:45:48 + pkg_list+='tox ' 15:45:48 + for arg in "$@" 15:45:48 + case $arg in 15:45:48 + pkg_list+='virtualenv ' 15:45:48 + for arg in "$@" 15:45:48 + case $arg in 15:45:48 + pkg_list+='urllib3~=1.26.15 ' 15:45:48 + [[ -f /tmp/.toxenv ]] 15:45:48 + [[ ! -f /tmp/.toxenv ]] 15:45:48 + [[ -n '' ]] 15:45:48 + python3 -m venv /tmp/venv-za0O 15:45:52 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-za0O' 15:45:52 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-za0O 15:45:52 + echo /tmp/venv-za0O 15:45:52 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 15:45:52 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 15:45:52 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 15:45:52 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:45:52 + local 'pip_opts=--upgrade --quiet' 15:45:52 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 15:45:52 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 15:45:52 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 15:45:52 + [[ -n '' ]] 15:45:52 + [[ -n '' ]] 15:45:52 + lf-venv-pip-install /tmp/venv-za0O/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 15:45:52 + local venv_python=/tmp/venv-za0O/bin/python3 15:45:52 + shift 15:45:52 + local upstream=https://pypi.org/simple 15:45:52 + /tmp/venv-za0O/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 15:45:56 + return 0 15:45:56 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 15:45:56 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 15:45:56 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 15:45:56 + lf-venv-pip-install /tmp/venv-za0O/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 15:45:56 + local venv_python=/tmp/venv-za0O/bin/python3 15:45:56 + shift 15:45:56 + local upstream=https://pypi.org/simple 15:45:56 + /tmp/venv-za0O/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 15:45:58 + return 0 15:45:58 + type python3 15:45:58 + true 15:45:58 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-za0O/bin to PATH' 15:45:58 lf-activate-venv(): INFO: Adding /tmp/venv-za0O/bin to PATH 15:45:58 + PATH=/tmp/venv-za0O/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 15:45:58 + return 0 15:45:58 + python3 --version 15:45:58 Python 3.11.10 15:45:58 + python3 -m pip --version 15:45:58 pip 26.2.1 from /tmp/venv-za0O/lib/python3.11/site-packages/pip (python 3.11) 15:45:58 + python3 -m pip freeze 15:45:58 cachetools==7.2.1 15:45:58 colorama==0.4.6 15:45:58 distlib==0.4.3 15:45:58 filelock==4.0.12 15:45:58 packaging==26.3 15:45:58 platformdirs==4.12.3 15:45:58 pluggy==1.6.0 15:45:58 pyproject-api==1.11.3 15:45:58 python-discovery==1.6.1 15:45:58 tomli_w==1.2.0 15:45:58 tox==4.64.9 15:45:58 typing_extensions==4.16.0 15:45:58 urllib3==1.26.20 15:45:58 virtualenv==21.14.5 15:45:58 [transportpce-tox-verify-transportpce-master] $ /bin/sh -xe /tmp/jenkins134009411185371459.sh 15:45:58 [EnvInject] - Injecting environment variables from a build step. 15:45:58 [EnvInject] - Injecting as environment variables the properties content 15:45:58 PARALLEL=True 15:45:58 15:45:58 [EnvInject] - Variables injected successfully. 15:45:58 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins14331297019015262946.sh 15:45:58 ---> tox-run.sh 15:45:58 + 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 15:45:58 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 15:45:58 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 15:45:58 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 15:45:58 + cd /w/workspace/transportpce-tox-verify-transportpce-master/. 15:45:58 + source /home/jenkins/lf-env.sh 15:45:58 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 15:45:58 ++ mktemp -d /tmp/venv-XXXX 15:45:58 + lf_venv=/tmp/venv-fetp 15:45:58 + local venv_file=/tmp/.os_lf_venv 15:45:58 + local python=python3 15:45:58 + local options 15:45:58 + local set_path=true 15:45:58 + local install_args= 15:45:58 ++ 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 15:45:58 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 15:45:58 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 15:45:58 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 15:45:58 + true 15:45:58 + case $1 in 15:45:58 + venv_file=/tmp/.toxenv 15:45:58 + shift 2 15:45:58 + true 15:45:58 + case $1 in 15:45:58 + shift 15:45:58 + break 15:45:58 + case $python in 15:45:58 + local pkg_list= 15:45:58 + [[ -d /opt/pyenv ]] 15:45:58 + echo 'Setup pyenv:' 15:45:58 Setup pyenv: 15:45:58 + export PYENV_ROOT=/opt/pyenv 15:45:58 + PYENV_ROOT=/opt/pyenv 15:45:58 + 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 15:45:58 + 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 15:45:58 + pyenv versions 15:45:58 system 15:45:58 3.8.20 15:45:58 3.9.20 15:45:58 3.10.15 15:45:58 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:45:58 + command -v pyenv 15:45:58 ++ pyenv init - --no-rehash 15:45:58 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 15:45:58 for i in ${!paths[@]}; do 15:45:58 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 15:45:58 fi; done; 15:45:58 echo "${paths[*]}"'\'')" 15:45:58 export PATH="/opt/pyenv/shims:${PATH}" 15:45:58 export PYENV_SHELL=bash 15:45:58 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 15:45:58 pyenv() { 15:45:58 local command 15:45:58 command="${1:-}" 15:45:58 if [ "$#" -gt 0 ]; then 15:45:58 shift 15:45:58 fi 15:45:58 15:45:58 case "$command" in 15:45:58 rehash|shell) 15:45:58 eval "$(pyenv "sh-$command" "$@")" 15:45:58 ;; 15:45:58 *) 15:45:58 command pyenv "$command" "$@" 15:45:58 ;; 15:45:58 esac 15:45:58 }' 15:45:58 +++ bash --norc -ec 'IFS=:; paths=($PATH); 15:45:58 for i in ${!paths[@]}; do 15:45:58 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 15:45:58 fi; done; 15:45:58 echo "${paths[*]}"' 15:45:58 ++ 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 15:45:58 ++ 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 15:45:58 ++ 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 15:45:58 ++ export PYENV_SHELL=bash 15:45:58 ++ PYENV_SHELL=bash 15:45:58 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 15:45:58 +++ complete -F _pyenv pyenv 15:45:58 ++ lf-pyver python3 15:45:58 ++ local py_version_xy=python3 15:45:58 ++ local py_version_xyz= 15:45:58 ++ pyenv versions 15:45:58 ++ local command 15:45:58 ++ command=versions 15:45:58 ++ '[' 1 -gt 0 ']' 15:45:58 ++ shift 15:45:58 ++ case "$command" in 15:45:58 ++ sed 's/^[ *]* //' 15:45:58 ++ command pyenv versions 15:45:58 ++ grep -E '^[0-9.]*[0-9]$' 15:45:58 ++ awk '{ print $1 }' 15:45:58 ++ [[ ! -s /tmp/.pyenv_versions ]] 15:45:58 +++ grep '^3' /tmp/.pyenv_versions 15:45:58 +++ sort -V 15:45:58 +++ tail -n 1 15:45:58 ++ py_version_xyz=3.11.10 15:45:58 ++ [[ -z 3.11.10 ]] 15:45:58 ++ echo 3.11.10 15:45:58 ++ return 0 15:45:58 + pyenv local 3.11.10 15:45:58 + local command 15:45:58 + command=local 15:45:58 + '[' 2 -gt 0 ']' 15:45:58 + shift 15:45:58 + case "$command" in 15:45:58 + command pyenv local 3.11.10 15:45:59 + for arg in "$@" 15:45:59 + case $arg in 15:45:59 + pkg_list+='tox ' 15:45:59 + for arg in "$@" 15:45:59 + case $arg in 15:45:59 + pkg_list+='virtualenv ' 15:45:59 + for arg in "$@" 15:45:59 + case $arg in 15:45:59 + pkg_list+='urllib3~=1.26.15 ' 15:45:59 + [[ -f /tmp/.toxenv ]] 15:45:59 ++ cat /tmp/.toxenv 15:45:59 + lf_venv=/tmp/venv-za0O 15:45:59 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-za0O from' file:/tmp/.toxenv 15:45:59 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-za0O from file:/tmp/.toxenv 15:45:59 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 15:45:59 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:45:59 + local 'pip_opts=--upgrade --quiet' 15:45:59 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 15:45:59 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 15:45:59 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 15:45:59 + [[ -n '' ]] 15:45:59 + [[ -n '' ]] 15:45:59 + lf-venv-pip-install /tmp/venv-za0O/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 15:45:59 + local venv_python=/tmp/venv-za0O/bin/python3 15:45:59 + shift 15:45:59 + local upstream=https://pypi.org/simple 15:45:59 + /tmp/venv-za0O/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 15:46:00 + return 0 15:46:00 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 15:46:00 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 15:46:00 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 15:46:00 + lf-venv-pip-install /tmp/venv-za0O/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 15:46:00 + local venv_python=/tmp/venv-za0O/bin/python3 15:46:00 + shift 15:46:00 + local upstream=https://pypi.org/simple 15:46:00 + /tmp/venv-za0O/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 15:46:01 + return 0 15:46:01 + type python3 15:46:01 + true 15:46:01 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-za0O/bin to PATH' 15:46:01 lf-activate-venv(): INFO: Adding /tmp/venv-za0O/bin to PATH 15:46:01 + PATH=/tmp/venv-za0O/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 15:46:01 + return 0 15:46:01 + [[ -d /opt/pyenv ]] 15:46:01 + echo '---> Setting up pyenv' 15:46:01 ---> Setting up pyenv 15:46:01 + export PYENV_ROOT=/opt/pyenv 15:46:01 + PYENV_ROOT=/opt/pyenv 15:46:01 + export PATH=/opt/pyenv/bin:/tmp/venv-za0O/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 15:46:01 + PATH=/opt/pyenv/bin:/tmp/venv-za0O/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 15:46:01 ++ pwd 15:46:01 + PYTHONPATH=/w/workspace/transportpce-tox-verify-transportpce-master 15:46:01 + export PYTHONPATH 15:46:01 + export TOX_TESTENV_PASSENV=PYTHONPATH 15:46:01 + TOX_TESTENV_PASSENV=PYTHONPATH 15:46:01 + tox --version 15:46:01 4.64.9 from /tmp/venv-za0O/lib/python3.11/site-packages/tox/__init__.py 15:46:01 + PARALLEL=True 15:46:01 + TOX_OPTIONS_LIST= 15:46:01 + [[ -n '' ]] 15:46:01 + case ${PARALLEL,,} in 15:46:01 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 15:46:01 + tox --parallel auto --parallel-live 15:46:01 + tee -a /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tox.log 15:46:03 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 15:46:03 docs: install_deps> python -I -m pip install -r docs/requirements.txt 15:46:03 checkbashisms: freeze> python -m pip freeze --all 15:46:03 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 15:46:03 checkbashisms: pip==26.2.1,setuptools==84.0.0 15:46:03 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 15:46:03 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)' 15:46:03 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 15:46:04 checkbashisms: OK ✔ in 3.12 seconds 15:46:04 pre-commit: install_deps> python -I -m pip install pre-commit 15:46:07 pre-commit: freeze> python -m pip freeze --all 15:46:07 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.3,pre_commit==4.6.2,python-discovery==1.6.1,PyYAML==6.0.3,setuptools==84.0.0,virtualenv==21.14.5 15:46:07 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 15:46:07 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)' 15:46:07 /usr/bin/cpan 15:46:07 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure 15:46:08 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 15:46:09 buildcontroller: freeze> python -m pip freeze --all 15:46:09 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 15:46:09 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.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:46:09 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh 15:46:09 + update-java-alternatives -l 15:46:09 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 15:46:09 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 15:46:09 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 15:46:09 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 15:46:09 update-alternatives: error: no alternatives for jaotc 15:46:10 update-alternatives: error: no alternatives for rmic 15:46:10 + java -version 15:46:10 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 15:46:10 21.0 15:46:10 + JAVA_VER=21.0 15:46:10 + echo 21.0 15:46:10 + javac -version 15:46:10 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 15:46:10 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 15:46:10 + JAVAC_VER=21.0 15:46:10 + echo 21.0 15:46:10 + [ 21.0 -ge 21 ] 15:46:10 ./installMavenUbuntu.sh: 14: [: Illegal number: 21.0 15:46:10 + echo No java21 or newer available 15:46:10 + exit 1 15:46:10 21.0 15:46:10 No java21 or newer available 15:46:10 buildcontroller: exit 1 (0.82 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh pid=2652 15:46:10 buildcontroller: FAIL ✖ in 8.96 seconds 15:46:10 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 15:46:11 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 15:46:11 [INFO] Initializing environment for https://github.com/hhatto/autopep8. 15:46:12 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 15:46:12 [INFO] Initializing environment for https://github.com/koalaman/shellcheck-precommit. 15:46:13 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier. 15:46:13 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@4.0.0-alpha.8. 15:46:13 pylint: freeze> python -m pip freeze --all 15:46:13 [INFO] Initializing environment for https://github.com/adrienverge/yamllint. 15:46:13 pylint: astroid==4.3.3,dill==0.4.1,isort==9.0.2,mccabe==0.7.0,mypy_extensions==1.1.0,pip==26.2.1,platformdirs==4.12.3,pylint==4.1.2,setuptools==84.0.0,tomlkit==0.15.1 15:46:13 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}$' '{}' + 15:46:14 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 15:46:14 [INFO] Once installed this environment will be reused. 15:46:14 [INFO] This may take a few minutes... 15:46:17 docs: freeze> python -m pip freeze --all 15:46:17 docs-linkcheck: freeze> python -m pip freeze --all 15:46:17 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 15:46:17 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 15:46:17 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 15:46:17 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 15:46:19 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 15:46:19 [INFO] Once installed this environment will be reused. 15:46:19 [INFO] This may take a few minutes... 15:46:20 docs: OK ✔ in 18.45 seconds 15:46:20 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 15:46:21 docs-linkcheck: OK ✔ in 19.26 seconds 15:46:21 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 15:46:24 [INFO] Installing environment for https://github.com/hhatto/autopep8. 15:46:24 [INFO] Once installed this environment will be reused. 15:46:24 [INFO] This may take a few minutes... 15:46:26 build_karaf_tests221: freeze> python -m pip freeze --all 15:46:27 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.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:46:27 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 15:46:27 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf221 15:46:27 ./build_karaf_for_tests.sh: 22: mvn: not found 15:46:27 build karaf in karaf221 with ./karaf221.env 15:46:27 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 15:46:27 build_karaf_tests221: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3331 15:46:27 build_karaf_tests221: FAIL ✖ in 6.87 seconds 15:46:27 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 15:46:27 build_karaf_tests71: freeze> python -m pip freeze --all 15:46:27 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.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:46:27 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 15:46:27 build karaf in karaf71 with ./karaf71.env 15:46:27 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf71 15:46:27 ./build_karaf_for_tests.sh: 22: mvn: not found 15:46:27 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 15:46:27 build_karaf_tests71: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3352 15:46:27 build_karaf_tests71: FAIL ✖ in 6.72 seconds 15:46:27 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 15:46:28 [INFO] Installing environment for https://github.com/perltidy/perltidy. 15:46:28 [INFO] Once installed this environment will be reused. 15:46:28 [INFO] This may take a few minutes... 15:46:31 ************* Module 2.2.1.test12_end2end 15:46:31 transportpce_tests/2.2.1/test12_end2end.py:435:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:46:31 ************* Module common.test_utils 15:46:31 transportpce_tests/common/test_utils.py:532:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:46:31 transportpce_tests/common/test_utils.py:555:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:46:31 transportpce_tests/common/test_utils.py:581:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:46:31 transportpce_tests/common/test_utils.py:617:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:46:31 transportpce_tests/common/test_utils.py:635:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:46:31 transportpce_tests/common/test_utils.py:666:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:46:31 transportpce_tests/common/test_utils.py:687:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:46:31 15:46:31 ----------------------------------- 15:46:31 Your code has been rated at 9.99/10 15:46:31 15:46:32 pylint: exit 1 (18.96 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=3161 15:46:32 pylint: FAIL ✖ in 22.24 seconds 15:46:32 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 15:46:33 build_karaf_tests200: freeze> python -m pip freeze --all 15:46:33 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.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:46:33 build_karaf_tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 15:46:33 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karafoc200 15:46:33 ./build_karaf_for_tests.sh: 22: mvn: not found 15:46:33 build karaf in karafoc200 with ./karafoc200.env 15:46:33 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 15:46:33 build_karaf_tests200: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3394 15:46:33 build_karaf_tests200: FAIL ✖ in 6.72 seconds 15:46:33 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 15:46:34 buildlighty: freeze> python -m pip freeze --all 15:46:34 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.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:46:34 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh 15:46:34 ./build.sh: 7: mvn: not found 15:46:34 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 15:46:34 buildlighty: exit 9 (0.01 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh pid=3418 15:46:36 [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier. 15:46:36 [INFO] Once installed this environment will be reused. 15:46:36 [INFO] This may take a few minutes... 15:46:39 buildlighty: FAIL ✖ in 6.6 seconds 15:46:39 sims: freeze> python -m pip freeze --all 15:46:39 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.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:46:39 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh 15:46:39 Using lighynode version 22.1.0.7 15:46:39 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 15:46:39 [INFO] Installing environment for https://github.com/adrienverge/yamllint. 15:46:39 [INFO] Once installed this environment will be reused. 15:46:39 [INFO] This may take a few minutes... 15:46:44 trim trailing whitespace.................................................Passed 15:46:44 fix end of files.........................................................Passed 15:46:44 check for added large files..............................................Passed 15:46:44 check for merge conflicts................................................Passed 15:46:44 check for case conflicts.................................................Passed 15:46:44 check json...............................................................Passed 15:46:45 mixed line ending........................................................Passed 15:46:45 Tabs remover.............................................................Passed 15:46:45 autopep8.................................................................Passed 15:46:47 perltidy.................................................................Passed 15:46:47 ShellCheck v0.11.0.......................................................Passed 15:46:54 prettier.................................................................Passed 15:46:55 yamllint.................................................................Passed 15:46:55 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual 15:46:55 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 15:46:55 [INFO] Once installed this environment will be reused. 15:46:55 [INFO] This may take a few minutes... 15:47:04 gitlint..................................................................Passed 15:47:22 pre-commit: OK ✔ in 1 minute 0.15 seconds 15:47:22 sims: OK ✔ in 46.53 seconds 15:47:22 testsPCE: freeze> python -m pip freeze --all 15:47:22 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.0,injector==0.24.0,invoke==3.0.3,itsdangerous==2.2.0,Jinja2==3.1.6,kiwisolver==1.5.1,lxml==6.1.3,MarkupSafe==3.0.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.0,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 15:47:22 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce 15:47:22 pytest -q transportpce_tests/pce/test01_pce.py 15:49:23 EEEEEEEEEEEEEEEEEEEE [100%] 15:49:26 ==================================== ERRORS ==================================== 15:49:26 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 15:49:26 15:49:26 cls = 15:49:26 15:49:26 @classmethod 15:49:26 def setUpClass(cls): 15:49:26 # pylint: disable=bare-except 15:49:26 sample_files_parsed = False 15:49:26 time.sleep(20) 15:49:26 try: 15:49:26 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 15:49:26 "..", "..", "sample_configs", "honeynode-topo.json") 15:49:26 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 15:49:26 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 15:49:26 15:49:26 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 15:49:26 "..", "..", "sample_configs", "NW-simple-topology.json") 15:49:26 15:49:26 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 15:49:26 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 15:49:26 15:49:26 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 15:49:26 "..", "..", "sample_configs", "NW-for-test-5-4.json") 15:49:26 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 15:49:26 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 15:49:26 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 15:49:26 "..", "..", "sample_configs", "pce_portmapping_221.json") 15:49:26 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 15:49:26 cls.port_mapping_data = port_mapping.read() 15:49:26 sample_files_parsed = True 15:49:26 except PermissionError as err: 15:49:26 print("Permission Error when trying to read sample files\n", err) 15:49:26 sys.exit(2) 15:49:26 except FileNotFoundError as err: 15:49:26 print("File Not found Error when trying to read sample files\n", err) 15:49:26 sys.exit(2) 15:49:26 except: 15:49:26 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 15:49:26 sys.exit(2) 15:49:26 finally: 15:49:26 if sample_files_parsed: 15:49:26 print("sample files content loaded") 15:49:26 15:49:26 > cls.processes = test_utils.start_tpce() 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 15:49:26 transportpce_tests/pce/test01_pce.py:93: 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 15:49:26 def start_tpce(): 15:49:26 if 'NO_ODL_STARTUP' in os.environ: 15:49:26 print('No OpenDaylight instance to start!') 15:49:26 return [] 15:49:26 print('starting OpenDaylight...') 15:49:26 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:49:26 process = start_lighty() 15:49:26 else: 15:49:26 process = start_karaf() 15:49:26 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:49:26 print('OpenDaylight started !') 15:49:26 else: 15:49:26 print('OpenDaylight failed to start !') 15:49:26 shutdown_process(process) 15:49:26 for pid in process_list: 15:49:26 shutdown_process(pid) 15:49:26 > sys.exit(1) 15:49:26 E SystemExit: 1 15:49:26 15:49:26 transportpce_tests/common/test_utils.py:234: SystemExit 15:49:26 ---------------------------- Captured stdout setup ----------------------------- 15:49:26 sample files content loaded 15:49:26 starting OpenDaylight... 15:49:26 starting KARAF (karaf) TransportPCE build... 15:49:26 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:49:26 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 15:49:26 15:49:26 cls = 15:49:26 func = . at 0x7f938019e660> 15:49:26 when = 'setup' 15:49:26 reraise = (, ) 15:49:26 15:49:26 @classmethod 15:49:26 def from_call( 15:49:26 cls, 15:49:26 func: Callable[[], TResult], 15:49:26 when: Literal["collect", "setup", "call", "teardown"], 15:49:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:26 ) -> CallInfo[TResult]: 15:49:26 """Call func, wrapping the result in a CallInfo. 15:49:26 15:49:26 :param func: 15:49:26 The function to call. Called without arguments. 15:49:26 :type func: Callable[[], _pytest.runner.TResult] 15:49:26 :param when: 15:49:26 The phase in which the function is called. 15:49:26 :param reraise: 15:49:26 Exception or exceptions that shall propagate if raised by the 15:49:26 function, instead of being wrapped in the CallInfo. 15:49:26 """ 15:49:26 excinfo = None 15:49:26 instant = timing.Instant() 15:49:26 try: 15:49:26 > result: TResult | None = func() 15:49:26 ^^^^^^ 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:26 lambda: runtest_hook(item=item, **kwds), 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:26 yield 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:26 return (yield) 15:49:26 ^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:26 item.session._setupstate.setup(item) 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:26 col.setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:26 super().setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:26 self._request._fillfixtures() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:26 fixturedef = self._get_active_fixturedef(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:26 fixturedef.execute(request=subrequest) 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 15:49:26 self = 15:49:26 request = > 15:49:26 15:49:26 def execute(self, request: SubRequest) -> FixtureValue: 15:49:26 """Return the value of this fixture, executing it if not cached.""" 15:49:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:26 # This needs to be done before checking if we have a cached value, since 15:49:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:26 # parametrization, they finalize themselves and fixtures depending on it 15:49:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:26 # See #4871 15:49:26 requested_fixtures_that_should_finalize_us = [] 15:49:26 for argname in self.argnames: 15:49:26 fixturedef = request._get_active_fixturedef(argname) 15:49:26 # Saves requested fixtures in a list so we later can add our finalizer 15:49:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:26 # down first. This is generally handled by SetupState, but still currently 15:49:26 # needed when this fixture is not parametrized but depends on a parametrized 15:49:26 # fixture. 15:49:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:26 15:49:26 # Check for (and return) cached value/exception. 15:49:26 if self.cached_result is not None: 15:49:26 request_cache_key = self.cache_key(request) 15:49:26 cache_key = self.cached_result[1] 15:49:26 try: 15:49:26 # Attempt to make a normal == check: this might fail for objects 15:49:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:26 cache_hit = bool(request_cache_key == cache_key) 15:49:26 except (ValueError, RuntimeError): 15:49:26 # If the comparison raises, use 'is' as fallback. 15:49:26 cache_hit = request_cache_key is cache_key 15:49:26 15:49:26 if cache_hit: 15:49:26 if self.cached_result[2] is not None: 15:49:26 exc, exc_tb = self.cached_result[2] 15:49:26 raise exc.with_traceback(exc_tb) 15:49:26 else: 15:49:26 return self.cached_result[0] 15:49:26 # We have a previous but differently parametrized fixture instance 15:49:26 # so we need to tear it down before creating a new one. 15:49:26 self.finish(request) 15:49:26 assert self.cached_result is None 15:49:26 15:49:26 # Add finalizer to requested fixtures we saved previously. 15:49:26 # We make sure to do this after checking for cached value to avoid 15:49:26 # adding our finalizer multiple times. (#12135) 15:49:26 finalizer = functools.partial(self.finish, request=request) 15:49:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:26 parent_fixture.addfinalizer(finalizer) 15:49:26 15:49:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:26 # which is executed last. 15:49:26 > assert not self._finalizers 15:49:26 ^^^^^^^^^^^^^^^^^^^^ 15:49:26 E AssertionError 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:26 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 15:49:26 15:49:26 cls = 15:49:26 func = . at 0x7f938019fc40> 15:49:26 when = 'setup' 15:49:26 reraise = (, ) 15:49:26 15:49:26 @classmethod 15:49:26 def from_call( 15:49:26 cls, 15:49:26 func: Callable[[], TResult], 15:49:26 when: Literal["collect", "setup", "call", "teardown"], 15:49:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:26 ) -> CallInfo[TResult]: 15:49:26 """Call func, wrapping the result in a CallInfo. 15:49:26 15:49:26 :param func: 15:49:26 The function to call. Called without arguments. 15:49:26 :type func: Callable[[], _pytest.runner.TResult] 15:49:26 :param when: 15:49:26 The phase in which the function is called. 15:49:26 :param reraise: 15:49:26 Exception or exceptions that shall propagate if raised by the 15:49:26 function, instead of being wrapped in the CallInfo. 15:49:26 """ 15:49:26 excinfo = None 15:49:26 instant = timing.Instant() 15:49:26 try: 15:49:26 > result: TResult | None = func() 15:49:26 ^^^^^^ 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:26 lambda: runtest_hook(item=item, **kwds), 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:26 yield 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:26 return (yield) 15:49:26 ^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:26 item.session._setupstate.setup(item) 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:26 col.setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:26 super().setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:26 self._request._fillfixtures() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:26 fixturedef = self._get_active_fixturedef(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:26 fixturedef.execute(request=subrequest) 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 15:49:26 self = 15:49:26 request = > 15:49:26 15:49:26 def execute(self, request: SubRequest) -> FixtureValue: 15:49:26 """Return the value of this fixture, executing it if not cached.""" 15:49:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:26 # This needs to be done before checking if we have a cached value, since 15:49:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:26 # parametrization, they finalize themselves and fixtures depending on it 15:49:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:26 # See #4871 15:49:26 requested_fixtures_that_should_finalize_us = [] 15:49:26 for argname in self.argnames: 15:49:26 fixturedef = request._get_active_fixturedef(argname) 15:49:26 # Saves requested fixtures in a list so we later can add our finalizer 15:49:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:26 # down first. This is generally handled by SetupState, but still currently 15:49:26 # needed when this fixture is not parametrized but depends on a parametrized 15:49:26 # fixture. 15:49:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:26 15:49:26 # Check for (and return) cached value/exception. 15:49:26 if self.cached_result is not None: 15:49:26 request_cache_key = self.cache_key(request) 15:49:26 cache_key = self.cached_result[1] 15:49:26 try: 15:49:26 # Attempt to make a normal == check: this might fail for objects 15:49:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:26 cache_hit = bool(request_cache_key == cache_key) 15:49:26 except (ValueError, RuntimeError): 15:49:26 # If the comparison raises, use 'is' as fallback. 15:49:26 cache_hit = request_cache_key is cache_key 15:49:26 15:49:26 if cache_hit: 15:49:26 if self.cached_result[2] is not None: 15:49:26 exc, exc_tb = self.cached_result[2] 15:49:26 raise exc.with_traceback(exc_tb) 15:49:26 else: 15:49:26 return self.cached_result[0] 15:49:26 # We have a previous but differently parametrized fixture instance 15:49:26 # so we need to tear it down before creating a new one. 15:49:26 self.finish(request) 15:49:26 assert self.cached_result is None 15:49:26 15:49:26 # Add finalizer to requested fixtures we saved previously. 15:49:26 # We make sure to do this after checking for cached value to avoid 15:49:26 # adding our finalizer multiple times. (#12135) 15:49:26 finalizer = functools.partial(self.finish, request=request) 15:49:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:26 parent_fixture.addfinalizer(finalizer) 15:49:26 15:49:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:26 # which is executed last. 15:49:26 > assert not self._finalizers 15:49:26 ^^^^^^^^^^^^^^^^^^^^ 15:49:26 E AssertionError 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:26 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 15:49:26 15:49:26 cls = 15:49:26 func = . at 0x7f938019f420> 15:49:26 when = 'setup' 15:49:26 reraise = (, ) 15:49:26 15:49:26 @classmethod 15:49:26 def from_call( 15:49:26 cls, 15:49:26 func: Callable[[], TResult], 15:49:26 when: Literal["collect", "setup", "call", "teardown"], 15:49:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:26 ) -> CallInfo[TResult]: 15:49:26 """Call func, wrapping the result in a CallInfo. 15:49:26 15:49:26 :param func: 15:49:26 The function to call. Called without arguments. 15:49:26 :type func: Callable[[], _pytest.runner.TResult] 15:49:26 :param when: 15:49:26 The phase in which the function is called. 15:49:26 :param reraise: 15:49:26 Exception or exceptions that shall propagate if raised by the 15:49:26 function, instead of being wrapped in the CallInfo. 15:49:26 """ 15:49:26 excinfo = None 15:49:26 instant = timing.Instant() 15:49:26 try: 15:49:26 > result: TResult | None = func() 15:49:26 ^^^^^^ 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:26 lambda: runtest_hook(item=item, **kwds), 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:26 yield 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:26 return (yield) 15:49:26 ^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:26 item.session._setupstate.setup(item) 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:26 col.setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:26 super().setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:26 self._request._fillfixtures() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:26 fixturedef = self._get_active_fixturedef(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:26 fixturedef.execute(request=subrequest) 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 15:49:26 self = 15:49:26 request = > 15:49:26 15:49:26 def execute(self, request: SubRequest) -> FixtureValue: 15:49:26 """Return the value of this fixture, executing it if not cached.""" 15:49:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:26 # This needs to be done before checking if we have a cached value, since 15:49:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:26 # parametrization, they finalize themselves and fixtures depending on it 15:49:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:26 # See #4871 15:49:26 requested_fixtures_that_should_finalize_us = [] 15:49:26 for argname in self.argnames: 15:49:26 fixturedef = request._get_active_fixturedef(argname) 15:49:26 # Saves requested fixtures in a list so we later can add our finalizer 15:49:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:26 # down first. This is generally handled by SetupState, but still currently 15:49:26 # needed when this fixture is not parametrized but depends on a parametrized 15:49:26 # fixture. 15:49:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:26 15:49:26 # Check for (and return) cached value/exception. 15:49:26 if self.cached_result is not None: 15:49:26 request_cache_key = self.cache_key(request) 15:49:26 cache_key = self.cached_result[1] 15:49:26 try: 15:49:26 # Attempt to make a normal == check: this might fail for objects 15:49:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:26 cache_hit = bool(request_cache_key == cache_key) 15:49:26 except (ValueError, RuntimeError): 15:49:26 # If the comparison raises, use 'is' as fallback. 15:49:26 cache_hit = request_cache_key is cache_key 15:49:26 15:49:26 if cache_hit: 15:49:26 if self.cached_result[2] is not None: 15:49:26 exc, exc_tb = self.cached_result[2] 15:49:26 raise exc.with_traceback(exc_tb) 15:49:26 else: 15:49:26 return self.cached_result[0] 15:49:26 # We have a previous but differently parametrized fixture instance 15:49:26 # so we need to tear it down before creating a new one. 15:49:26 self.finish(request) 15:49:26 assert self.cached_result is None 15:49:26 15:49:26 # Add finalizer to requested fixtures we saved previously. 15:49:26 # We make sure to do this after checking for cached value to avoid 15:49:26 # adding our finalizer multiple times. (#12135) 15:49:26 finalizer = functools.partial(self.finish, request=request) 15:49:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:26 parent_fixture.addfinalizer(finalizer) 15:49:26 15:49:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:26 # which is executed last. 15:49:26 > assert not self._finalizers 15:49:26 ^^^^^^^^^^^^^^^^^^^^ 15:49:26 E AssertionError 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:26 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 15:49:26 15:49:26 cls = 15:49:26 func = . at 0x7f938268c040> 15:49:26 when = 'setup' 15:49:26 reraise = (, ) 15:49:26 15:49:26 @classmethod 15:49:26 def from_call( 15:49:26 cls, 15:49:26 func: Callable[[], TResult], 15:49:26 when: Literal["collect", "setup", "call", "teardown"], 15:49:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:26 ) -> CallInfo[TResult]: 15:49:26 """Call func, wrapping the result in a CallInfo. 15:49:26 15:49:26 :param func: 15:49:26 The function to call. Called without arguments. 15:49:26 :type func: Callable[[], _pytest.runner.TResult] 15:49:26 :param when: 15:49:26 The phase in which the function is called. 15:49:26 :param reraise: 15:49:26 Exception or exceptions that shall propagate if raised by the 15:49:26 function, instead of being wrapped in the CallInfo. 15:49:26 """ 15:49:26 excinfo = None 15:49:26 instant = timing.Instant() 15:49:26 try: 15:49:26 > result: TResult | None = func() 15:49:26 ^^^^^^ 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:26 lambda: runtest_hook(item=item, **kwds), 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:26 yield 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:26 return (yield) 15:49:26 ^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:26 item.session._setupstate.setup(item) 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:26 col.setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:26 super().setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:26 self._request._fillfixtures() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:26 fixturedef = self._get_active_fixturedef(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:26 fixturedef.execute(request=subrequest) 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 15:49:26 self = 15:49:26 request = > 15:49:26 15:49:26 def execute(self, request: SubRequest) -> FixtureValue: 15:49:26 """Return the value of this fixture, executing it if not cached.""" 15:49:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:26 # This needs to be done before checking if we have a cached value, since 15:49:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:26 # parametrization, they finalize themselves and fixtures depending on it 15:49:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:26 # See #4871 15:49:26 requested_fixtures_that_should_finalize_us = [] 15:49:26 for argname in self.argnames: 15:49:26 fixturedef = request._get_active_fixturedef(argname) 15:49:26 # Saves requested fixtures in a list so we later can add our finalizer 15:49:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:26 # down first. This is generally handled by SetupState, but still currently 15:49:26 # needed when this fixture is not parametrized but depends on a parametrized 15:49:26 # fixture. 15:49:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:26 15:49:26 # Check for (and return) cached value/exception. 15:49:26 if self.cached_result is not None: 15:49:26 request_cache_key = self.cache_key(request) 15:49:26 cache_key = self.cached_result[1] 15:49:26 try: 15:49:26 # Attempt to make a normal == check: this might fail for objects 15:49:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:26 cache_hit = bool(request_cache_key == cache_key) 15:49:26 except (ValueError, RuntimeError): 15:49:26 # If the comparison raises, use 'is' as fallback. 15:49:26 cache_hit = request_cache_key is cache_key 15:49:26 15:49:26 if cache_hit: 15:49:26 if self.cached_result[2] is not None: 15:49:26 exc, exc_tb = self.cached_result[2] 15:49:26 raise exc.with_traceback(exc_tb) 15:49:26 else: 15:49:26 return self.cached_result[0] 15:49:26 # We have a previous but differently parametrized fixture instance 15:49:26 # so we need to tear it down before creating a new one. 15:49:26 self.finish(request) 15:49:26 assert self.cached_result is None 15:49:26 15:49:26 # Add finalizer to requested fixtures we saved previously. 15:49:26 # We make sure to do this after checking for cached value to avoid 15:49:26 # adding our finalizer multiple times. (#12135) 15:49:26 finalizer = functools.partial(self.finish, request=request) 15:49:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:26 parent_fixture.addfinalizer(finalizer) 15:49:26 15:49:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:26 # which is executed last. 15:49:26 > assert not self._finalizers 15:49:26 ^^^^^^^^^^^^^^^^^^^^ 15:49:26 E AssertionError 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:26 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 15:49:26 15:49:26 cls = 15:49:26 func = . at 0x7f938019f1a0> 15:49:26 when = 'setup' 15:49:26 reraise = (, ) 15:49:26 15:49:26 @classmethod 15:49:26 def from_call( 15:49:26 cls, 15:49:26 func: Callable[[], TResult], 15:49:26 when: Literal["collect", "setup", "call", "teardown"], 15:49:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:26 ) -> CallInfo[TResult]: 15:49:26 """Call func, wrapping the result in a CallInfo. 15:49:26 15:49:26 :param func: 15:49:26 The function to call. Called without arguments. 15:49:26 :type func: Callable[[], _pytest.runner.TResult] 15:49:26 :param when: 15:49:26 The phase in which the function is called. 15:49:26 :param reraise: 15:49:26 Exception or exceptions that shall propagate if raised by the 15:49:26 function, instead of being wrapped in the CallInfo. 15:49:26 """ 15:49:26 excinfo = None 15:49:26 instant = timing.Instant() 15:49:26 try: 15:49:26 > result: TResult | None = func() 15:49:26 ^^^^^^ 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:26 lambda: runtest_hook(item=item, **kwds), 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:26 yield 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:26 return (yield) 15:49:26 ^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:26 item.session._setupstate.setup(item) 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:26 col.setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:26 super().setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:26 self._request._fillfixtures() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:26 fixturedef = self._get_active_fixturedef(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:26 fixturedef.execute(request=subrequest) 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 15:49:26 self = 15:49:26 request = > 15:49:26 15:49:26 def execute(self, request: SubRequest) -> FixtureValue: 15:49:26 """Return the value of this fixture, executing it if not cached.""" 15:49:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:26 # This needs to be done before checking if we have a cached value, since 15:49:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:26 # parametrization, they finalize themselves and fixtures depending on it 15:49:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:26 # See #4871 15:49:26 requested_fixtures_that_should_finalize_us = [] 15:49:26 for argname in self.argnames: 15:49:26 fixturedef = request._get_active_fixturedef(argname) 15:49:26 # Saves requested fixtures in a list so we later can add our finalizer 15:49:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:26 # down first. This is generally handled by SetupState, but still currently 15:49:26 # needed when this fixture is not parametrized but depends on a parametrized 15:49:26 # fixture. 15:49:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:26 15:49:26 # Check for (and return) cached value/exception. 15:49:26 if self.cached_result is not None: 15:49:26 request_cache_key = self.cache_key(request) 15:49:26 cache_key = self.cached_result[1] 15:49:26 try: 15:49:26 # Attempt to make a normal == check: this might fail for objects 15:49:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:26 cache_hit = bool(request_cache_key == cache_key) 15:49:26 except (ValueError, RuntimeError): 15:49:26 # If the comparison raises, use 'is' as fallback. 15:49:26 cache_hit = request_cache_key is cache_key 15:49:26 15:49:26 if cache_hit: 15:49:26 if self.cached_result[2] is not None: 15:49:26 exc, exc_tb = self.cached_result[2] 15:49:26 raise exc.with_traceback(exc_tb) 15:49:26 else: 15:49:26 return self.cached_result[0] 15:49:26 # We have a previous but differently parametrized fixture instance 15:49:26 # so we need to tear it down before creating a new one. 15:49:26 self.finish(request) 15:49:26 assert self.cached_result is None 15:49:26 15:49:26 # Add finalizer to requested fixtures we saved previously. 15:49:26 # We make sure to do this after checking for cached value to avoid 15:49:26 # adding our finalizer multiple times. (#12135) 15:49:26 finalizer = functools.partial(self.finish, request=request) 15:49:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:26 parent_fixture.addfinalizer(finalizer) 15:49:26 15:49:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:26 # which is executed last. 15:49:26 > assert not self._finalizers 15:49:26 ^^^^^^^^^^^^^^^^^^^^ 15:49:26 E AssertionError 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:26 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 15:49:26 15:49:26 cls = 15:49:26 func = . at 0x7f938019fc40> 15:49:26 when = 'setup' 15:49:26 reraise = (, ) 15:49:26 15:49:26 @classmethod 15:49:26 def from_call( 15:49:26 cls, 15:49:26 func: Callable[[], TResult], 15:49:26 when: Literal["collect", "setup", "call", "teardown"], 15:49:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:26 ) -> CallInfo[TResult]: 15:49:26 """Call func, wrapping the result in a CallInfo. 15:49:26 15:49:26 :param func: 15:49:26 The function to call. Called without arguments. 15:49:26 :type func: Callable[[], _pytest.runner.TResult] 15:49:26 :param when: 15:49:26 The phase in which the function is called. 15:49:26 :param reraise: 15:49:26 Exception or exceptions that shall propagate if raised by the 15:49:26 function, instead of being wrapped in the CallInfo. 15:49:26 """ 15:49:26 excinfo = None 15:49:26 instant = timing.Instant() 15:49:26 try: 15:49:26 > result: TResult | None = func() 15:49:26 ^^^^^^ 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:26 lambda: runtest_hook(item=item, **kwds), 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:26 yield 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:26 return (yield) 15:49:26 ^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:26 item.session._setupstate.setup(item) 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:26 col.setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:26 super().setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:26 self._request._fillfixtures() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:26 fixturedef = self._get_active_fixturedef(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:26 fixturedef.execute(request=subrequest) 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 15:49:26 self = 15:49:26 request = > 15:49:26 15:49:26 def execute(self, request: SubRequest) -> FixtureValue: 15:49:26 """Return the value of this fixture, executing it if not cached.""" 15:49:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:26 # This needs to be done before checking if we have a cached value, since 15:49:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:26 # parametrization, they finalize themselves and fixtures depending on it 15:49:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:26 # See #4871 15:49:26 requested_fixtures_that_should_finalize_us = [] 15:49:26 for argname in self.argnames: 15:49:26 fixturedef = request._get_active_fixturedef(argname) 15:49:26 # Saves requested fixtures in a list so we later can add our finalizer 15:49:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:26 # down first. This is generally handled by SetupState, but still currently 15:49:26 # needed when this fixture is not parametrized but depends on a parametrized 15:49:26 # fixture. 15:49:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:26 15:49:26 # Check for (and return) cached value/exception. 15:49:26 if self.cached_result is not None: 15:49:26 request_cache_key = self.cache_key(request) 15:49:26 cache_key = self.cached_result[1] 15:49:26 try: 15:49:26 # Attempt to make a normal == check: this might fail for objects 15:49:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:26 cache_hit = bool(request_cache_key == cache_key) 15:49:26 except (ValueError, RuntimeError): 15:49:26 # If the comparison raises, use 'is' as fallback. 15:49:26 cache_hit = request_cache_key is cache_key 15:49:26 15:49:26 if cache_hit: 15:49:26 if self.cached_result[2] is not None: 15:49:26 exc, exc_tb = self.cached_result[2] 15:49:26 raise exc.with_traceback(exc_tb) 15:49:26 else: 15:49:26 return self.cached_result[0] 15:49:26 # We have a previous but differently parametrized fixture instance 15:49:26 # so we need to tear it down before creating a new one. 15:49:26 self.finish(request) 15:49:26 assert self.cached_result is None 15:49:26 15:49:26 # Add finalizer to requested fixtures we saved previously. 15:49:26 # We make sure to do this after checking for cached value to avoid 15:49:26 # adding our finalizer multiple times. (#12135) 15:49:26 finalizer = functools.partial(self.finish, request=request) 15:49:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:26 parent_fixture.addfinalizer(finalizer) 15:49:26 15:49:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:26 # which is executed last. 15:49:26 > assert not self._finalizers 15:49:26 ^^^^^^^^^^^^^^^^^^^^ 15:49:26 E AssertionError 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:26 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 15:49:26 15:49:26 cls = 15:49:26 func = . at 0x7f937fbf9da0> 15:49:26 when = 'setup' 15:49:26 reraise = (, ) 15:49:26 15:49:26 @classmethod 15:49:26 def from_call( 15:49:26 cls, 15:49:26 func: Callable[[], TResult], 15:49:26 when: Literal["collect", "setup", "call", "teardown"], 15:49:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:26 ) -> CallInfo[TResult]: 15:49:26 """Call func, wrapping the result in a CallInfo. 15:49:26 15:49:26 :param func: 15:49:26 The function to call. Called without arguments. 15:49:26 :type func: Callable[[], _pytest.runner.TResult] 15:49:26 :param when: 15:49:26 The phase in which the function is called. 15:49:26 :param reraise: 15:49:26 Exception or exceptions that shall propagate if raised by the 15:49:26 function, instead of being wrapped in the CallInfo. 15:49:26 """ 15:49:26 excinfo = None 15:49:26 instant = timing.Instant() 15:49:26 try: 15:49:26 > result: TResult | None = func() 15:49:26 ^^^^^^ 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:26 lambda: runtest_hook(item=item, **kwds), 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:26 yield 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:26 return (yield) 15:49:26 ^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:26 item.session._setupstate.setup(item) 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:26 col.setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:26 super().setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:26 self._request._fillfixtures() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:26 fixturedef = self._get_active_fixturedef(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:26 fixturedef.execute(request=subrequest) 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 15:49:26 self = 15:49:26 request = > 15:49:26 15:49:26 def execute(self, request: SubRequest) -> FixtureValue: 15:49:26 """Return the value of this fixture, executing it if not cached.""" 15:49:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:26 # This needs to be done before checking if we have a cached value, since 15:49:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:26 # parametrization, they finalize themselves and fixtures depending on it 15:49:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:26 # See #4871 15:49:26 requested_fixtures_that_should_finalize_us = [] 15:49:26 for argname in self.argnames: 15:49:26 fixturedef = request._get_active_fixturedef(argname) 15:49:26 # Saves requested fixtures in a list so we later can add our finalizer 15:49:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:26 # down first. This is generally handled by SetupState, but still currently 15:49:26 # needed when this fixture is not parametrized but depends on a parametrized 15:49:26 # fixture. 15:49:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:26 15:49:26 # Check for (and return) cached value/exception. 15:49:26 if self.cached_result is not None: 15:49:26 request_cache_key = self.cache_key(request) 15:49:26 cache_key = self.cached_result[1] 15:49:26 try: 15:49:26 # Attempt to make a normal == check: this might fail for objects 15:49:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:26 cache_hit = bool(request_cache_key == cache_key) 15:49:26 except (ValueError, RuntimeError): 15:49:26 # If the comparison raises, use 'is' as fallback. 15:49:26 cache_hit = request_cache_key is cache_key 15:49:26 15:49:26 if cache_hit: 15:49:26 if self.cached_result[2] is not None: 15:49:26 exc, exc_tb = self.cached_result[2] 15:49:26 raise exc.with_traceback(exc_tb) 15:49:26 else: 15:49:26 return self.cached_result[0] 15:49:26 # We have a previous but differently parametrized fixture instance 15:49:26 # so we need to tear it down before creating a new one. 15:49:26 self.finish(request) 15:49:26 assert self.cached_result is None 15:49:26 15:49:26 # Add finalizer to requested fixtures we saved previously. 15:49:26 # We make sure to do this after checking for cached value to avoid 15:49:26 # adding our finalizer multiple times. (#12135) 15:49:26 finalizer = functools.partial(self.finish, request=request) 15:49:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:26 parent_fixture.addfinalizer(finalizer) 15:49:26 15:49:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:26 # which is executed last. 15:49:26 > assert not self._finalizers 15:49:26 ^^^^^^^^^^^^^^^^^^^^ 15:49:26 E AssertionError 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:26 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 15:49:26 15:49:26 cls = 15:49:26 func = . at 0x7f938018bce0> 15:49:26 when = 'setup' 15:49:26 reraise = (, ) 15:49:26 15:49:26 @classmethod 15:49:26 def from_call( 15:49:26 cls, 15:49:26 func: Callable[[], TResult], 15:49:26 when: Literal["collect", "setup", "call", "teardown"], 15:49:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:26 ) -> CallInfo[TResult]: 15:49:26 """Call func, wrapping the result in a CallInfo. 15:49:26 15:49:26 :param func: 15:49:26 The function to call. Called without arguments. 15:49:26 :type func: Callable[[], _pytest.runner.TResult] 15:49:26 :param when: 15:49:26 The phase in which the function is called. 15:49:26 :param reraise: 15:49:26 Exception or exceptions that shall propagate if raised by the 15:49:26 function, instead of being wrapped in the CallInfo. 15:49:26 """ 15:49:26 excinfo = None 15:49:26 instant = timing.Instant() 15:49:26 try: 15:49:26 > result: TResult | None = func() 15:49:26 ^^^^^^ 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:26 lambda: runtest_hook(item=item, **kwds), 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:26 yield 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:26 return (yield) 15:49:26 ^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:26 item.session._setupstate.setup(item) 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:26 col.setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:26 super().setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:26 self._request._fillfixtures() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:26 fixturedef = self._get_active_fixturedef(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:26 fixturedef.execute(request=subrequest) 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 15:49:26 self = 15:49:26 request = > 15:49:26 15:49:26 def execute(self, request: SubRequest) -> FixtureValue: 15:49:26 """Return the value of this fixture, executing it if not cached.""" 15:49:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:26 # This needs to be done before checking if we have a cached value, since 15:49:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:26 # parametrization, they finalize themselves and fixtures depending on it 15:49:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:26 # See #4871 15:49:26 requested_fixtures_that_should_finalize_us = [] 15:49:26 for argname in self.argnames: 15:49:26 fixturedef = request._get_active_fixturedef(argname) 15:49:26 # Saves requested fixtures in a list so we later can add our finalizer 15:49:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:26 # down first. This is generally handled by SetupState, but still currently 15:49:26 # needed when this fixture is not parametrized but depends on a parametrized 15:49:26 # fixture. 15:49:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:26 15:49:26 # Check for (and return) cached value/exception. 15:49:26 if self.cached_result is not None: 15:49:26 request_cache_key = self.cache_key(request) 15:49:26 cache_key = self.cached_result[1] 15:49:26 try: 15:49:26 # Attempt to make a normal == check: this might fail for objects 15:49:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:26 cache_hit = bool(request_cache_key == cache_key) 15:49:26 except (ValueError, RuntimeError): 15:49:26 # If the comparison raises, use 'is' as fallback. 15:49:26 cache_hit = request_cache_key is cache_key 15:49:26 15:49:26 if cache_hit: 15:49:26 if self.cached_result[2] is not None: 15:49:26 exc, exc_tb = self.cached_result[2] 15:49:26 raise exc.with_traceback(exc_tb) 15:49:26 else: 15:49:26 return self.cached_result[0] 15:49:26 # We have a previous but differently parametrized fixture instance 15:49:26 # so we need to tear it down before creating a new one. 15:49:26 self.finish(request) 15:49:26 assert self.cached_result is None 15:49:26 15:49:26 # Add finalizer to requested fixtures we saved previously. 15:49:26 # We make sure to do this after checking for cached value to avoid 15:49:26 # adding our finalizer multiple times. (#12135) 15:49:26 finalizer = functools.partial(self.finish, request=request) 15:49:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:26 parent_fixture.addfinalizer(finalizer) 15:49:26 15:49:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:26 # which is executed last. 15:49:26 > assert not self._finalizers 15:49:26 ^^^^^^^^^^^^^^^^^^^^ 15:49:26 E AssertionError 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:26 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 15:49:26 15:49:26 cls = 15:49:26 func = . at 0x7f938018ba60> 15:49:26 when = 'setup' 15:49:26 reraise = (, ) 15:49:26 15:49:26 @classmethod 15:49:26 def from_call( 15:49:26 cls, 15:49:26 func: Callable[[], TResult], 15:49:26 when: Literal["collect", "setup", "call", "teardown"], 15:49:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:26 ) -> CallInfo[TResult]: 15:49:26 """Call func, wrapping the result in a CallInfo. 15:49:26 15:49:26 :param func: 15:49:26 The function to call. Called without arguments. 15:49:26 :type func: Callable[[], _pytest.runner.TResult] 15:49:26 :param when: 15:49:26 The phase in which the function is called. 15:49:26 :param reraise: 15:49:26 Exception or exceptions that shall propagate if raised by the 15:49:26 function, instead of being wrapped in the CallInfo. 15:49:26 """ 15:49:26 excinfo = None 15:49:26 instant = timing.Instant() 15:49:26 try: 15:49:26 > result: TResult | None = func() 15:49:26 ^^^^^^ 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:26 lambda: runtest_hook(item=item, **kwds), 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:26 yield 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:26 return (yield) 15:49:26 ^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:26 item.session._setupstate.setup(item) 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:26 col.setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:26 super().setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:26 self._request._fillfixtures() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:26 fixturedef = self._get_active_fixturedef(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:26 fixturedef.execute(request=subrequest) 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 15:49:26 self = 15:49:26 request = > 15:49:26 15:49:26 def execute(self, request: SubRequest) -> FixtureValue: 15:49:26 """Return the value of this fixture, executing it if not cached.""" 15:49:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:26 # This needs to be done before checking if we have a cached value, since 15:49:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:26 # parametrization, they finalize themselves and fixtures depending on it 15:49:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:26 # See #4871 15:49:26 requested_fixtures_that_should_finalize_us = [] 15:49:26 for argname in self.argnames: 15:49:26 fixturedef = request._get_active_fixturedef(argname) 15:49:26 # Saves requested fixtures in a list so we later can add our finalizer 15:49:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:26 # down first. This is generally handled by SetupState, but still currently 15:49:26 # needed when this fixture is not parametrized but depends on a parametrized 15:49:26 # fixture. 15:49:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:26 15:49:26 # Check for (and return) cached value/exception. 15:49:26 if self.cached_result is not None: 15:49:26 request_cache_key = self.cache_key(request) 15:49:26 cache_key = self.cached_result[1] 15:49:26 try: 15:49:26 # Attempt to make a normal == check: this might fail for objects 15:49:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:26 cache_hit = bool(request_cache_key == cache_key) 15:49:26 except (ValueError, RuntimeError): 15:49:26 # If the comparison raises, use 'is' as fallback. 15:49:26 cache_hit = request_cache_key is cache_key 15:49:26 15:49:26 if cache_hit: 15:49:26 if self.cached_result[2] is not None: 15:49:26 exc, exc_tb = self.cached_result[2] 15:49:26 raise exc.with_traceback(exc_tb) 15:49:26 else: 15:49:26 return self.cached_result[0] 15:49:26 # We have a previous but differently parametrized fixture instance 15:49:26 # so we need to tear it down before creating a new one. 15:49:26 self.finish(request) 15:49:26 assert self.cached_result is None 15:49:26 15:49:26 # Add finalizer to requested fixtures we saved previously. 15:49:26 # We make sure to do this after checking for cached value to avoid 15:49:26 # adding our finalizer multiple times. (#12135) 15:49:26 finalizer = functools.partial(self.finish, request=request) 15:49:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:26 parent_fixture.addfinalizer(finalizer) 15:49:26 15:49:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:26 # which is executed last. 15:49:26 > assert not self._finalizers 15:49:26 ^^^^^^^^^^^^^^^^^^^^ 15:49:26 E AssertionError 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:26 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 15:49:26 15:49:26 cls = 15:49:26 func = . at 0x7f938018bce0> 15:49:26 when = 'setup' 15:49:26 reraise = (, ) 15:49:26 15:49:26 @classmethod 15:49:26 def from_call( 15:49:26 cls, 15:49:26 func: Callable[[], TResult], 15:49:26 when: Literal["collect", "setup", "call", "teardown"], 15:49:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:26 ) -> CallInfo[TResult]: 15:49:26 """Call func, wrapping the result in a CallInfo. 15:49:26 15:49:26 :param func: 15:49:26 The function to call. Called without arguments. 15:49:26 :type func: Callable[[], _pytest.runner.TResult] 15:49:26 :param when: 15:49:26 The phase in which the function is called. 15:49:26 :param reraise: 15:49:26 Exception or exceptions that shall propagate if raised by the 15:49:26 function, instead of being wrapped in the CallInfo. 15:49:26 """ 15:49:26 excinfo = None 15:49:26 instant = timing.Instant() 15:49:26 try: 15:49:26 > result: TResult | None = func() 15:49:26 ^^^^^^ 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:26 lambda: runtest_hook(item=item, **kwds), 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:26 yield 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:26 return (yield) 15:49:26 ^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:26 item.session._setupstate.setup(item) 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:26 col.setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:26 super().setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:26 self._request._fillfixtures() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:26 fixturedef = self._get_active_fixturedef(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:26 fixturedef.execute(request=subrequest) 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 15:49:26 self = 15:49:26 request = > 15:49:26 15:49:26 def execute(self, request: SubRequest) -> FixtureValue: 15:49:26 """Return the value of this fixture, executing it if not cached.""" 15:49:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:26 # This needs to be done before checking if we have a cached value, since 15:49:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:26 # parametrization, they finalize themselves and fixtures depending on it 15:49:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:26 # See #4871 15:49:26 requested_fixtures_that_should_finalize_us = [] 15:49:26 for argname in self.argnames: 15:49:26 fixturedef = request._get_active_fixturedef(argname) 15:49:26 # Saves requested fixtures in a list so we later can add our finalizer 15:49:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:26 # down first. This is generally handled by SetupState, but still currently 15:49:26 # needed when this fixture is not parametrized but depends on a parametrized 15:49:26 # fixture. 15:49:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:26 15:49:26 # Check for (and return) cached value/exception. 15:49:26 if self.cached_result is not None: 15:49:26 request_cache_key = self.cache_key(request) 15:49:26 cache_key = self.cached_result[1] 15:49:26 try: 15:49:26 # Attempt to make a normal == check: this might fail for objects 15:49:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:26 cache_hit = bool(request_cache_key == cache_key) 15:49:26 except (ValueError, RuntimeError): 15:49:26 # If the comparison raises, use 'is' as fallback. 15:49:26 cache_hit = request_cache_key is cache_key 15:49:26 15:49:26 if cache_hit: 15:49:26 if self.cached_result[2] is not None: 15:49:26 exc, exc_tb = self.cached_result[2] 15:49:26 raise exc.with_traceback(exc_tb) 15:49:26 else: 15:49:26 return self.cached_result[0] 15:49:26 # We have a previous but differently parametrized fixture instance 15:49:26 # so we need to tear it down before creating a new one. 15:49:26 self.finish(request) 15:49:26 assert self.cached_result is None 15:49:26 15:49:26 # Add finalizer to requested fixtures we saved previously. 15:49:26 # We make sure to do this after checking for cached value to avoid 15:49:26 # adding our finalizer multiple times. (#12135) 15:49:26 finalizer = functools.partial(self.finish, request=request) 15:49:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:26 parent_fixture.addfinalizer(finalizer) 15:49:26 15:49:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:26 # which is executed last. 15:49:26 > assert not self._finalizers 15:49:26 ^^^^^^^^^^^^^^^^^^^^ 15:49:26 E AssertionError 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:26 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 15:49:26 15:49:26 cls = 15:49:26 func = . at 0x7f937fbf9940> 15:49:26 when = 'setup' 15:49:26 reraise = (, ) 15:49:26 15:49:26 @classmethod 15:49:26 def from_call( 15:49:26 cls, 15:49:26 func: Callable[[], TResult], 15:49:26 when: Literal["collect", "setup", "call", "teardown"], 15:49:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:26 ) -> CallInfo[TResult]: 15:49:26 """Call func, wrapping the result in a CallInfo. 15:49:26 15:49:26 :param func: 15:49:26 The function to call. Called without arguments. 15:49:26 :type func: Callable[[], _pytest.runner.TResult] 15:49:26 :param when: 15:49:26 The phase in which the function is called. 15:49:26 :param reraise: 15:49:26 Exception or exceptions that shall propagate if raised by the 15:49:26 function, instead of being wrapped in the CallInfo. 15:49:26 """ 15:49:26 excinfo = None 15:49:26 instant = timing.Instant() 15:49:26 try: 15:49:26 > result: TResult | None = func() 15:49:26 ^^^^^^ 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:26 lambda: runtest_hook(item=item, **kwds), 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:26 yield 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:26 return (yield) 15:49:26 ^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:26 item.session._setupstate.setup(item) 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:26 col.setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:26 super().setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:26 self._request._fillfixtures() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:26 fixturedef = self._get_active_fixturedef(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:26 fixturedef.execute(request=subrequest) 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 15:49:26 self = 15:49:26 request = > 15:49:26 15:49:26 def execute(self, request: SubRequest) -> FixtureValue: 15:49:26 """Return the value of this fixture, executing it if not cached.""" 15:49:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:26 # This needs to be done before checking if we have a cached value, since 15:49:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:26 # parametrization, they finalize themselves and fixtures depending on it 15:49:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:26 # See #4871 15:49:26 requested_fixtures_that_should_finalize_us = [] 15:49:26 for argname in self.argnames: 15:49:26 fixturedef = request._get_active_fixturedef(argname) 15:49:26 # Saves requested fixtures in a list so we later can add our finalizer 15:49:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:26 # down first. This is generally handled by SetupState, but still currently 15:49:26 # needed when this fixture is not parametrized but depends on a parametrized 15:49:26 # fixture. 15:49:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:26 15:49:26 # Check for (and return) cached value/exception. 15:49:26 if self.cached_result is not None: 15:49:26 request_cache_key = self.cache_key(request) 15:49:26 cache_key = self.cached_result[1] 15:49:26 try: 15:49:26 # Attempt to make a normal == check: this might fail for objects 15:49:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:26 cache_hit = bool(request_cache_key == cache_key) 15:49:26 except (ValueError, RuntimeError): 15:49:26 # If the comparison raises, use 'is' as fallback. 15:49:26 cache_hit = request_cache_key is cache_key 15:49:26 15:49:26 if cache_hit: 15:49:26 if self.cached_result[2] is not None: 15:49:26 exc, exc_tb = self.cached_result[2] 15:49:26 raise exc.with_traceback(exc_tb) 15:49:26 else: 15:49:26 return self.cached_result[0] 15:49:26 # We have a previous but differently parametrized fixture instance 15:49:26 # so we need to tear it down before creating a new one. 15:49:26 self.finish(request) 15:49:26 assert self.cached_result is None 15:49:26 15:49:26 # Add finalizer to requested fixtures we saved previously. 15:49:26 # We make sure to do this after checking for cached value to avoid 15:49:26 # adding our finalizer multiple times. (#12135) 15:49:26 finalizer = functools.partial(self.finish, request=request) 15:49:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:26 parent_fixture.addfinalizer(finalizer) 15:49:26 15:49:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:26 # which is executed last. 15:49:26 > assert not self._finalizers 15:49:26 ^^^^^^^^^^^^^^^^^^^^ 15:49:26 E AssertionError 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:26 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 15:49:26 15:49:26 cls = 15:49:26 func = . at 0x7f938019f1a0> 15:49:26 when = 'setup' 15:49:26 reraise = (, ) 15:49:26 15:49:26 @classmethod 15:49:26 def from_call( 15:49:26 cls, 15:49:26 func: Callable[[], TResult], 15:49:26 when: Literal["collect", "setup", "call", "teardown"], 15:49:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:26 ) -> CallInfo[TResult]: 15:49:26 """Call func, wrapping the result in a CallInfo. 15:49:26 15:49:26 :param func: 15:49:26 The function to call. Called without arguments. 15:49:26 :type func: Callable[[], _pytest.runner.TResult] 15:49:26 :param when: 15:49:26 The phase in which the function is called. 15:49:26 :param reraise: 15:49:26 Exception or exceptions that shall propagate if raised by the 15:49:26 function, instead of being wrapped in the CallInfo. 15:49:26 """ 15:49:26 excinfo = None 15:49:26 instant = timing.Instant() 15:49:26 try: 15:49:26 > result: TResult | None = func() 15:49:26 ^^^^^^ 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:26 lambda: runtest_hook(item=item, **kwds), 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:26 yield 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:26 return (yield) 15:49:26 ^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:26 item.session._setupstate.setup(item) 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:26 col.setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:26 super().setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:26 self._request._fillfixtures() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:26 fixturedef = self._get_active_fixturedef(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:26 fixturedef.execute(request=subrequest) 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 15:49:26 self = 15:49:26 request = > 15:49:26 15:49:26 def execute(self, request: SubRequest) -> FixtureValue: 15:49:26 """Return the value of this fixture, executing it if not cached.""" 15:49:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:26 # This needs to be done before checking if we have a cached value, since 15:49:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:26 # parametrization, they finalize themselves and fixtures depending on it 15:49:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:26 # See #4871 15:49:26 requested_fixtures_that_should_finalize_us = [] 15:49:26 for argname in self.argnames: 15:49:26 fixturedef = request._get_active_fixturedef(argname) 15:49:26 # Saves requested fixtures in a list so we later can add our finalizer 15:49:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:26 # down first. This is generally handled by SetupState, but still currently 15:49:26 # needed when this fixture is not parametrized but depends on a parametrized 15:49:26 # fixture. 15:49:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:26 15:49:26 # Check for (and return) cached value/exception. 15:49:26 if self.cached_result is not None: 15:49:26 request_cache_key = self.cache_key(request) 15:49:26 cache_key = self.cached_result[1] 15:49:26 try: 15:49:26 # Attempt to make a normal == check: this might fail for objects 15:49:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:26 cache_hit = bool(request_cache_key == cache_key) 15:49:26 except (ValueError, RuntimeError): 15:49:26 # If the comparison raises, use 'is' as fallback. 15:49:26 cache_hit = request_cache_key is cache_key 15:49:26 15:49:26 if cache_hit: 15:49:26 if self.cached_result[2] is not None: 15:49:26 exc, exc_tb = self.cached_result[2] 15:49:26 raise exc.with_traceback(exc_tb) 15:49:26 else: 15:49:26 return self.cached_result[0] 15:49:26 # We have a previous but differently parametrized fixture instance 15:49:26 # so we need to tear it down before creating a new one. 15:49:26 self.finish(request) 15:49:26 assert self.cached_result is None 15:49:26 15:49:26 # Add finalizer to requested fixtures we saved previously. 15:49:26 # We make sure to do this after checking for cached value to avoid 15:49:26 # adding our finalizer multiple times. (#12135) 15:49:26 finalizer = functools.partial(self.finish, request=request) 15:49:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:26 parent_fixture.addfinalizer(finalizer) 15:49:26 15:49:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:26 # which is executed last. 15:49:26 > assert not self._finalizers 15:49:26 ^^^^^^^^^^^^^^^^^^^^ 15:49:26 E AssertionError 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:26 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 15:49:26 15:49:26 cls = 15:49:26 func = . at 0x7f938018ba60> 15:49:26 when = 'setup' 15:49:26 reraise = (, ) 15:49:26 15:49:26 @classmethod 15:49:26 def from_call( 15:49:26 cls, 15:49:26 func: Callable[[], TResult], 15:49:26 when: Literal["collect", "setup", "call", "teardown"], 15:49:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:26 ) -> CallInfo[TResult]: 15:49:26 """Call func, wrapping the result in a CallInfo. 15:49:26 15:49:26 :param func: 15:49:26 The function to call. Called without arguments. 15:49:26 :type func: Callable[[], _pytest.runner.TResult] 15:49:26 :param when: 15:49:26 The phase in which the function is called. 15:49:26 :param reraise: 15:49:26 Exception or exceptions that shall propagate if raised by the 15:49:26 function, instead of being wrapped in the CallInfo. 15:49:26 """ 15:49:26 excinfo = None 15:49:26 instant = timing.Instant() 15:49:26 try: 15:49:26 > result: TResult | None = func() 15:49:26 ^^^^^^ 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:26 lambda: runtest_hook(item=item, **kwds), 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:26 yield 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:26 return (yield) 15:49:26 ^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:26 item.session._setupstate.setup(item) 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:26 col.setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:26 super().setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:26 self._request._fillfixtures() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:26 fixturedef = self._get_active_fixturedef(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:26 fixturedef.execute(request=subrequest) 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 15:49:26 self = 15:49:26 request = > 15:49:26 15:49:26 def execute(self, request: SubRequest) -> FixtureValue: 15:49:26 """Return the value of this fixture, executing it if not cached.""" 15:49:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:26 # This needs to be done before checking if we have a cached value, since 15:49:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:26 # parametrization, they finalize themselves and fixtures depending on it 15:49:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:26 # See #4871 15:49:26 requested_fixtures_that_should_finalize_us = [] 15:49:26 for argname in self.argnames: 15:49:26 fixturedef = request._get_active_fixturedef(argname) 15:49:26 # Saves requested fixtures in a list so we later can add our finalizer 15:49:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:26 # down first. This is generally handled by SetupState, but still currently 15:49:26 # needed when this fixture is not parametrized but depends on a parametrized 15:49:26 # fixture. 15:49:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:26 15:49:26 # Check for (and return) cached value/exception. 15:49:26 if self.cached_result is not None: 15:49:26 request_cache_key = self.cache_key(request) 15:49:26 cache_key = self.cached_result[1] 15:49:26 try: 15:49:26 # Attempt to make a normal == check: this might fail for objects 15:49:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:26 cache_hit = bool(request_cache_key == cache_key) 15:49:26 except (ValueError, RuntimeError): 15:49:26 # If the comparison raises, use 'is' as fallback. 15:49:26 cache_hit = request_cache_key is cache_key 15:49:26 15:49:26 if cache_hit: 15:49:26 if self.cached_result[2] is not None: 15:49:26 exc, exc_tb = self.cached_result[2] 15:49:26 raise exc.with_traceback(exc_tb) 15:49:26 else: 15:49:26 return self.cached_result[0] 15:49:26 # We have a previous but differently parametrized fixture instance 15:49:26 # so we need to tear it down before creating a new one. 15:49:26 self.finish(request) 15:49:26 assert self.cached_result is None 15:49:26 15:49:26 # Add finalizer to requested fixtures we saved previously. 15:49:26 # We make sure to do this after checking for cached value to avoid 15:49:26 # adding our finalizer multiple times. (#12135) 15:49:26 finalizer = functools.partial(self.finish, request=request) 15:49:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:26 parent_fixture.addfinalizer(finalizer) 15:49:26 15:49:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:26 # which is executed last. 15:49:26 > assert not self._finalizers 15:49:26 ^^^^^^^^^^^^^^^^^^^^ 15:49:26 E AssertionError 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:26 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 15:49:26 15:49:26 cls = 15:49:26 func = . at 0x7f937fbfa980> 15:49:26 when = 'setup' 15:49:26 reraise = (, ) 15:49:26 15:49:26 @classmethod 15:49:26 def from_call( 15:49:26 cls, 15:49:26 func: Callable[[], TResult], 15:49:26 when: Literal["collect", "setup", "call", "teardown"], 15:49:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:26 ) -> CallInfo[TResult]: 15:49:26 """Call func, wrapping the result in a CallInfo. 15:49:26 15:49:26 :param func: 15:49:26 The function to call. Called without arguments. 15:49:26 :type func: Callable[[], _pytest.runner.TResult] 15:49:26 :param when: 15:49:26 The phase in which the function is called. 15:49:26 :param reraise: 15:49:26 Exception or exceptions that shall propagate if raised by the 15:49:26 function, instead of being wrapped in the CallInfo. 15:49:26 """ 15:49:26 excinfo = None 15:49:26 instant = timing.Instant() 15:49:26 try: 15:49:26 > result: TResult | None = func() 15:49:26 ^^^^^^ 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:26 lambda: runtest_hook(item=item, **kwds), 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:26 yield 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:26 return (yield) 15:49:26 ^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:26 item.session._setupstate.setup(item) 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:26 col.setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:26 super().setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:26 self._request._fillfixtures() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:26 fixturedef = self._get_active_fixturedef(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:26 fixturedef.execute(request=subrequest) 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 15:49:26 self = 15:49:26 request = > 15:49:26 15:49:26 def execute(self, request: SubRequest) -> FixtureValue: 15:49:26 """Return the value of this fixture, executing it if not cached.""" 15:49:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:26 # This needs to be done before checking if we have a cached value, since 15:49:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:26 # parametrization, they finalize themselves and fixtures depending on it 15:49:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:26 # See #4871 15:49:26 requested_fixtures_that_should_finalize_us = [] 15:49:26 for argname in self.argnames: 15:49:26 fixturedef = request._get_active_fixturedef(argname) 15:49:26 # Saves requested fixtures in a list so we later can add our finalizer 15:49:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:26 # down first. This is generally handled by SetupState, but still currently 15:49:26 # needed when this fixture is not parametrized but depends on a parametrized 15:49:26 # fixture. 15:49:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:26 15:49:26 # Check for (and return) cached value/exception. 15:49:26 if self.cached_result is not None: 15:49:26 request_cache_key = self.cache_key(request) 15:49:26 cache_key = self.cached_result[1] 15:49:26 try: 15:49:26 # Attempt to make a normal == check: this might fail for objects 15:49:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:26 cache_hit = bool(request_cache_key == cache_key) 15:49:26 except (ValueError, RuntimeError): 15:49:26 # If the comparison raises, use 'is' as fallback. 15:49:26 cache_hit = request_cache_key is cache_key 15:49:26 15:49:26 if cache_hit: 15:49:26 if self.cached_result[2] is not None: 15:49:26 exc, exc_tb = self.cached_result[2] 15:49:26 raise exc.with_traceback(exc_tb) 15:49:26 else: 15:49:26 return self.cached_result[0] 15:49:26 # We have a previous but differently parametrized fixture instance 15:49:26 # so we need to tear it down before creating a new one. 15:49:26 self.finish(request) 15:49:26 assert self.cached_result is None 15:49:26 15:49:26 # Add finalizer to requested fixtures we saved previously. 15:49:26 # We make sure to do this after checking for cached value to avoid 15:49:26 # adding our finalizer multiple times. (#12135) 15:49:26 finalizer = functools.partial(self.finish, request=request) 15:49:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:26 parent_fixture.addfinalizer(finalizer) 15:49:26 15:49:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:26 # which is executed last. 15:49:26 > assert not self._finalizers 15:49:26 ^^^^^^^^^^^^^^^^^^^^ 15:49:26 E AssertionError 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:26 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 15:49:26 15:49:26 cls = 15:49:26 func = . at 0x7f938018ba60> 15:49:26 when = 'setup' 15:49:26 reraise = (, ) 15:49:26 15:49:26 @classmethod 15:49:26 def from_call( 15:49:26 cls, 15:49:26 func: Callable[[], TResult], 15:49:26 when: Literal["collect", "setup", "call", "teardown"], 15:49:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:26 ) -> CallInfo[TResult]: 15:49:26 """Call func, wrapping the result in a CallInfo. 15:49:26 15:49:26 :param func: 15:49:26 The function to call. Called without arguments. 15:49:26 :type func: Callable[[], _pytest.runner.TResult] 15:49:26 :param when: 15:49:26 The phase in which the function is called. 15:49:26 :param reraise: 15:49:26 Exception or exceptions that shall propagate if raised by the 15:49:26 function, instead of being wrapped in the CallInfo. 15:49:26 """ 15:49:26 excinfo = None 15:49:26 instant = timing.Instant() 15:49:26 try: 15:49:26 > result: TResult | None = func() 15:49:26 ^^^^^^ 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:26 lambda: runtest_hook(item=item, **kwds), 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:26 yield 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:26 return (yield) 15:49:26 ^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:26 item.session._setupstate.setup(item) 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:26 col.setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:26 super().setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:26 self._request._fillfixtures() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:26 fixturedef = self._get_active_fixturedef(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:26 fixturedef.execute(request=subrequest) 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 15:49:26 self = 15:49:26 request = > 15:49:26 15:49:26 def execute(self, request: SubRequest) -> FixtureValue: 15:49:26 """Return the value of this fixture, executing it if not cached.""" 15:49:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:26 # This needs to be done before checking if we have a cached value, since 15:49:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:26 # parametrization, they finalize themselves and fixtures depending on it 15:49:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:26 # See #4871 15:49:26 requested_fixtures_that_should_finalize_us = [] 15:49:26 for argname in self.argnames: 15:49:26 fixturedef = request._get_active_fixturedef(argname) 15:49:26 # Saves requested fixtures in a list so we later can add our finalizer 15:49:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:26 # down first. This is generally handled by SetupState, but still currently 15:49:26 # needed when this fixture is not parametrized but depends on a parametrized 15:49:26 # fixture. 15:49:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:26 15:49:26 # Check for (and return) cached value/exception. 15:49:26 if self.cached_result is not None: 15:49:26 request_cache_key = self.cache_key(request) 15:49:26 cache_key = self.cached_result[1] 15:49:26 try: 15:49:26 # Attempt to make a normal == check: this might fail for objects 15:49:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:26 cache_hit = bool(request_cache_key == cache_key) 15:49:26 except (ValueError, RuntimeError): 15:49:26 # If the comparison raises, use 'is' as fallback. 15:49:26 cache_hit = request_cache_key is cache_key 15:49:26 15:49:26 if cache_hit: 15:49:26 if self.cached_result[2] is not None: 15:49:26 exc, exc_tb = self.cached_result[2] 15:49:26 raise exc.with_traceback(exc_tb) 15:49:26 else: 15:49:26 return self.cached_result[0] 15:49:26 # We have a previous but differently parametrized fixture instance 15:49:26 # so we need to tear it down before creating a new one. 15:49:26 self.finish(request) 15:49:26 assert self.cached_result is None 15:49:26 15:49:26 # Add finalizer to requested fixtures we saved previously. 15:49:26 # We make sure to do this after checking for cached value to avoid 15:49:26 # adding our finalizer multiple times. (#12135) 15:49:26 finalizer = functools.partial(self.finish, request=request) 15:49:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:26 parent_fixture.addfinalizer(finalizer) 15:49:26 15:49:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:26 # which is executed last. 15:49:26 > assert not self._finalizers 15:49:26 ^^^^^^^^^^^^^^^^^^^^ 15:49:26 E AssertionError 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:26 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 15:49:26 15:49:26 cls = 15:49:26 func = . at 0x7f938019c400> 15:49:26 when = 'setup' 15:49:26 reraise = (, ) 15:49:26 15:49:26 @classmethod 15:49:26 def from_call( 15:49:26 cls, 15:49:26 func: Callable[[], TResult], 15:49:26 when: Literal["collect", "setup", "call", "teardown"], 15:49:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:26 ) -> CallInfo[TResult]: 15:49:26 """Call func, wrapping the result in a CallInfo. 15:49:26 15:49:26 :param func: 15:49:26 The function to call. Called without arguments. 15:49:26 :type func: Callable[[], _pytest.runner.TResult] 15:49:26 :param when: 15:49:26 The phase in which the function is called. 15:49:26 :param reraise: 15:49:26 Exception or exceptions that shall propagate if raised by the 15:49:26 function, instead of being wrapped in the CallInfo. 15:49:26 """ 15:49:26 excinfo = None 15:49:26 instant = timing.Instant() 15:49:26 try: 15:49:26 > result: TResult | None = func() 15:49:26 ^^^^^^ 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:26 lambda: runtest_hook(item=item, **kwds), 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:26 yield 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:26 return (yield) 15:49:26 ^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:26 item.session._setupstate.setup(item) 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:26 col.setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:26 super().setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:26 self._request._fillfixtures() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:26 fixturedef = self._get_active_fixturedef(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:26 fixturedef.execute(request=subrequest) 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 15:49:26 self = 15:49:26 request = > 15:49:26 15:49:26 def execute(self, request: SubRequest) -> FixtureValue: 15:49:26 """Return the value of this fixture, executing it if not cached.""" 15:49:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:26 # This needs to be done before checking if we have a cached value, since 15:49:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:26 # parametrization, they finalize themselves and fixtures depending on it 15:49:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:26 # See #4871 15:49:26 requested_fixtures_that_should_finalize_us = [] 15:49:26 for argname in self.argnames: 15:49:26 fixturedef = request._get_active_fixturedef(argname) 15:49:26 # Saves requested fixtures in a list so we later can add our finalizer 15:49:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:26 # down first. This is generally handled by SetupState, but still currently 15:49:26 # needed when this fixture is not parametrized but depends on a parametrized 15:49:26 # fixture. 15:49:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:26 15:49:26 # Check for (and return) cached value/exception. 15:49:26 if self.cached_result is not None: 15:49:26 request_cache_key = self.cache_key(request) 15:49:26 cache_key = self.cached_result[1] 15:49:26 try: 15:49:26 # Attempt to make a normal == check: this might fail for objects 15:49:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:26 cache_hit = bool(request_cache_key == cache_key) 15:49:26 except (ValueError, RuntimeError): 15:49:26 # If the comparison raises, use 'is' as fallback. 15:49:26 cache_hit = request_cache_key is cache_key 15:49:26 15:49:26 if cache_hit: 15:49:26 if self.cached_result[2] is not None: 15:49:26 exc, exc_tb = self.cached_result[2] 15:49:26 raise exc.with_traceback(exc_tb) 15:49:26 else: 15:49:26 return self.cached_result[0] 15:49:26 # We have a previous but differently parametrized fixture instance 15:49:26 # so we need to tear it down before creating a new one. 15:49:26 self.finish(request) 15:49:26 assert self.cached_result is None 15:49:26 15:49:26 # Add finalizer to requested fixtures we saved previously. 15:49:26 # We make sure to do this after checking for cached value to avoid 15:49:26 # adding our finalizer multiple times. (#12135) 15:49:26 finalizer = functools.partial(self.finish, request=request) 15:49:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:26 parent_fixture.addfinalizer(finalizer) 15:49:26 15:49:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:26 # which is executed last. 15:49:26 > assert not self._finalizers 15:49:26 ^^^^^^^^^^^^^^^^^^^^ 15:49:26 E AssertionError 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:26 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 15:49:26 15:49:26 cls = 15:49:26 func = . at 0x7f937fbfa2a0> 15:49:26 when = 'setup' 15:49:26 reraise = (, ) 15:49:26 15:49:26 @classmethod 15:49:26 def from_call( 15:49:26 cls, 15:49:26 func: Callable[[], TResult], 15:49:26 when: Literal["collect", "setup", "call", "teardown"], 15:49:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:26 ) -> CallInfo[TResult]: 15:49:26 """Call func, wrapping the result in a CallInfo. 15:49:26 15:49:26 :param func: 15:49:26 The function to call. Called without arguments. 15:49:26 :type func: Callable[[], _pytest.runner.TResult] 15:49:26 :param when: 15:49:26 The phase in which the function is called. 15:49:26 :param reraise: 15:49:26 Exception or exceptions that shall propagate if raised by the 15:49:26 function, instead of being wrapped in the CallInfo. 15:49:26 """ 15:49:26 excinfo = None 15:49:26 instant = timing.Instant() 15:49:26 try: 15:49:26 > result: TResult | None = func() 15:49:26 ^^^^^^ 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:26 lambda: runtest_hook(item=item, **kwds), 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:26 yield 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:26 return (yield) 15:49:26 ^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:26 item.session._setupstate.setup(item) 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:26 col.setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:26 super().setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:26 self._request._fillfixtures() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:26 fixturedef = self._get_active_fixturedef(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:26 fixturedef.execute(request=subrequest) 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 15:49:26 self = 15:49:26 request = > 15:49:26 15:49:26 def execute(self, request: SubRequest) -> FixtureValue: 15:49:26 """Return the value of this fixture, executing it if not cached.""" 15:49:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:26 # This needs to be done before checking if we have a cached value, since 15:49:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:26 # parametrization, they finalize themselves and fixtures depending on it 15:49:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:26 # See #4871 15:49:26 requested_fixtures_that_should_finalize_us = [] 15:49:26 for argname in self.argnames: 15:49:26 fixturedef = request._get_active_fixturedef(argname) 15:49:26 # Saves requested fixtures in a list so we later can add our finalizer 15:49:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:26 # down first. This is generally handled by SetupState, but still currently 15:49:26 # needed when this fixture is not parametrized but depends on a parametrized 15:49:26 # fixture. 15:49:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:26 15:49:26 # Check for (and return) cached value/exception. 15:49:26 if self.cached_result is not None: 15:49:26 request_cache_key = self.cache_key(request) 15:49:26 cache_key = self.cached_result[1] 15:49:26 try: 15:49:26 # Attempt to make a normal == check: this might fail for objects 15:49:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:26 cache_hit = bool(request_cache_key == cache_key) 15:49:26 except (ValueError, RuntimeError): 15:49:26 # If the comparison raises, use 'is' as fallback. 15:49:26 cache_hit = request_cache_key is cache_key 15:49:26 15:49:26 if cache_hit: 15:49:26 if self.cached_result[2] is not None: 15:49:26 exc, exc_tb = self.cached_result[2] 15:49:26 raise exc.with_traceback(exc_tb) 15:49:26 else: 15:49:26 return self.cached_result[0] 15:49:26 # We have a previous but differently parametrized fixture instance 15:49:26 # so we need to tear it down before creating a new one. 15:49:26 self.finish(request) 15:49:26 assert self.cached_result is None 15:49:26 15:49:26 # Add finalizer to requested fixtures we saved previously. 15:49:26 # We make sure to do this after checking for cached value to avoid 15:49:26 # adding our finalizer multiple times. (#12135) 15:49:26 finalizer = functools.partial(self.finish, request=request) 15:49:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:26 parent_fixture.addfinalizer(finalizer) 15:49:26 15:49:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:26 # which is executed last. 15:49:26 > assert not self._finalizers 15:49:26 ^^^^^^^^^^^^^^^^^^^^ 15:49:26 E AssertionError 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:26 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 15:49:26 15:49:26 cls = 15:49:26 func = . at 0x7f938019c400> 15:49:26 when = 'setup' 15:49:26 reraise = (, ) 15:49:26 15:49:26 @classmethod 15:49:26 def from_call( 15:49:26 cls, 15:49:26 func: Callable[[], TResult], 15:49:26 when: Literal["collect", "setup", "call", "teardown"], 15:49:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:26 ) -> CallInfo[TResult]: 15:49:26 """Call func, wrapping the result in a CallInfo. 15:49:26 15:49:26 :param func: 15:49:26 The function to call. Called without arguments. 15:49:26 :type func: Callable[[], _pytest.runner.TResult] 15:49:26 :param when: 15:49:26 The phase in which the function is called. 15:49:26 :param reraise: 15:49:26 Exception or exceptions that shall propagate if raised by the 15:49:26 function, instead of being wrapped in the CallInfo. 15:49:26 """ 15:49:26 excinfo = None 15:49:26 instant = timing.Instant() 15:49:26 try: 15:49:26 > result: TResult | None = func() 15:49:26 ^^^^^^ 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:26 lambda: runtest_hook(item=item, **kwds), 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:26 yield 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:26 return (yield) 15:49:26 ^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:26 item.session._setupstate.setup(item) 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:26 col.setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:26 super().setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:26 self._request._fillfixtures() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:26 fixturedef = self._get_active_fixturedef(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:26 fixturedef.execute(request=subrequest) 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 15:49:26 self = 15:49:26 request = > 15:49:26 15:49:26 def execute(self, request: SubRequest) -> FixtureValue: 15:49:26 """Return the value of this fixture, executing it if not cached.""" 15:49:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:26 # This needs to be done before checking if we have a cached value, since 15:49:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:26 # parametrization, they finalize themselves and fixtures depending on it 15:49:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:26 # See #4871 15:49:26 requested_fixtures_that_should_finalize_us = [] 15:49:26 for argname in self.argnames: 15:49:26 fixturedef = request._get_active_fixturedef(argname) 15:49:26 # Saves requested fixtures in a list so we later can add our finalizer 15:49:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:26 # down first. This is generally handled by SetupState, but still currently 15:49:26 # needed when this fixture is not parametrized but depends on a parametrized 15:49:26 # fixture. 15:49:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:26 15:49:26 # Check for (and return) cached value/exception. 15:49:26 if self.cached_result is not None: 15:49:26 request_cache_key = self.cache_key(request) 15:49:26 cache_key = self.cached_result[1] 15:49:26 try: 15:49:26 # Attempt to make a normal == check: this might fail for objects 15:49:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:26 cache_hit = bool(request_cache_key == cache_key) 15:49:26 except (ValueError, RuntimeError): 15:49:26 # If the comparison raises, use 'is' as fallback. 15:49:26 cache_hit = request_cache_key is cache_key 15:49:26 15:49:26 if cache_hit: 15:49:26 if self.cached_result[2] is not None: 15:49:26 exc, exc_tb = self.cached_result[2] 15:49:26 raise exc.with_traceback(exc_tb) 15:49:26 else: 15:49:26 return self.cached_result[0] 15:49:26 # We have a previous but differently parametrized fixture instance 15:49:26 # so we need to tear it down before creating a new one. 15:49:26 self.finish(request) 15:49:26 assert self.cached_result is None 15:49:26 15:49:26 # Add finalizer to requested fixtures we saved previously. 15:49:26 # We make sure to do this after checking for cached value to avoid 15:49:26 # adding our finalizer multiple times. (#12135) 15:49:26 finalizer = functools.partial(self.finish, request=request) 15:49:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:26 parent_fixture.addfinalizer(finalizer) 15:49:26 15:49:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:26 # which is executed last. 15:49:26 > assert not self._finalizers 15:49:26 ^^^^^^^^^^^^^^^^^^^^ 15:49:26 E AssertionError 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:26 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 15:49:26 15:49:26 cls = 15:49:26 func = . at 0x7f938019c180> 15:49:26 when = 'setup' 15:49:26 reraise = (, ) 15:49:26 15:49:26 @classmethod 15:49:26 def from_call( 15:49:26 cls, 15:49:26 func: Callable[[], TResult], 15:49:26 when: Literal["collect", "setup", "call", "teardown"], 15:49:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:26 ) -> CallInfo[TResult]: 15:49:26 """Call func, wrapping the result in a CallInfo. 15:49:26 15:49:26 :param func: 15:49:26 The function to call. Called without arguments. 15:49:26 :type func: Callable[[], _pytest.runner.TResult] 15:49:26 :param when: 15:49:26 The phase in which the function is called. 15:49:26 :param reraise: 15:49:26 Exception or exceptions that shall propagate if raised by the 15:49:26 function, instead of being wrapped in the CallInfo. 15:49:26 """ 15:49:26 excinfo = None 15:49:26 instant = timing.Instant() 15:49:26 try: 15:49:26 > result: TResult | None = func() 15:49:26 ^^^^^^ 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:26 lambda: runtest_hook(item=item, **kwds), 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:26 yield 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:26 return (yield) 15:49:26 ^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:26 item.session._setupstate.setup(item) 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:26 col.setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:26 super().setup() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:26 self._request._fillfixtures() 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:26 fixturedef = self._get_active_fixturedef(argname) 15:49:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:26 fixturedef.execute(request=subrequest) 15:49:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:26 15:49:26 self = 15:49:26 request = > 15:49:26 15:49:26 def execute(self, request: SubRequest) -> FixtureValue: 15:49:26 """Return the value of this fixture, executing it if not cached.""" 15:49:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:26 # This needs to be done before checking if we have a cached value, since 15:49:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:26 # parametrization, they finalize themselves and fixtures depending on it 15:49:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:26 # See #4871 15:49:26 requested_fixtures_that_should_finalize_us = [] 15:49:26 for argname in self.argnames: 15:49:26 fixturedef = request._get_active_fixturedef(argname) 15:49:26 # Saves requested fixtures in a list so we later can add our finalizer 15:49:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:26 # down first. This is generally handled by SetupState, but still currently 15:49:26 # needed when this fixture is not parametrized but depends on a parametrized 15:49:26 # fixture. 15:49:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:26 15:49:26 # Check for (and return) cached value/exception. 15:49:26 if self.cached_result is not None: 15:49:26 request_cache_key = self.cache_key(request) 15:49:26 cache_key = self.cached_result[1] 15:49:26 try: 15:49:26 # Attempt to make a normal == check: this might fail for objects 15:49:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:26 cache_hit = bool(request_cache_key == cache_key) 15:49:26 except (ValueError, RuntimeError): 15:49:26 # If the comparison raises, use 'is' as fallback. 15:49:26 cache_hit = request_cache_key is cache_key 15:49:26 15:49:26 if cache_hit: 15:49:26 if self.cached_result[2] is not None: 15:49:26 exc, exc_tb = self.cached_result[2] 15:49:26 raise exc.with_traceback(exc_tb) 15:49:26 else: 15:49:26 return self.cached_result[0] 15:49:26 # We have a previous but differently parametrized fixture instance 15:49:26 # so we need to tear it down before creating a new one. 15:49:26 self.finish(request) 15:49:26 assert self.cached_result is None 15:49:26 15:49:26 # Add finalizer to requested fixtures we saved previously. 15:49:26 # We make sure to do this after checking for cached value to avoid 15:49:26 # adding our finalizer multiple times. (#12135) 15:49:26 finalizer = functools.partial(self.finish, request=request) 15:49:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:26 parent_fixture.addfinalizer(finalizer) 15:49:26 15:49:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:26 # which is executed last. 15:49:26 > assert not self._finalizers 15:49:26 ^^^^^^^^^^^^^^^^^^^^ 15:49:26 E AssertionError 15:49:26 15:49:26 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:26 =========================== short test summary info ============================ 15:49:26 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 15:49:26 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 15:49:26 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 15:49:26 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 15:49:26 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 15:49:26 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 15:49:26 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 15:49:26 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 15:49:26 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 15:49:26 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 15:49:26 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 15:49:26 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 15:49:26 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 15:49:26 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 15:49:26 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 15:49:26 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 15:49:26 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 15:49:26 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 15:49:26 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 15:49:26 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 15:49:26 20 errors in 123.76s (0:02:03) 15:49:26 testsPCE: exit 1 (124.02 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce pid=4170 15:49:26 testsPCE: FAIL ✖ in 2 minutes 52.69 seconds 15:49:26 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 15:49:32 tests_tapi: freeze> python -m pip freeze --all 15:49:32 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.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:49:32 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi 15:49:32 using environment variables from ./karaf221.env 15:49:32 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 15:51:13 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 15:51:22 ==================================== ERRORS ==================================== 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 15:51:22 15:51:22 cls = 15:51:22 15:51:22 @classmethod 15:51:22 def setUpClass(cls): 15:51:22 cls.init_failed = False 15:51:22 os.environ['JAVA_MIN_MEM'] = '1024M' 15:51:22 os.environ['JAVA_MAX_MEM'] = '4096M' 15:51:22 > cls.processes = test_utils.start_tpce() 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 15:51:22 transportpce_tests/tapi/test01_abstracted_topology.py:148: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 def start_tpce(): 15:51:22 if 'NO_ODL_STARTUP' in os.environ: 15:51:22 print('No OpenDaylight instance to start!') 15:51:22 return [] 15:51:22 print('starting OpenDaylight...') 15:51:22 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:51:22 process = start_lighty() 15:51:22 else: 15:51:22 process = start_karaf() 15:51:22 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:51:22 print('OpenDaylight started !') 15:51:22 else: 15:51:22 print('OpenDaylight failed to start !') 15:51:22 shutdown_process(process) 15:51:22 for pid in process_list: 15:51:22 shutdown_process(pid) 15:51:22 > sys.exit(1) 15:51:22 E SystemExit: 1 15:51:22 15:51:22 transportpce_tests/common/test_utils.py:234: SystemExit 15:51:22 ---------------------------- Captured stdout setup ----------------------------- 15:51:22 starting OpenDaylight... 15:51:22 starting KARAF (karaf221) TransportPCE build... 15:51:22 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a5df9c0> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a633c40> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397ccbb060> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397bf33060> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a633100> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a5df880> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a6336a0> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397ccbb060> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a5de0c0> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397ccbb060> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a21a020> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397ccbb060> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a5de3e0> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a21a5c0> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a5de660> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a5dde40> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a633100> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a5dde40> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397ccbb060> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a5de660> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397ccbb060> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a219bc0> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a5de660> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a219bc0> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a218d60> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a5de660> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a2187c0> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a21aac0> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a5de660> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a219300> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a21aac0> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a5de660> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a219a80> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a21afc0> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a5de660> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a219e40> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a5de660> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a21a020> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a21a340> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a5de660> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a21a340> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a21b240> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a5de660> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a21b420> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a21b560> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a5de660> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a21a3e0> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a219a80> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a5de660> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 15:51:22 15:51:22 cls = 15:51:22 func = . at 0x7f397a21b060> 15:51:22 when = 'setup' 15:51:22 reraise = (, ) 15:51:22 15:51:22 @classmethod 15:51:22 def from_call( 15:51:22 cls, 15:51:22 func: Callable[[], TResult], 15:51:22 when: Literal["collect", "setup", "call", "teardown"], 15:51:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:22 ) -> CallInfo[TResult]: 15:51:22 """Call func, wrapping the result in a CallInfo. 15:51:22 15:51:22 :param func: 15:51:22 The function to call. Called without arguments. 15:51:22 :type func: Callable[[], _pytest.runner.TResult] 15:51:22 :param when: 15:51:22 The phase in which the function is called. 15:51:22 :param reraise: 15:51:22 Exception or exceptions that shall propagate if raised by the 15:51:22 function, instead of being wrapped in the CallInfo. 15:51:22 """ 15:51:22 excinfo = None 15:51:22 instant = timing.Instant() 15:51:22 try: 15:51:22 > result: TResult | None = func() 15:51:22 ^^^^^^ 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:22 lambda: runtest_hook(item=item, **kwds), 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:22 yield 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:22 return (yield) 15:51:22 ^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:22 item.session._setupstate.setup(item) 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:22 col.setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:22 super().setup() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:22 self._request._fillfixtures() 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:22 fixturedef = self._get_active_fixturedef(argname) 15:51:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:22 fixturedef.execute(request=subrequest) 15:51:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:22 15:51:22 self = 15:51:22 request = > 15:51:22 15:51:22 def execute(self, request: SubRequest) -> FixtureValue: 15:51:22 """Return the value of this fixture, executing it if not cached.""" 15:51:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:22 # This needs to be done before checking if we have a cached value, since 15:51:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:22 # parametrization, they finalize themselves and fixtures depending on it 15:51:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:22 # See #4871 15:51:22 requested_fixtures_that_should_finalize_us = [] 15:51:22 for argname in self.argnames: 15:51:22 fixturedef = request._get_active_fixturedef(argname) 15:51:22 # Saves requested fixtures in a list so we later can add our finalizer 15:51:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:22 # down first. This is generally handled by SetupState, but still currently 15:51:22 # needed when this fixture is not parametrized but depends on a parametrized 15:51:22 # fixture. 15:51:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:22 15:51:22 # Check for (and return) cached value/exception. 15:51:22 if self.cached_result is not None: 15:51:22 request_cache_key = self.cache_key(request) 15:51:22 cache_key = self.cached_result[1] 15:51:22 try: 15:51:22 # Attempt to make a normal == check: this might fail for objects 15:51:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:22 cache_hit = bool(request_cache_key == cache_key) 15:51:22 except (ValueError, RuntimeError): 15:51:22 # If the comparison raises, use 'is' as fallback. 15:51:22 cache_hit = request_cache_key is cache_key 15:51:22 15:51:22 if cache_hit: 15:51:22 if self.cached_result[2] is not None: 15:51:22 exc, exc_tb = self.cached_result[2] 15:51:22 raise exc.with_traceback(exc_tb) 15:51:22 else: 15:51:22 return self.cached_result[0] 15:51:22 # We have a previous but differently parametrized fixture instance 15:51:22 # so we need to tear it down before creating a new one. 15:51:22 self.finish(request) 15:51:22 assert self.cached_result is None 15:51:22 15:51:22 # Add finalizer to requested fixtures we saved previously. 15:51:22 # We make sure to do this after checking for cached value to avoid 15:51:22 # adding our finalizer multiple times. (#12135) 15:51:22 finalizer = functools.partial(self.finish, request=request) 15:51:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:22 parent_fixture.addfinalizer(finalizer) 15:51:22 15:51:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:22 # which is executed last. 15:51:22 > assert not self._finalizers 15:51:22 ^^^^^^^^^^^^^^^^^^^^ 15:51:22 E AssertionError 15:51:22 15:51:22 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:22 =========================== short test summary info ============================ 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 15:51:22 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 15:51:22 51 errors in 109.71s (0:01:49) 15:51:22 tests_tapi: exit 1 (109.99 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi pid=4250 15:51:23 tests_tapi: FAIL ✖ in 1 minute 56.34 seconds 15:51:23 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 15:51:23 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 15:51:29 tests200: freeze> python -m pip freeze --all 15:51:29 tests221: freeze> python -m pip freeze --all 15:51:29 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.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:51:29 tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 15:51:29 using environment variables from ./karafoc200.env 15:51:29 pytest -q transportpce_tests/oc200/test01_portmapping.py 15:51:29 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.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:51:29 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 15:51:29 using environment variables from ./karaf221.env 15:51:29 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 15:53:09 EEEEEEEEEEEEEEEEEEE [100%] 15:53:11 ==================================== ERRORS ==================================== 15:53:11 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 15:53:11 15:53:11 cls = 15:53:11 15:53:11 @classmethod 15:53:11 def setUpClass(cls): 15:53:11 > cls.processes = test_utils.start_tpce() 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 15:53:11 transportpce_tests/oc200/test01_portmapping.py:29: 15:53:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:11 15:53:11 def start_tpce(): 15:53:11 if 'NO_ODL_STARTUP' in os.environ: 15:53:11 print('No OpenDaylight instance to start!') 15:53:11 return [] 15:53:11 print('starting OpenDaylight...') 15:53:11 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:53:11 process = start_lighty() 15:53:11 else: 15:53:11 process = start_karaf() 15:53:11 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:53:11 print('OpenDaylight started !') 15:53:11 else: 15:53:11 print('OpenDaylight failed to start !') 15:53:11 shutdown_process(process) 15:53:11 for pid in process_list: 15:53:11 shutdown_process(pid) 15:53:11 > sys.exit(1) 15:53:11 E SystemExit: 1 15:53:11 15:53:11 transportpce_tests/common/test_utils.py:234: SystemExit 15:53:11 ---------------------------- Captured stdout setup ----------------------------- 15:53:11 starting OpenDaylight... 15:53:11 starting KARAF (karafoc200) TransportPCE build... 15:53:11 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:53:11 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catalog_input_insertion _ 15:53:11 15:53:11 cls = 15:53:11 func = . at 0x7f08a548b420> 15:53:11 when = 'setup' 15:53:11 reraise = (, ) 15:53:11 15:53:11 @classmethod 15:53:11 def from_call( 15:53:11 cls, 15:53:11 func: Callable[[], TResult], 15:53:11 when: Literal["collect", "setup", "call", "teardown"], 15:53:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:11 ) -> CallInfo[TResult]: 15:53:11 """Call func, wrapping the result in a CallInfo. 15:53:11 15:53:11 :param func: 15:53:11 The function to call. Called without arguments. 15:53:11 :type func: Callable[[], _pytest.runner.TResult] 15:53:11 :param when: 15:53:11 The phase in which the function is called. 15:53:11 :param reraise: 15:53:11 Exception or exceptions that shall propagate if raised by the 15:53:11 function, instead of being wrapped in the CallInfo. 15:53:11 """ 15:53:11 excinfo = None 15:53:11 instant = timing.Instant() 15:53:11 try: 15:53:11 > result: TResult | None = func() 15:53:11 ^^^^^^ 15:53:11 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:11 lambda: runtest_hook(item=item, **kwds), 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:11 yield 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:11 return (yield) 15:53:11 ^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:11 item.session._setupstate.setup(item) 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:11 col.setup() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:11 super().setup() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:11 self._request._fillfixtures() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:11 fixturedef = self._get_active_fixturedef(argname) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:11 fixturedef.execute(request=subrequest) 15:53:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:11 15:53:11 self = 15:53:11 request = > 15:53:11 15:53:11 def execute(self, request: SubRequest) -> FixtureValue: 15:53:11 """Return the value of this fixture, executing it if not cached.""" 15:53:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:11 # This needs to be done before checking if we have a cached value, since 15:53:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:11 # parametrization, they finalize themselves and fixtures depending on it 15:53:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:11 # See #4871 15:53:11 requested_fixtures_that_should_finalize_us = [] 15:53:11 for argname in self.argnames: 15:53:11 fixturedef = request._get_active_fixturedef(argname) 15:53:11 # Saves requested fixtures in a list so we later can add our finalizer 15:53:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:11 # down first. This is generally handled by SetupState, but still currently 15:53:11 # needed when this fixture is not parametrized but depends on a parametrized 15:53:11 # fixture. 15:53:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:11 15:53:11 # Check for (and return) cached value/exception. 15:53:11 if self.cached_result is not None: 15:53:11 request_cache_key = self.cache_key(request) 15:53:11 cache_key = self.cached_result[1] 15:53:11 try: 15:53:11 # Attempt to make a normal == check: this might fail for objects 15:53:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:11 cache_hit = bool(request_cache_key == cache_key) 15:53:11 except (ValueError, RuntimeError): 15:53:11 # If the comparison raises, use 'is' as fallback. 15:53:11 cache_hit = request_cache_key is cache_key 15:53:11 15:53:11 if cache_hit: 15:53:11 if self.cached_result[2] is not None: 15:53:11 exc, exc_tb = self.cached_result[2] 15:53:11 raise exc.with_traceback(exc_tb) 15:53:11 else: 15:53:11 return self.cached_result[0] 15:53:11 # We have a previous but differently parametrized fixture instance 15:53:11 # so we need to tear it down before creating a new one. 15:53:11 self.finish(request) 15:53:11 assert self.cached_result is None 15:53:11 15:53:11 # Add finalizer to requested fixtures we saved previously. 15:53:11 # We make sure to do this after checking for cached value to avoid 15:53:11 # adding our finalizer multiple times. (#12135) 15:53:11 finalizer = functools.partial(self.finish, request=request) 15:53:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:11 parent_fixture.addfinalizer(finalizer) 15:53:11 15:53:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:11 # which is executed last. 15:53:11 > assert not self._finalizers 15:53:11 ^^^^^^^^^^^^^^^^^^^^ 15:53:11 E AssertionError 15:53:11 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:11 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 15:53:11 15:53:11 cls = 15:53:11 func = . at 0x7f08a2d9fec0> 15:53:11 when = 'setup' 15:53:11 reraise = (, ) 15:53:11 15:53:11 @classmethod 15:53:11 def from_call( 15:53:11 cls, 15:53:11 func: Callable[[], TResult], 15:53:11 when: Literal["collect", "setup", "call", "teardown"], 15:53:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:11 ) -> CallInfo[TResult]: 15:53:11 """Call func, wrapping the result in a CallInfo. 15:53:11 15:53:11 :param func: 15:53:11 The function to call. Called without arguments. 15:53:11 :type func: Callable[[], _pytest.runner.TResult] 15:53:11 :param when: 15:53:11 The phase in which the function is called. 15:53:11 :param reraise: 15:53:11 Exception or exceptions that shall propagate if raised by the 15:53:11 function, instead of being wrapped in the CallInfo. 15:53:11 """ 15:53:11 excinfo = None 15:53:11 instant = timing.Instant() 15:53:11 try: 15:53:11 > result: TResult | None = func() 15:53:11 ^^^^^^ 15:53:11 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:11 lambda: runtest_hook(item=item, **kwds), 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:11 yield 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:11 return (yield) 15:53:11 ^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:11 item.session._setupstate.setup(item) 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:11 col.setup() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:11 super().setup() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:11 self._request._fillfixtures() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:11 fixturedef = self._get_active_fixturedef(argname) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:11 fixturedef.execute(request=subrequest) 15:53:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:11 15:53:11 self = 15:53:11 request = > 15:53:11 15:53:11 def execute(self, request: SubRequest) -> FixtureValue: 15:53:11 """Return the value of this fixture, executing it if not cached.""" 15:53:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:11 # This needs to be done before checking if we have a cached value, since 15:53:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:11 # parametrization, they finalize themselves and fixtures depending on it 15:53:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:11 # See #4871 15:53:11 requested_fixtures_that_should_finalize_us = [] 15:53:11 for argname in self.argnames: 15:53:11 fixturedef = request._get_active_fixturedef(argname) 15:53:11 # Saves requested fixtures in a list so we later can add our finalizer 15:53:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:11 # down first. This is generally handled by SetupState, but still currently 15:53:11 # needed when this fixture is not parametrized but depends on a parametrized 15:53:11 # fixture. 15:53:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:11 15:53:11 # Check for (and return) cached value/exception. 15:53:11 if self.cached_result is not None: 15:53:11 request_cache_key = self.cache_key(request) 15:53:11 cache_key = self.cached_result[1] 15:53:11 try: 15:53:11 # Attempt to make a normal == check: this might fail for objects 15:53:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:11 cache_hit = bool(request_cache_key == cache_key) 15:53:11 except (ValueError, RuntimeError): 15:53:11 # If the comparison raises, use 'is' as fallback. 15:53:11 cache_hit = request_cache_key is cache_key 15:53:11 15:53:11 if cache_hit: 15:53:11 if self.cached_result[2] is not None: 15:53:11 exc, exc_tb = self.cached_result[2] 15:53:11 raise exc.with_traceback(exc_tb) 15:53:11 else: 15:53:11 return self.cached_result[0] 15:53:11 # We have a previous but differently parametrized fixture instance 15:53:11 # so we need to tear it down before creating a new one. 15:53:11 self.finish(request) 15:53:11 assert self.cached_result is None 15:53:11 15:53:11 # Add finalizer to requested fixtures we saved previously. 15:53:11 # We make sure to do this after checking for cached value to avoid 15:53:11 # adding our finalizer multiple times. (#12135) 15:53:11 finalizer = functools.partial(self.finish, request=request) 15:53:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:11 parent_fixture.addfinalizer(finalizer) 15:53:11 15:53:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:11 # which is executed last. 15:53:11 > assert not self._finalizers 15:53:11 ^^^^^^^^^^^^^^^^^^^^ 15:53:11 E AssertionError 15:53:11 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:11 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 15:53:11 15:53:11 cls = 15:53:11 func = . at 0x7f08a453f600> 15:53:11 when = 'setup' 15:53:11 reraise = (, ) 15:53:11 15:53:11 @classmethod 15:53:11 def from_call( 15:53:11 cls, 15:53:11 func: Callable[[], TResult], 15:53:11 when: Literal["collect", "setup", "call", "teardown"], 15:53:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:11 ) -> CallInfo[TResult]: 15:53:11 """Call func, wrapping the result in a CallInfo. 15:53:11 15:53:11 :param func: 15:53:11 The function to call. Called without arguments. 15:53:11 :type func: Callable[[], _pytest.runner.TResult] 15:53:11 :param when: 15:53:11 The phase in which the function is called. 15:53:11 :param reraise: 15:53:11 Exception or exceptions that shall propagate if raised by the 15:53:11 function, instead of being wrapped in the CallInfo. 15:53:11 """ 15:53:11 excinfo = None 15:53:11 instant = timing.Instant() 15:53:11 try: 15:53:11 > result: TResult | None = func() 15:53:11 ^^^^^^ 15:53:11 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:11 lambda: runtest_hook(item=item, **kwds), 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:11 yield 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:11 return (yield) 15:53:11 ^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:11 item.session._setupstate.setup(item) 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:11 col.setup() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:11 super().setup() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:11 self._request._fillfixtures() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:11 fixturedef = self._get_active_fixturedef(argname) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:11 fixturedef.execute(request=subrequest) 15:53:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:11 15:53:11 self = 15:53:11 request = > 15:53:11 15:53:11 def execute(self, request: SubRequest) -> FixtureValue: 15:53:11 """Return the value of this fixture, executing it if not cached.""" 15:53:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:11 # This needs to be done before checking if we have a cached value, since 15:53:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:11 # parametrization, they finalize themselves and fixtures depending on it 15:53:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:11 # See #4871 15:53:11 requested_fixtures_that_should_finalize_us = [] 15:53:11 for argname in self.argnames: 15:53:11 fixturedef = request._get_active_fixturedef(argname) 15:53:11 # Saves requested fixtures in a list so we later can add our finalizer 15:53:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:11 # down first. This is generally handled by SetupState, but still currently 15:53:11 # needed when this fixture is not parametrized but depends on a parametrized 15:53:11 # fixture. 15:53:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:11 15:53:11 # Check for (and return) cached value/exception. 15:53:11 if self.cached_result is not None: 15:53:11 request_cache_key = self.cache_key(request) 15:53:11 cache_key = self.cached_result[1] 15:53:11 try: 15:53:11 # Attempt to make a normal == check: this might fail for objects 15:53:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:11 cache_hit = bool(request_cache_key == cache_key) 15:53:11 except (ValueError, RuntimeError): 15:53:11 # If the comparison raises, use 'is' as fallback. 15:53:11 cache_hit = request_cache_key is cache_key 15:53:11 15:53:11 if cache_hit: 15:53:11 if self.cached_result[2] is not None: 15:53:11 exc, exc_tb = self.cached_result[2] 15:53:11 raise exc.with_traceback(exc_tb) 15:53:11 else: 15:53:11 return self.cached_result[0] 15:53:11 # We have a previous but differently parametrized fixture instance 15:53:11 # so we need to tear it down before creating a new one. 15:53:11 self.finish(request) 15:53:11 assert self.cached_result is None 15:53:11 15:53:11 # Add finalizer to requested fixtures we saved previously. 15:53:11 # We make sure to do this after checking for cached value to avoid 15:53:11 # adding our finalizer multiple times. (#12135) 15:53:11 finalizer = functools.partial(self.finish, request=request) 15:53:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:11 parent_fixture.addfinalizer(finalizer) 15:53:11 15:53:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:11 # which is executed last. 15:53:11 > assert not self._finalizers 15:53:11 ^^^^^^^^^^^^^^^^^^^^ 15:53:11 E AssertionError 15:53:11 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:11 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 15:53:11 15:53:11 cls = 15:53:11 func = . at 0x7f08a2d77740> 15:53:11 when = 'setup' 15:53:11 reraise = (, ) 15:53:11 15:53:11 @classmethod 15:53:11 def from_call( 15:53:11 cls, 15:53:11 func: Callable[[], TResult], 15:53:11 when: Literal["collect", "setup", "call", "teardown"], 15:53:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:11 ) -> CallInfo[TResult]: 15:53:11 """Call func, wrapping the result in a CallInfo. 15:53:11 15:53:11 :param func: 15:53:11 The function to call. Called without arguments. 15:53:11 :type func: Callable[[], _pytest.runner.TResult] 15:53:11 :param when: 15:53:11 The phase in which the function is called. 15:53:11 :param reraise: 15:53:11 Exception or exceptions that shall propagate if raised by the 15:53:11 function, instead of being wrapped in the CallInfo. 15:53:11 """ 15:53:11 excinfo = None 15:53:11 instant = timing.Instant() 15:53:11 try: 15:53:11 > result: TResult | None = func() 15:53:11 ^^^^^^ 15:53:11 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:11 lambda: runtest_hook(item=item, **kwds), 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:11 yield 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:11 return (yield) 15:53:11 ^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:11 item.session._setupstate.setup(item) 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:11 col.setup() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:11 super().setup() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:11 self._request._fillfixtures() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:11 fixturedef = self._get_active_fixturedef(argname) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:11 fixturedef.execute(request=subrequest) 15:53:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:11 15:53:11 self = 15:53:11 request = > 15:53:11 15:53:11 def execute(self, request: SubRequest) -> FixtureValue: 15:53:11 """Return the value of this fixture, executing it if not cached.""" 15:53:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:11 # This needs to be done before checking if we have a cached value, since 15:53:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:11 # parametrization, they finalize themselves and fixtures depending on it 15:53:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:11 # See #4871 15:53:11 requested_fixtures_that_should_finalize_us = [] 15:53:11 for argname in self.argnames: 15:53:11 fixturedef = request._get_active_fixturedef(argname) 15:53:11 # Saves requested fixtures in a list so we later can add our finalizer 15:53:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:11 # down first. This is generally handled by SetupState, but still currently 15:53:11 # needed when this fixture is not parametrized but depends on a parametrized 15:53:11 # fixture. 15:53:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:11 15:53:11 # Check for (and return) cached value/exception. 15:53:11 if self.cached_result is not None: 15:53:11 request_cache_key = self.cache_key(request) 15:53:11 cache_key = self.cached_result[1] 15:53:11 try: 15:53:11 # Attempt to make a normal == check: this might fail for objects 15:53:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:11 cache_hit = bool(request_cache_key == cache_key) 15:53:11 except (ValueError, RuntimeError): 15:53:11 # If the comparison raises, use 'is' as fallback. 15:53:11 cache_hit = request_cache_key is cache_key 15:53:11 15:53:11 if cache_hit: 15:53:11 if self.cached_result[2] is not None: 15:53:11 exc, exc_tb = self.cached_result[2] 15:53:11 raise exc.with_traceback(exc_tb) 15:53:11 else: 15:53:11 return self.cached_result[0] 15:53:11 # We have a previous but differently parametrized fixture instance 15:53:11 # so we need to tear it down before creating a new one. 15:53:11 self.finish(request) 15:53:11 assert self.cached_result is None 15:53:11 15:53:11 # Add finalizer to requested fixtures we saved previously. 15:53:11 # We make sure to do this after checking for cached value to avoid 15:53:11 # adding our finalizer multiple times. (#12135) 15:53:11 finalizer = functools.partial(self.finish, request=request) 15:53:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:11 parent_fixture.addfinalizer(finalizer) 15:53:11 15:53:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:11 # which is executed last. 15:53:11 > assert not self._finalizers 15:53:11 ^^^^^^^^^^^^^^^^^^^^ 15:53:11 E AssertionError 15:53:11 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:11 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 15:53:11 15:53:11 cls = 15:53:11 func = . at 0x7f08a548b420> 15:53:11 when = 'setup' 15:53:11 reraise = (, ) 15:53:11 15:53:11 @classmethod 15:53:11 def from_call( 15:53:11 cls, 15:53:11 func: Callable[[], TResult], 15:53:11 when: Literal["collect", "setup", "call", "teardown"], 15:53:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:11 ) -> CallInfo[TResult]: 15:53:11 """Call func, wrapping the result in a CallInfo. 15:53:11 15:53:11 :param func: 15:53:11 The function to call. Called without arguments. 15:53:11 :type func: Callable[[], _pytest.runner.TResult] 15:53:11 :param when: 15:53:11 The phase in which the function is called. 15:53:11 :param reraise: 15:53:11 Exception or exceptions that shall propagate if raised by the 15:53:11 function, instead of being wrapped in the CallInfo. 15:53:11 """ 15:53:11 excinfo = None 15:53:11 instant = timing.Instant() 15:53:11 try: 15:53:11 > result: TResult | None = func() 15:53:11 ^^^^^^ 15:53:11 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:11 lambda: runtest_hook(item=item, **kwds), 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:11 yield 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:11 return (yield) 15:53:11 ^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:11 item.session._setupstate.setup(item) 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:11 col.setup() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:11 super().setup() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:11 self._request._fillfixtures() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:11 fixturedef = self._get_active_fixturedef(argname) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:11 fixturedef.execute(request=subrequest) 15:53:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:11 15:53:11 self = 15:53:11 request = > 15:53:11 15:53:11 def execute(self, request: SubRequest) -> FixtureValue: 15:53:11 """Return the value of this fixture, executing it if not cached.""" 15:53:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:11 # This needs to be done before checking if we have a cached value, since 15:53:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:11 # parametrization, they finalize themselves and fixtures depending on it 15:53:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:11 # See #4871 15:53:11 requested_fixtures_that_should_finalize_us = [] 15:53:11 for argname in self.argnames: 15:53:11 fixturedef = request._get_active_fixturedef(argname) 15:53:11 # Saves requested fixtures in a list so we later can add our finalizer 15:53:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:11 # down first. This is generally handled by SetupState, but still currently 15:53:11 # needed when this fixture is not parametrized but depends on a parametrized 15:53:11 # fixture. 15:53:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:11 15:53:11 # Check for (and return) cached value/exception. 15:53:11 if self.cached_result is not None: 15:53:11 request_cache_key = self.cache_key(request) 15:53:11 cache_key = self.cached_result[1] 15:53:11 try: 15:53:11 # Attempt to make a normal == check: this might fail for objects 15:53:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:11 cache_hit = bool(request_cache_key == cache_key) 15:53:11 except (ValueError, RuntimeError): 15:53:11 # If the comparison raises, use 'is' as fallback. 15:53:11 cache_hit = request_cache_key is cache_key 15:53:11 15:53:11 if cache_hit: 15:53:11 if self.cached_result[2] is not None: 15:53:11 exc, exc_tb = self.cached_result[2] 15:53:11 raise exc.with_traceback(exc_tb) 15:53:11 else: 15:53:11 return self.cached_result[0] 15:53:11 # We have a previous but differently parametrized fixture instance 15:53:11 # so we need to tear it down before creating a new one. 15:53:11 self.finish(request) 15:53:11 assert self.cached_result is None 15:53:11 15:53:11 # Add finalizer to requested fixtures we saved previously. 15:53:11 # We make sure to do this after checking for cached value to avoid 15:53:11 # adding our finalizer multiple times. (#12135) 15:53:11 finalizer = functools.partial(self.finish, request=request) 15:53:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:11 parent_fixture.addfinalizer(finalizer) 15:53:11 15:53:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:11 # which is executed last. 15:53:11 > assert not self._finalizers 15:53:11 ^^^^^^^^^^^^^^^^^^^^ 15:53:11 E AssertionError 15:53:11 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:11 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 15:53:11 15:53:11 cls = 15:53:11 func = . at 0x7f08a453f600> 15:53:11 when = 'setup' 15:53:11 reraise = (, ) 15:53:11 15:53:11 @classmethod 15:53:11 def from_call( 15:53:11 cls, 15:53:11 func: Callable[[], TResult], 15:53:11 when: Literal["collect", "setup", "call", "teardown"], 15:53:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:11 ) -> CallInfo[TResult]: 15:53:11 """Call func, wrapping the result in a CallInfo. 15:53:11 15:53:11 :param func: 15:53:11 The function to call. Called without arguments. 15:53:11 :type func: Callable[[], _pytest.runner.TResult] 15:53:11 :param when: 15:53:11 The phase in which the function is called. 15:53:11 :param reraise: 15:53:11 Exception or exceptions that shall propagate if raised by the 15:53:11 function, instead of being wrapped in the CallInfo. 15:53:11 """ 15:53:11 excinfo = None 15:53:11 instant = timing.Instant() 15:53:11 try: 15:53:11 > result: TResult | None = func() 15:53:11 ^^^^^^ 15:53:11 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:11 lambda: runtest_hook(item=item, **kwds), 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:11 yield 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:11 return (yield) 15:53:11 ^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:11 item.session._setupstate.setup(item) 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:11 col.setup() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:11 super().setup() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:11 self._request._fillfixtures() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:11 fixturedef = self._get_active_fixturedef(argname) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:11 fixturedef.execute(request=subrequest) 15:53:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:11 15:53:11 self = 15:53:11 request = > 15:53:11 15:53:11 def execute(self, request: SubRequest) -> FixtureValue: 15:53:11 """Return the value of this fixture, executing it if not cached.""" 15:53:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:11 # This needs to be done before checking if we have a cached value, since 15:53:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:11 # parametrization, they finalize themselves and fixtures depending on it 15:53:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:11 # See #4871 15:53:11 requested_fixtures_that_should_finalize_us = [] 15:53:11 for argname in self.argnames: 15:53:11 fixturedef = request._get_active_fixturedef(argname) 15:53:11 # Saves requested fixtures in a list so we later can add our finalizer 15:53:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:11 # down first. This is generally handled by SetupState, but still currently 15:53:11 # needed when this fixture is not parametrized but depends on a parametrized 15:53:11 # fixture. 15:53:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:11 15:53:11 # Check for (and return) cached value/exception. 15:53:11 if self.cached_result is not None: 15:53:11 request_cache_key = self.cache_key(request) 15:53:11 cache_key = self.cached_result[1] 15:53:11 try: 15:53:11 # Attempt to make a normal == check: this might fail for objects 15:53:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:11 cache_hit = bool(request_cache_key == cache_key) 15:53:11 except (ValueError, RuntimeError): 15:53:11 # If the comparison raises, use 'is' as fallback. 15:53:11 cache_hit = request_cache_key is cache_key 15:53:11 15:53:11 if cache_hit: 15:53:11 if self.cached_result[2] is not None: 15:53:11 exc, exc_tb = self.cached_result[2] 15:53:11 raise exc.with_traceback(exc_tb) 15:53:11 else: 15:53:11 return self.cached_result[0] 15:53:11 # We have a previous but differently parametrized fixture instance 15:53:11 # so we need to tear it down before creating a new one. 15:53:11 self.finish(request) 15:53:11 assert self.cached_result is None 15:53:11 15:53:11 # Add finalizer to requested fixtures we saved previously. 15:53:11 # We make sure to do this after checking for cached value to avoid 15:53:11 # adding our finalizer multiple times. (#12135) 15:53:11 finalizer = functools.partial(self.finish, request=request) 15:53:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:11 parent_fixture.addfinalizer(finalizer) 15:53:11 15:53:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:11 # which is executed last. 15:53:11 > assert not self._finalizers 15:53:11 ^^^^^^^^^^^^^^^^^^^^ 15:53:11 E AssertionError 15:53:11 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:11 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 15:53:11 15:53:11 cls = 15:53:11 func = . at 0x7f08a2d9f880> 15:53:11 when = 'setup' 15:53:11 reraise = (, ) 15:53:11 15:53:11 @classmethod 15:53:11 def from_call( 15:53:11 cls, 15:53:11 func: Callable[[], TResult], 15:53:11 when: Literal["collect", "setup", "call", "teardown"], 15:53:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:11 ) -> CallInfo[TResult]: 15:53:11 """Call func, wrapping the result in a CallInfo. 15:53:11 15:53:11 :param func: 15:53:11 The function to call. Called without arguments. 15:53:11 :type func: Callable[[], _pytest.runner.TResult] 15:53:11 :param when: 15:53:11 The phase in which the function is called. 15:53:11 :param reraise: 15:53:11 Exception or exceptions that shall propagate if raised by the 15:53:11 function, instead of being wrapped in the CallInfo. 15:53:11 """ 15:53:11 excinfo = None 15:53:11 instant = timing.Instant() 15:53:11 try: 15:53:11 > result: TResult | None = func() 15:53:11 ^^^^^^ 15:53:11 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:11 lambda: runtest_hook(item=item, **kwds), 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:11 yield 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:11 return (yield) 15:53:11 ^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:11 item.session._setupstate.setup(item) 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:11 col.setup() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:11 super().setup() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:11 self._request._fillfixtures() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:11 fixturedef = self._get_active_fixturedef(argname) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:11 fixturedef.execute(request=subrequest) 15:53:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:11 15:53:11 self = 15:53:11 request = > 15:53:11 15:53:11 def execute(self, request: SubRequest) -> FixtureValue: 15:53:11 """Return the value of this fixture, executing it if not cached.""" 15:53:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:11 # This needs to be done before checking if we have a cached value, since 15:53:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:11 # parametrization, they finalize themselves and fixtures depending on it 15:53:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:11 # See #4871 15:53:11 requested_fixtures_that_should_finalize_us = [] 15:53:11 for argname in self.argnames: 15:53:11 fixturedef = request._get_active_fixturedef(argname) 15:53:11 # Saves requested fixtures in a list so we later can add our finalizer 15:53:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:11 # down first. This is generally handled by SetupState, but still currently 15:53:11 # needed when this fixture is not parametrized but depends on a parametrized 15:53:11 # fixture. 15:53:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:11 15:53:11 # Check for (and return) cached value/exception. 15:53:11 if self.cached_result is not None: 15:53:11 request_cache_key = self.cache_key(request) 15:53:11 cache_key = self.cached_result[1] 15:53:11 try: 15:53:11 # Attempt to make a normal == check: this might fail for objects 15:53:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:11 cache_hit = bool(request_cache_key == cache_key) 15:53:11 except (ValueError, RuntimeError): 15:53:11 # If the comparison raises, use 'is' as fallback. 15:53:11 cache_hit = request_cache_key is cache_key 15:53:11 15:53:11 if cache_hit: 15:53:11 if self.cached_result[2] is not None: 15:53:11 exc, exc_tb = self.cached_result[2] 15:53:11 raise exc.with_traceback(exc_tb) 15:53:11 else: 15:53:11 return self.cached_result[0] 15:53:11 # We have a previous but differently parametrized fixture instance 15:53:11 # so we need to tear it down before creating a new one. 15:53:11 self.finish(request) 15:53:11 assert self.cached_result is None 15:53:11 15:53:11 # Add finalizer to requested fixtures we saved previously. 15:53:11 # We make sure to do this after checking for cached value to avoid 15:53:11 # adding our finalizer multiple times. (#12135) 15:53:11 finalizer = functools.partial(self.finish, request=request) 15:53:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:11 parent_fixture.addfinalizer(finalizer) 15:53:11 15:53:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:11 # which is executed last. 15:53:11 > assert not self._finalizers 15:53:11 ^^^^^^^^^^^^^^^^^^^^ 15:53:11 E AssertionError 15:53:11 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:11 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 15:53:11 15:53:11 cls = 15:53:11 func = . at 0x7f08a2d9f6a0> 15:53:11 when = 'setup' 15:53:11 reraise = (, ) 15:53:11 15:53:11 @classmethod 15:53:11 def from_call( 15:53:11 cls, 15:53:11 func: Callable[[], TResult], 15:53:11 when: Literal["collect", "setup", "call", "teardown"], 15:53:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:11 ) -> CallInfo[TResult]: 15:53:11 """Call func, wrapping the result in a CallInfo. 15:53:11 15:53:11 :param func: 15:53:11 The function to call. Called without arguments. 15:53:11 :type func: Callable[[], _pytest.runner.TResult] 15:53:11 :param when: 15:53:11 The phase in which the function is called. 15:53:11 :param reraise: 15:53:11 Exception or exceptions that shall propagate if raised by the 15:53:11 function, instead of being wrapped in the CallInfo. 15:53:11 """ 15:53:11 excinfo = None 15:53:11 instant = timing.Instant() 15:53:11 try: 15:53:11 > result: TResult | None = func() 15:53:11 ^^^^^^ 15:53:11 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:11 lambda: runtest_hook(item=item, **kwds), 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:11 yield 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:11 return (yield) 15:53:11 ^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:11 item.session._setupstate.setup(item) 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:11 col.setup() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:11 super().setup() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:11 self._request._fillfixtures() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:11 fixturedef = self._get_active_fixturedef(argname) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:11 fixturedef.execute(request=subrequest) 15:53:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:11 15:53:11 self = 15:53:11 request = > 15:53:11 15:53:11 def execute(self, request: SubRequest) -> FixtureValue: 15:53:11 """Return the value of this fixture, executing it if not cached.""" 15:53:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:11 # This needs to be done before checking if we have a cached value, since 15:53:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:11 # parametrization, they finalize themselves and fixtures depending on it 15:53:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:11 # See #4871 15:53:11 requested_fixtures_that_should_finalize_us = [] 15:53:11 for argname in self.argnames: 15:53:11 fixturedef = request._get_active_fixturedef(argname) 15:53:11 # Saves requested fixtures in a list so we later can add our finalizer 15:53:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:11 # down first. This is generally handled by SetupState, but still currently 15:53:11 # needed when this fixture is not parametrized but depends on a parametrized 15:53:11 # fixture. 15:53:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:11 15:53:11 # Check for (and return) cached value/exception. 15:53:11 if self.cached_result is not None: 15:53:11 request_cache_key = self.cache_key(request) 15:53:11 cache_key = self.cached_result[1] 15:53:11 try: 15:53:11 # Attempt to make a normal == check: this might fail for objects 15:53:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:11 cache_hit = bool(request_cache_key == cache_key) 15:53:11 except (ValueError, RuntimeError): 15:53:11 # If the comparison raises, use 'is' as fallback. 15:53:11 cache_hit = request_cache_key is cache_key 15:53:11 15:53:11 if cache_hit: 15:53:11 if self.cached_result[2] is not None: 15:53:11 exc, exc_tb = self.cached_result[2] 15:53:11 raise exc.with_traceback(exc_tb) 15:53:11 else: 15:53:11 return self.cached_result[0] 15:53:11 # We have a previous but differently parametrized fixture instance 15:53:11 # so we need to tear it down before creating a new one. 15:53:11 self.finish(request) 15:53:11 assert self.cached_result is None 15:53:11 15:53:11 # Add finalizer to requested fixtures we saved previously. 15:53:11 # We make sure to do this after checking for cached value to avoid 15:53:11 # adding our finalizer multiple times. (#12135) 15:53:11 finalizer = functools.partial(self.finish, request=request) 15:53:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:11 parent_fixture.addfinalizer(finalizer) 15:53:11 15:53:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:11 # which is executed last. 15:53:11 > assert not self._finalizers 15:53:11 ^^^^^^^^^^^^^^^^^^^^ 15:53:11 E AssertionError 15:53:11 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:11 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 15:53:11 15:53:11 cls = 15:53:11 func = . at 0x7f08a2d9f600> 15:53:11 when = 'setup' 15:53:11 reraise = (, ) 15:53:11 15:53:11 @classmethod 15:53:11 def from_call( 15:53:11 cls, 15:53:11 func: Callable[[], TResult], 15:53:11 when: Literal["collect", "setup", "call", "teardown"], 15:53:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:11 ) -> CallInfo[TResult]: 15:53:11 """Call func, wrapping the result in a CallInfo. 15:53:11 15:53:11 :param func: 15:53:11 The function to call. Called without arguments. 15:53:11 :type func: Callable[[], _pytest.runner.TResult] 15:53:11 :param when: 15:53:11 The phase in which the function is called. 15:53:11 :param reraise: 15:53:11 Exception or exceptions that shall propagate if raised by the 15:53:11 function, instead of being wrapped in the CallInfo. 15:53:11 """ 15:53:11 excinfo = None 15:53:11 instant = timing.Instant() 15:53:11 try: 15:53:11 > result: TResult | None = func() 15:53:11 ^^^^^^ 15:53:11 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:11 lambda: runtest_hook(item=item, **kwds), 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:11 yield 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:11 return (yield) 15:53:11 ^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:11 item.session._setupstate.setup(item) 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:11 col.setup() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:11 super().setup() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:11 self._request._fillfixtures() 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:11 fixturedef = self._get_active_fixturedef(argname) 15:53:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:11 fixturedef.execute(request=subrequest) 15:53:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:11 15:53:11 self = 15:53:11 request = > 15:53:11 15:53:11 def execute(self, request: SubRequest) -> FixtureValue: 15:53:11 """Return the value of this fixture, executing it if not cached.""" 15:53:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:11 # This needs to be done before checking if we have a cached value, since 15:53:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:11 # parametrization, they finalize themselves and fixtures depending on it 15:53:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:11 # See #4871 15:53:11 requested_fixtures_that_should_finalize_us = [] 15:53:11 for argname in self.argnames: 15:53:11 fixturedef = request._get_active_fixturedef(argname) 15:53:11 # Saves requested fixtures in a list so we later can add our finalizer 15:53:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:11 # down first. This is generally handled by SetupState, but still currently 15:53:11 # needed when this fixture is not parametrized but depends on a parametrized 15:53:11 # fixture. 15:53:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:11 15:53:11 # Check for (and return) cached value/exception. 15:53:11 if self.cached_result is not None: 15:53:11 request_cache_key = self.cache_key(request) 15:53:11 cache_key = self.cached_result[1] 15:53:11 try: 15:53:11 # Attempt to make a normal == check: this might fail for objects 15:53:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:11 cache_hit = bool(request_cache_key == cache_key) 15:53:11 except (ValueError, RuntimeError): 15:53:11 # If the comparison raises, use 'is' as fallback. 15:53:11 cache_hit = request_cache_key is cache_key 15:53:11 15:53:11 if cache_hit: 15:53:11 if self.cached_result[2] is not None: 15:53:11 exc, exc_tb = self.cached_result[2] 15:53:11 raise exc.with_traceback(exc_tb) 15:53:11 else: 15:53:11 return self.cached_result[0] 15:53:11 # We have a previous but differently parametrized fixture instance 15:53:11 # so we need to tear it down before creating a new one. 15:53:11 self.finish(request) 15:53:11 assert self.cached_result is None 15:53:11 15:53:11 # Add finalizer to requested fixtures we saved previously. 15:53:11 # We make sure to do this after checking for cached value to avoid 15:53:11 # adding our finalizer multiple times. (#12135) 15:53:11 finalizer = functools.partial(self.finish, request=request) 15:53:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:11 parent_fixture.addfinalizer(finalizer) 15:53:11 15:53:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:11 # which is executed last. 15:53:11 > assert not self._finalizers 15:53:11 ^^^^^^^^^^^^^^^^^^^^ 15:53:11 E AssertionError 15:53:11 15:53:11 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:11 =========================== short test summary info ============================ 15:53:11 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 15:53:11 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catalog_input_insertion 15:53:11 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 15:53:11 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 15:53:11 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 15:53:11 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 15:53:11 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 15:53:11 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 15:53:11 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 15:53:11 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 15:53:11 10 errors in 101.94s (0:01:41) 15:53:11 tests200: exit 1 (102.19 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 pid=4385 15:53:11 Etests200: FAIL ✖ in 1 minute 48.73 seconds 15:53:11 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 15:53:11 EEEEEEEEEEEEEEEEEEEEEEEEE [100%] 15:53:15 ==================================== ERRORS ==================================== 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 15:53:15 15:53:15 cls = 15:53:15 15:53:15 @classmethod 15:53:15 def setUpClass(cls): 15:53:15 > cls.processes = test_utils.start_tpce() 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 15:53:15 transportpce_tests/2.2.1/test01_portmapping.py:33: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 def start_tpce(): 15:53:15 if 'NO_ODL_STARTUP' in os.environ: 15:53:15 print('No OpenDaylight instance to start!') 15:53:15 return [] 15:53:15 print('starting OpenDaylight...') 15:53:15 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:53:15 process = start_lighty() 15:53:15 else: 15:53:15 process = start_karaf() 15:53:15 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:53:15 print('OpenDaylight started !') 15:53:15 else: 15:53:15 print('OpenDaylight failed to start !') 15:53:15 shutdown_process(process) 15:53:15 for pid in process_list: 15:53:15 shutdown_process(pid) 15:53:15 > sys.exit(1) 15:53:15 E SystemExit: 1 15:53:15 15:53:15 transportpce_tests/common/test_utils.py:234: SystemExit 15:53:15 ---------------------------- Captured stdout setup ----------------------------- 15:53:15 starting OpenDaylight... 15:53:15 starting KARAF (karaf221) TransportPCE build... 15:53:15 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:53:15 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc170176700> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc1701b6d40> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc17288f240> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc171a9f060> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc170176200> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc17288f240> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc1701b7ba0> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc1701b7240> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc17288f240> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc1701b77e0> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc1701b7ce0> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc1701b7240> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc1701b6e80> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc17288f240> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc1701b6520> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc1701b5b20> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc1701b7ba0> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc1701b6d40> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc1701753a0> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc1701b7d80> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc1701b5b20> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc170175120> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc170175300> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc1701b5b20> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc1701f0c20> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc170175120> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc1701b5b20> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc1701f0220> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc170175120> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc1701f1800> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc1701f1440> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc170175120> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc1701f1580> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 15:53:15 15:53:15 cls = 15:53:15 func = . at 0x7fc170175120> 15:53:15 when = 'setup' 15:53:15 reraise = (, ) 15:53:15 15:53:15 @classmethod 15:53:15 def from_call( 15:53:15 cls, 15:53:15 func: Callable[[], TResult], 15:53:15 when: Literal["collect", "setup", "call", "teardown"], 15:53:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:15 ) -> CallInfo[TResult]: 15:53:15 """Call func, wrapping the result in a CallInfo. 15:53:15 15:53:15 :param func: 15:53:15 The function to call. Called without arguments. 15:53:15 :type func: Callable[[], _pytest.runner.TResult] 15:53:15 :param when: 15:53:15 The phase in which the function is called. 15:53:15 :param reraise: 15:53:15 Exception or exceptions that shall propagate if raised by the 15:53:15 function, instead of being wrapped in the CallInfo. 15:53:15 """ 15:53:15 excinfo = None 15:53:15 instant = timing.Instant() 15:53:15 try: 15:53:15 > result: TResult | None = func() 15:53:15 ^^^^^^ 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:15 lambda: runtest_hook(item=item, **kwds), 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:15 yield 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:15 return (yield) 15:53:15 ^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:15 item.session._setupstate.setup(item) 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:15 col.setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:15 super().setup() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:15 self._request._fillfixtures() 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:15 fixturedef = self._get_active_fixturedef(argname) 15:53:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:15 fixturedef.execute(request=subrequest) 15:53:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:15 15:53:15 self = 15:53:15 request = > 15:53:15 15:53:15 def execute(self, request: SubRequest) -> FixtureValue: 15:53:15 """Return the value of this fixture, executing it if not cached.""" 15:53:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:15 # This needs to be done before checking if we have a cached value, since 15:53:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:15 # parametrization, they finalize themselves and fixtures depending on it 15:53:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:15 # See #4871 15:53:15 requested_fixtures_that_should_finalize_us = [] 15:53:15 for argname in self.argnames: 15:53:15 fixturedef = request._get_active_fixturedef(argname) 15:53:15 # Saves requested fixtures in a list so we later can add our finalizer 15:53:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:15 # down first. This is generally handled by SetupState, but still currently 15:53:15 # needed when this fixture is not parametrized but depends on a parametrized 15:53:15 # fixture. 15:53:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:15 15:53:15 # Check for (and return) cached value/exception. 15:53:15 if self.cached_result is not None: 15:53:15 request_cache_key = self.cache_key(request) 15:53:15 cache_key = self.cached_result[1] 15:53:15 try: 15:53:15 # Attempt to make a normal == check: this might fail for objects 15:53:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:15 cache_hit = bool(request_cache_key == cache_key) 15:53:15 except (ValueError, RuntimeError): 15:53:15 # If the comparison raises, use 'is' as fallback. 15:53:15 cache_hit = request_cache_key is cache_key 15:53:15 15:53:15 if cache_hit: 15:53:15 if self.cached_result[2] is not None: 15:53:15 exc, exc_tb = self.cached_result[2] 15:53:15 raise exc.with_traceback(exc_tb) 15:53:15 else: 15:53:15 return self.cached_result[0] 15:53:15 # We have a previous but differently parametrized fixture instance 15:53:15 # so we need to tear it down before creating a new one. 15:53:15 self.finish(request) 15:53:15 assert self.cached_result is None 15:53:15 15:53:15 # Add finalizer to requested fixtures we saved previously. 15:53:15 # We make sure to do this after checking for cached value to avoid 15:53:15 # adding our finalizer multiple times. (#12135) 15:53:15 finalizer = functools.partial(self.finish, request=request) 15:53:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:15 parent_fixture.addfinalizer(finalizer) 15:53:15 15:53:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:15 # which is executed last. 15:53:15 > assert not self._finalizers 15:53:15 ^^^^^^^^^^^^^^^^^^^^ 15:53:15 E AssertionError 15:53:15 15:53:15 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:15 =========================== short test summary info ============================ 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 15:53:15 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 15:53:15 35 errors in 106.36s (0:01:46) 15:53:15 tests221: exit 1 (106.62 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 pid=4396 15:53:16 tests221: FAIL ✖ in 1 minute 53.22 seconds 15:53:16 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 15:53:17 tests71: freeze> python -m pip freeze --all 15:53:17 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.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:53:17 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 15:53:17 using environment variables from ./karaf71.env 15:53:17 pytest -q transportpce_tests/7.1/test01_portmapping.py 15:53:22 tests_hybrid: freeze> python -m pip freeze --all 15:53:22 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.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:53:22 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid 15:53:22 using environment variables from ./karaf221.env 15:53:22 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 15:54:58 EEEEEEEEEEEE [100%] 15:55:00 ==================================== ERRORS ==================================== 15:55:00 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 15:55:00 15:55:00 cls = 15:55:00 15:55:00 @classmethod 15:55:00 def setUpClass(cls): 15:55:00 > cls.processes = test_utils.start_tpce() 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 15:55:00 transportpce_tests/7.1/test01_portmapping.py:32: 15:55:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:00 15:55:00 def start_tpce(): 15:55:00 if 'NO_ODL_STARTUP' in os.environ: 15:55:00 print('No OpenDaylight instance to start!') 15:55:00 return [] 15:55:00 print('starting OpenDaylight...') 15:55:00 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:55:00 process = start_lighty() 15:55:00 else: 15:55:00 process = start_karaf() 15:55:00 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:55:00 print('OpenDaylight started !') 15:55:00 else: 15:55:00 print('OpenDaylight failed to start !') 15:55:00 shutdown_process(process) 15:55:00 for pid in process_list: 15:55:00 shutdown_process(pid) 15:55:00 > sys.exit(1) 15:55:00 E SystemExit: 1 15:55:00 15:55:00 transportpce_tests/common/test_utils.py:234: SystemExit 15:55:00 ---------------------------- Captured stdout setup ----------------------------- 15:55:00 starting OpenDaylight... 15:55:00 starting KARAF (karaf71) TransportPCE build... 15:55:00 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:55:00 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 15:55:00 15:55:00 cls = 15:55:00 func = . at 0x7f17f30ea2a0> 15:55:00 when = 'setup' 15:55:00 reraise = (, ) 15:55:00 15:55:00 @classmethod 15:55:00 def from_call( 15:55:00 cls, 15:55:00 func: Callable[[], TResult], 15:55:00 when: Literal["collect", "setup", "call", "teardown"], 15:55:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:00 ) -> CallInfo[TResult]: 15:55:00 """Call func, wrapping the result in a CallInfo. 15:55:00 15:55:00 :param func: 15:55:00 The function to call. Called without arguments. 15:55:00 :type func: Callable[[], _pytest.runner.TResult] 15:55:00 :param when: 15:55:00 The phase in which the function is called. 15:55:00 :param reraise: 15:55:00 Exception or exceptions that shall propagate if raised by the 15:55:00 function, instead of being wrapped in the CallInfo. 15:55:00 """ 15:55:00 excinfo = None 15:55:00 instant = timing.Instant() 15:55:00 try: 15:55:00 > result: TResult | None = func() 15:55:00 ^^^^^^ 15:55:00 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:00 lambda: runtest_hook(item=item, **kwds), 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:00 yield 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:00 return (yield) 15:55:00 ^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:00 item.session._setupstate.setup(item) 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:00 col.setup() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:00 super().setup() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:00 self._request._fillfixtures() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:00 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:00 fixturedef = self._get_active_fixturedef(argname) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:00 fixturedef.execute(request=subrequest) 15:55:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:00 15:55:00 self = 15:55:00 request = > 15:55:00 15:55:00 def execute(self, request: SubRequest) -> FixtureValue: 15:55:00 """Return the value of this fixture, executing it if not cached.""" 15:55:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:00 # This needs to be done before checking if we have a cached value, since 15:55:00 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:00 # parametrization, they finalize themselves and fixtures depending on it 15:55:00 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:00 # See #4871 15:55:00 requested_fixtures_that_should_finalize_us = [] 15:55:00 for argname in self.argnames: 15:55:00 fixturedef = request._get_active_fixturedef(argname) 15:55:00 # Saves requested fixtures in a list so we later can add our finalizer 15:55:00 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:00 # down first. This is generally handled by SetupState, but still currently 15:55:00 # needed when this fixture is not parametrized but depends on a parametrized 15:55:00 # fixture. 15:55:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:00 15:55:00 # Check for (and return) cached value/exception. 15:55:00 if self.cached_result is not None: 15:55:00 request_cache_key = self.cache_key(request) 15:55:00 cache_key = self.cached_result[1] 15:55:00 try: 15:55:00 # Attempt to make a normal == check: this might fail for objects 15:55:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:00 cache_hit = bool(request_cache_key == cache_key) 15:55:00 except (ValueError, RuntimeError): 15:55:00 # If the comparison raises, use 'is' as fallback. 15:55:00 cache_hit = request_cache_key is cache_key 15:55:00 15:55:00 if cache_hit: 15:55:00 if self.cached_result[2] is not None: 15:55:00 exc, exc_tb = self.cached_result[2] 15:55:00 raise exc.with_traceback(exc_tb) 15:55:00 else: 15:55:00 return self.cached_result[0] 15:55:00 # We have a previous but differently parametrized fixture instance 15:55:00 # so we need to tear it down before creating a new one. 15:55:00 self.finish(request) 15:55:00 assert self.cached_result is None 15:55:00 15:55:00 # Add finalizer to requested fixtures we saved previously. 15:55:00 # We make sure to do this after checking for cached value to avoid 15:55:00 # adding our finalizer multiple times. (#12135) 15:55:00 finalizer = functools.partial(self.finish, request=request) 15:55:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:00 parent_fixture.addfinalizer(finalizer) 15:55:00 15:55:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:00 # which is executed last. 15:55:00 > assert not self._finalizers 15:55:00 ^^^^^^^^^^^^^^^^^^^^ 15:55:00 E AssertionError 15:55:00 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:00 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 15:55:00 15:55:00 cls = 15:55:00 func = . at 0x7f17f30eba60> 15:55:00 when = 'setup' 15:55:00 reraise = (, ) 15:55:00 15:55:00 @classmethod 15:55:00 def from_call( 15:55:00 cls, 15:55:00 func: Callable[[], TResult], 15:55:00 when: Literal["collect", "setup", "call", "teardown"], 15:55:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:00 ) -> CallInfo[TResult]: 15:55:00 """Call func, wrapping the result in a CallInfo. 15:55:00 15:55:00 :param func: 15:55:00 The function to call. Called without arguments. 15:55:00 :type func: Callable[[], _pytest.runner.TResult] 15:55:00 :param when: 15:55:00 The phase in which the function is called. 15:55:00 :param reraise: 15:55:00 Exception or exceptions that shall propagate if raised by the 15:55:00 function, instead of being wrapped in the CallInfo. 15:55:00 """ 15:55:00 excinfo = None 15:55:00 instant = timing.Instant() 15:55:00 try: 15:55:00 > result: TResult | None = func() 15:55:00 ^^^^^^ 15:55:00 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:00 lambda: runtest_hook(item=item, **kwds), 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:00 yield 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:00 return (yield) 15:55:00 ^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:00 item.session._setupstate.setup(item) 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:00 col.setup() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:00 super().setup() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:00 self._request._fillfixtures() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:00 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:00 fixturedef = self._get_active_fixturedef(argname) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:00 fixturedef.execute(request=subrequest) 15:55:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:00 15:55:00 self = 15:55:00 request = > 15:55:00 15:55:00 def execute(self, request: SubRequest) -> FixtureValue: 15:55:00 """Return the value of this fixture, executing it if not cached.""" 15:55:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:00 # This needs to be done before checking if we have a cached value, since 15:55:00 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:00 # parametrization, they finalize themselves and fixtures depending on it 15:55:00 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:00 # See #4871 15:55:00 requested_fixtures_that_should_finalize_us = [] 15:55:00 for argname in self.argnames: 15:55:00 fixturedef = request._get_active_fixturedef(argname) 15:55:00 # Saves requested fixtures in a list so we later can add our finalizer 15:55:00 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:00 # down first. This is generally handled by SetupState, but still currently 15:55:00 # needed when this fixture is not parametrized but depends on a parametrized 15:55:00 # fixture. 15:55:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:00 15:55:00 # Check for (and return) cached value/exception. 15:55:00 if self.cached_result is not None: 15:55:00 request_cache_key = self.cache_key(request) 15:55:00 cache_key = self.cached_result[1] 15:55:00 try: 15:55:00 # Attempt to make a normal == check: this might fail for objects 15:55:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:00 cache_hit = bool(request_cache_key == cache_key) 15:55:00 except (ValueError, RuntimeError): 15:55:00 # If the comparison raises, use 'is' as fallback. 15:55:00 cache_hit = request_cache_key is cache_key 15:55:00 15:55:00 if cache_hit: 15:55:00 if self.cached_result[2] is not None: 15:55:00 exc, exc_tb = self.cached_result[2] 15:55:00 raise exc.with_traceback(exc_tb) 15:55:00 else: 15:55:00 return self.cached_result[0] 15:55:00 # We have a previous but differently parametrized fixture instance 15:55:00 # so we need to tear it down before creating a new one. 15:55:00 self.finish(request) 15:55:00 assert self.cached_result is None 15:55:00 15:55:00 # Add finalizer to requested fixtures we saved previously. 15:55:00 # We make sure to do this after checking for cached value to avoid 15:55:00 # adding our finalizer multiple times. (#12135) 15:55:00 finalizer = functools.partial(self.finish, request=request) 15:55:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:00 parent_fixture.addfinalizer(finalizer) 15:55:00 15:55:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:00 # which is executed last. 15:55:00 > assert not self._finalizers 15:55:00 ^^^^^^^^^^^^^^^^^^^^ 15:55:00 E AssertionError 15:55:00 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:00 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 15:55:00 15:55:00 cls = 15:55:00 func = . at 0x7f17f58032e0> 15:55:00 when = 'setup' 15:55:00 reraise = (, ) 15:55:00 15:55:00 @classmethod 15:55:00 def from_call( 15:55:00 cls, 15:55:00 func: Callable[[], TResult], 15:55:00 when: Literal["collect", "setup", "call", "teardown"], 15:55:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:00 ) -> CallInfo[TResult]: 15:55:00 """Call func, wrapping the result in a CallInfo. 15:55:00 15:55:00 :param func: 15:55:00 The function to call. Called without arguments. 15:55:00 :type func: Callable[[], _pytest.runner.TResult] 15:55:00 :param when: 15:55:00 The phase in which the function is called. 15:55:00 :param reraise: 15:55:00 Exception or exceptions that shall propagate if raised by the 15:55:00 function, instead of being wrapped in the CallInfo. 15:55:00 """ 15:55:00 excinfo = None 15:55:00 instant = timing.Instant() 15:55:00 try: 15:55:00 > result: TResult | None = func() 15:55:00 ^^^^^^ 15:55:00 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:00 lambda: runtest_hook(item=item, **kwds), 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:00 yield 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:00 return (yield) 15:55:00 ^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:00 item.session._setupstate.setup(item) 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:00 col.setup() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:00 super().setup() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:00 self._request._fillfixtures() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:00 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:00 fixturedef = self._get_active_fixturedef(argname) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:00 fixturedef.execute(request=subrequest) 15:55:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:00 15:55:00 self = 15:55:00 request = > 15:55:00 15:55:00 def execute(self, request: SubRequest) -> FixtureValue: 15:55:00 """Return the value of this fixture, executing it if not cached.""" 15:55:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:00 # This needs to be done before checking if we have a cached value, since 15:55:00 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:00 # parametrization, they finalize themselves and fixtures depending on it 15:55:00 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:00 # See #4871 15:55:00 requested_fixtures_that_should_finalize_us = [] 15:55:00 for argname in self.argnames: 15:55:00 fixturedef = request._get_active_fixturedef(argname) 15:55:00 # Saves requested fixtures in a list so we later can add our finalizer 15:55:00 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:00 # down first. This is generally handled by SetupState, but still currently 15:55:00 # needed when this fixture is not parametrized but depends on a parametrized 15:55:00 # fixture. 15:55:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:00 15:55:00 # Check for (and return) cached value/exception. 15:55:00 if self.cached_result is not None: 15:55:00 request_cache_key = self.cache_key(request) 15:55:00 cache_key = self.cached_result[1] 15:55:00 try: 15:55:00 # Attempt to make a normal == check: this might fail for objects 15:55:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:00 cache_hit = bool(request_cache_key == cache_key) 15:55:00 except (ValueError, RuntimeError): 15:55:00 # If the comparison raises, use 'is' as fallback. 15:55:00 cache_hit = request_cache_key is cache_key 15:55:00 15:55:00 if cache_hit: 15:55:00 if self.cached_result[2] is not None: 15:55:00 exc, exc_tb = self.cached_result[2] 15:55:00 raise exc.with_traceback(exc_tb) 15:55:00 else: 15:55:00 return self.cached_result[0] 15:55:00 # We have a previous but differently parametrized fixture instance 15:55:00 # so we need to tear it down before creating a new one. 15:55:00 self.finish(request) 15:55:00 assert self.cached_result is None 15:55:00 15:55:00 # Add finalizer to requested fixtures we saved previously. 15:55:00 # We make sure to do this after checking for cached value to avoid 15:55:00 # adding our finalizer multiple times. (#12135) 15:55:00 finalizer = functools.partial(self.finish, request=request) 15:55:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:00 parent_fixture.addfinalizer(finalizer) 15:55:00 15:55:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:00 # which is executed last. 15:55:00 > assert not self._finalizers 15:55:00 ^^^^^^^^^^^^^^^^^^^^ 15:55:00 E AssertionError 15:55:00 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:00 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 15:55:00 15:55:00 cls = 15:55:00 func = . at 0x7f17f30eba60> 15:55:00 when = 'setup' 15:55:00 reraise = (, ) 15:55:00 15:55:00 @classmethod 15:55:00 def from_call( 15:55:00 cls, 15:55:00 func: Callable[[], TResult], 15:55:00 when: Literal["collect", "setup", "call", "teardown"], 15:55:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:00 ) -> CallInfo[TResult]: 15:55:00 """Call func, wrapping the result in a CallInfo. 15:55:00 15:55:00 :param func: 15:55:00 The function to call. Called without arguments. 15:55:00 :type func: Callable[[], _pytest.runner.TResult] 15:55:00 :param when: 15:55:00 The phase in which the function is called. 15:55:00 :param reraise: 15:55:00 Exception or exceptions that shall propagate if raised by the 15:55:00 function, instead of being wrapped in the CallInfo. 15:55:00 """ 15:55:00 excinfo = None 15:55:00 instant = timing.Instant() 15:55:00 try: 15:55:00 > result: TResult | None = func() 15:55:00 ^^^^^^ 15:55:00 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:00 lambda: runtest_hook(item=item, **kwds), 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:00 yield 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:00 return (yield) 15:55:00 ^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:00 item.session._setupstate.setup(item) 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:00 col.setup() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:00 super().setup() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:00 self._request._fillfixtures() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:00 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:00 fixturedef = self._get_active_fixturedef(argname) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:00 fixturedef.execute(request=subrequest) 15:55:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:00 15:55:00 self = 15:55:00 request = > 15:55:00 15:55:00 def execute(self, request: SubRequest) -> FixtureValue: 15:55:00 """Return the value of this fixture, executing it if not cached.""" 15:55:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:00 # This needs to be done before checking if we have a cached value, since 15:55:00 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:00 # parametrization, they finalize themselves and fixtures depending on it 15:55:00 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:00 # See #4871 15:55:00 requested_fixtures_that_should_finalize_us = [] 15:55:00 for argname in self.argnames: 15:55:00 fixturedef = request._get_active_fixturedef(argname) 15:55:00 # Saves requested fixtures in a list so we later can add our finalizer 15:55:00 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:00 # down first. This is generally handled by SetupState, but still currently 15:55:00 # needed when this fixture is not parametrized but depends on a parametrized 15:55:00 # fixture. 15:55:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:00 15:55:00 # Check for (and return) cached value/exception. 15:55:00 if self.cached_result is not None: 15:55:00 request_cache_key = self.cache_key(request) 15:55:00 cache_key = self.cached_result[1] 15:55:00 try: 15:55:00 # Attempt to make a normal == check: this might fail for objects 15:55:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:00 cache_hit = bool(request_cache_key == cache_key) 15:55:00 except (ValueError, RuntimeError): 15:55:00 # If the comparison raises, use 'is' as fallback. 15:55:00 cache_hit = request_cache_key is cache_key 15:55:00 15:55:00 if cache_hit: 15:55:00 if self.cached_result[2] is not None: 15:55:00 exc, exc_tb = self.cached_result[2] 15:55:00 raise exc.with_traceback(exc_tb) 15:55:00 else: 15:55:00 return self.cached_result[0] 15:55:00 # We have a previous but differently parametrized fixture instance 15:55:00 # so we need to tear it down before creating a new one. 15:55:00 self.finish(request) 15:55:00 assert self.cached_result is None 15:55:00 15:55:00 # Add finalizer to requested fixtures we saved previously. 15:55:00 # We make sure to do this after checking for cached value to avoid 15:55:00 # adding our finalizer multiple times. (#12135) 15:55:00 finalizer = functools.partial(self.finish, request=request) 15:55:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:00 parent_fixture.addfinalizer(finalizer) 15:55:00 15:55:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:00 # which is executed last. 15:55:00 > assert not self._finalizers 15:55:00 ^^^^^^^^^^^^^^^^^^^^ 15:55:00 E AssertionError 15:55:00 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:00 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 15:55:00 15:55:00 cls = 15:55:00 func = . at 0x7f17f30eb7e0> 15:55:00 when = 'setup' 15:55:00 reraise = (, ) 15:55:00 15:55:00 @classmethod 15:55:00 def from_call( 15:55:00 cls, 15:55:00 func: Callable[[], TResult], 15:55:00 when: Literal["collect", "setup", "call", "teardown"], 15:55:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:00 ) -> CallInfo[TResult]: 15:55:00 """Call func, wrapping the result in a CallInfo. 15:55:00 15:55:00 :param func: 15:55:00 The function to call. Called without arguments. 15:55:00 :type func: Callable[[], _pytest.runner.TResult] 15:55:00 :param when: 15:55:00 The phase in which the function is called. 15:55:00 :param reraise: 15:55:00 Exception or exceptions that shall propagate if raised by the 15:55:00 function, instead of being wrapped in the CallInfo. 15:55:00 """ 15:55:00 excinfo = None 15:55:00 instant = timing.Instant() 15:55:00 try: 15:55:00 > result: TResult | None = func() 15:55:00 ^^^^^^ 15:55:00 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:00 lambda: runtest_hook(item=item, **kwds), 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:00 yield 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:00 return (yield) 15:55:00 ^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:00 item.session._setupstate.setup(item) 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:00 col.setup() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:00 super().setup() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:00 self._request._fillfixtures() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:00 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:00 fixturedef = self._get_active_fixturedef(argname) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:00 fixturedef.execute(request=subrequest) 15:55:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:00 15:55:00 self = 15:55:00 request = > 15:55:00 15:55:00 def execute(self, request: SubRequest) -> FixtureValue: 15:55:00 """Return the value of this fixture, executing it if not cached.""" 15:55:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:00 # This needs to be done before checking if we have a cached value, since 15:55:00 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:00 # parametrization, they finalize themselves and fixtures depending on it 15:55:00 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:00 # See #4871 15:55:00 requested_fixtures_that_should_finalize_us = [] 15:55:00 for argname in self.argnames: 15:55:00 fixturedef = request._get_active_fixturedef(argname) 15:55:00 # Saves requested fixtures in a list so we later can add our finalizer 15:55:00 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:00 # down first. This is generally handled by SetupState, but still currently 15:55:00 # needed when this fixture is not parametrized but depends on a parametrized 15:55:00 # fixture. 15:55:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:00 15:55:00 # Check for (and return) cached value/exception. 15:55:00 if self.cached_result is not None: 15:55:00 request_cache_key = self.cache_key(request) 15:55:00 cache_key = self.cached_result[1] 15:55:00 try: 15:55:00 # Attempt to make a normal == check: this might fail for objects 15:55:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:00 cache_hit = bool(request_cache_key == cache_key) 15:55:00 except (ValueError, RuntimeError): 15:55:00 # If the comparison raises, use 'is' as fallback. 15:55:00 cache_hit = request_cache_key is cache_key 15:55:00 15:55:00 if cache_hit: 15:55:00 if self.cached_result[2] is not None: 15:55:00 exc, exc_tb = self.cached_result[2] 15:55:00 raise exc.with_traceback(exc_tb) 15:55:00 else: 15:55:00 return self.cached_result[0] 15:55:00 # We have a previous but differently parametrized fixture instance 15:55:00 # so we need to tear it down before creating a new one. 15:55:00 self.finish(request) 15:55:00 assert self.cached_result is None 15:55:00 15:55:00 # Add finalizer to requested fixtures we saved previously. 15:55:00 # We make sure to do this after checking for cached value to avoid 15:55:00 # adding our finalizer multiple times. (#12135) 15:55:00 finalizer = functools.partial(self.finish, request=request) 15:55:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:00 parent_fixture.addfinalizer(finalizer) 15:55:00 15:55:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:00 # which is executed last. 15:55:00 > assert not self._finalizers 15:55:00 ^^^^^^^^^^^^^^^^^^^^ 15:55:00 E AssertionError 15:55:00 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:00 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 15:55:00 15:55:00 cls = 15:55:00 func = . at 0x7f17f30eb880> 15:55:00 when = 'setup' 15:55:00 reraise = (, ) 15:55:00 15:55:00 @classmethod 15:55:00 def from_call( 15:55:00 cls, 15:55:00 func: Callable[[], TResult], 15:55:00 when: Literal["collect", "setup", "call", "teardown"], 15:55:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:00 ) -> CallInfo[TResult]: 15:55:00 """Call func, wrapping the result in a CallInfo. 15:55:00 15:55:00 :param func: 15:55:00 The function to call. Called without arguments. 15:55:00 :type func: Callable[[], _pytest.runner.TResult] 15:55:00 :param when: 15:55:00 The phase in which the function is called. 15:55:00 :param reraise: 15:55:00 Exception or exceptions that shall propagate if raised by the 15:55:00 function, instead of being wrapped in the CallInfo. 15:55:00 """ 15:55:00 excinfo = None 15:55:00 instant = timing.Instant() 15:55:00 try: 15:55:00 > result: TResult | None = func() 15:55:00 ^^^^^^ 15:55:00 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:00 lambda: runtest_hook(item=item, **kwds), 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:00 yield 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:00 return (yield) 15:55:00 ^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:00 item.session._setupstate.setup(item) 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:00 col.setup() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:00 super().setup() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:00 self._request._fillfixtures() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:00 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:00 fixturedef = self._get_active_fixturedef(argname) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:00 fixturedef.execute(request=subrequest) 15:55:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:00 15:55:00 self = 15:55:00 request = > 15:55:00 15:55:00 def execute(self, request: SubRequest) -> FixtureValue: 15:55:00 """Return the value of this fixture, executing it if not cached.""" 15:55:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:00 # This needs to be done before checking if we have a cached value, since 15:55:00 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:00 # parametrization, they finalize themselves and fixtures depending on it 15:55:00 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:00 # See #4871 15:55:00 requested_fixtures_that_should_finalize_us = [] 15:55:00 for argname in self.argnames: 15:55:00 fixturedef = request._get_active_fixturedef(argname) 15:55:00 # Saves requested fixtures in a list so we later can add our finalizer 15:55:00 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:00 # down first. This is generally handled by SetupState, but still currently 15:55:00 # needed when this fixture is not parametrized but depends on a parametrized 15:55:00 # fixture. 15:55:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:00 15:55:00 # Check for (and return) cached value/exception. 15:55:00 if self.cached_result is not None: 15:55:00 request_cache_key = self.cache_key(request) 15:55:00 cache_key = self.cached_result[1] 15:55:00 try: 15:55:00 # Attempt to make a normal == check: this might fail for objects 15:55:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:00 cache_hit = bool(request_cache_key == cache_key) 15:55:00 except (ValueError, RuntimeError): 15:55:00 # If the comparison raises, use 'is' as fallback. 15:55:00 cache_hit = request_cache_key is cache_key 15:55:00 15:55:00 if cache_hit: 15:55:00 if self.cached_result[2] is not None: 15:55:00 exc, exc_tb = self.cached_result[2] 15:55:00 raise exc.with_traceback(exc_tb) 15:55:00 else: 15:55:00 return self.cached_result[0] 15:55:00 # We have a previous but differently parametrized fixture instance 15:55:00 # so we need to tear it down before creating a new one. 15:55:00 self.finish(request) 15:55:00 assert self.cached_result is None 15:55:00 15:55:00 # Add finalizer to requested fixtures we saved previously. 15:55:00 # We make sure to do this after checking for cached value to avoid 15:55:00 # adding our finalizer multiple times. (#12135) 15:55:00 finalizer = functools.partial(self.finish, request=request) 15:55:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:00 parent_fixture.addfinalizer(finalizer) 15:55:00 15:55:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:00 # which is executed last. 15:55:00 > assert not self._finalizers 15:55:00 ^^^^^^^^^^^^^^^^^^^^ 15:55:00 E AssertionError 15:55:00 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:00 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 15:55:00 15:55:00 cls = 15:55:00 func = . at 0x7f17f30eb6a0> 15:55:00 when = 'setup' 15:55:00 reraise = (, ) 15:55:00 15:55:00 @classmethod 15:55:00 def from_call( 15:55:00 cls, 15:55:00 func: Callable[[], TResult], 15:55:00 when: Literal["collect", "setup", "call", "teardown"], 15:55:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:00 ) -> CallInfo[TResult]: 15:55:00 """Call func, wrapping the result in a CallInfo. 15:55:00 15:55:00 :param func: 15:55:00 The function to call. Called without arguments. 15:55:00 :type func: Callable[[], _pytest.runner.TResult] 15:55:00 :param when: 15:55:00 The phase in which the function is called. 15:55:00 :param reraise: 15:55:00 Exception or exceptions that shall propagate if raised by the 15:55:00 function, instead of being wrapped in the CallInfo. 15:55:00 """ 15:55:00 excinfo = None 15:55:00 instant = timing.Instant() 15:55:00 try: 15:55:00 > result: TResult | None = func() 15:55:00 ^^^^^^ 15:55:00 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:00 lambda: runtest_hook(item=item, **kwds), 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:00 yield 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:00 return (yield) 15:55:00 ^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:00 item.session._setupstate.setup(item) 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:00 col.setup() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:00 super().setup() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:00 self._request._fillfixtures() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:00 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:00 fixturedef = self._get_active_fixturedef(argname) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:00 fixturedef.execute(request=subrequest) 15:55:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:00 15:55:00 self = 15:55:00 request = > 15:55:00 15:55:00 def execute(self, request: SubRequest) -> FixtureValue: 15:55:00 """Return the value of this fixture, executing it if not cached.""" 15:55:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:00 # This needs to be done before checking if we have a cached value, since 15:55:00 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:00 # parametrization, they finalize themselves and fixtures depending on it 15:55:00 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:00 # See #4871 15:55:00 requested_fixtures_that_should_finalize_us = [] 15:55:00 for argname in self.argnames: 15:55:00 fixturedef = request._get_active_fixturedef(argname) 15:55:00 # Saves requested fixtures in a list so we later can add our finalizer 15:55:00 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:00 # down first. This is generally handled by SetupState, but still currently 15:55:00 # needed when this fixture is not parametrized but depends on a parametrized 15:55:00 # fixture. 15:55:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:00 15:55:00 # Check for (and return) cached value/exception. 15:55:00 if self.cached_result is not None: 15:55:00 request_cache_key = self.cache_key(request) 15:55:00 cache_key = self.cached_result[1] 15:55:00 try: 15:55:00 # Attempt to make a normal == check: this might fail for objects 15:55:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:00 cache_hit = bool(request_cache_key == cache_key) 15:55:00 except (ValueError, RuntimeError): 15:55:00 # If the comparison raises, use 'is' as fallback. 15:55:00 cache_hit = request_cache_key is cache_key 15:55:00 15:55:00 if cache_hit: 15:55:00 if self.cached_result[2] is not None: 15:55:00 exc, exc_tb = self.cached_result[2] 15:55:00 raise exc.with_traceback(exc_tb) 15:55:00 else: 15:55:00 return self.cached_result[0] 15:55:00 # We have a previous but differently parametrized fixture instance 15:55:00 # so we need to tear it down before creating a new one. 15:55:00 self.finish(request) 15:55:00 assert self.cached_result is None 15:55:00 15:55:00 # Add finalizer to requested fixtures we saved previously. 15:55:00 # We make sure to do this after checking for cached value to avoid 15:55:00 # adding our finalizer multiple times. (#12135) 15:55:00 finalizer = functools.partial(self.finish, request=request) 15:55:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:00 parent_fixture.addfinalizer(finalizer) 15:55:00 15:55:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:00 # which is executed last. 15:55:00 > assert not self._finalizers 15:55:00 ^^^^^^^^^^^^^^^^^^^^ 15:55:00 E AssertionError 15:55:00 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:00 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 15:55:00 15:55:00 cls = 15:55:00 func = . at 0x7f17f30e8900> 15:55:00 when = 'setup' 15:55:00 reraise = (, ) 15:55:00 15:55:00 @classmethod 15:55:00 def from_call( 15:55:00 cls, 15:55:00 func: Callable[[], TResult], 15:55:00 when: Literal["collect", "setup", "call", "teardown"], 15:55:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:00 ) -> CallInfo[TResult]: 15:55:00 """Call func, wrapping the result in a CallInfo. 15:55:00 15:55:00 :param func: 15:55:00 The function to call. Called without arguments. 15:55:00 :type func: Callable[[], _pytest.runner.TResult] 15:55:00 :param when: 15:55:00 The phase in which the function is called. 15:55:00 :param reraise: 15:55:00 Exception or exceptions that shall propagate if raised by the 15:55:00 function, instead of being wrapped in the CallInfo. 15:55:00 """ 15:55:00 excinfo = None 15:55:00 instant = timing.Instant() 15:55:00 try: 15:55:00 > result: TResult | None = func() 15:55:00 ^^^^^^ 15:55:00 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:00 lambda: runtest_hook(item=item, **kwds), 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:00 yield 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:00 return (yield) 15:55:00 ^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:00 item.session._setupstate.setup(item) 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:00 col.setup() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:00 super().setup() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:00 self._request._fillfixtures() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:00 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:00 fixturedef = self._get_active_fixturedef(argname) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:00 fixturedef.execute(request=subrequest) 15:55:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:00 15:55:00 self = 15:55:00 request = > 15:55:00 15:55:00 def execute(self, request: SubRequest) -> FixtureValue: 15:55:00 """Return the value of this fixture, executing it if not cached.""" 15:55:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:00 # This needs to be done before checking if we have a cached value, since 15:55:00 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:00 # parametrization, they finalize themselves and fixtures depending on it 15:55:00 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:00 # See #4871 15:55:00 requested_fixtures_that_should_finalize_us = [] 15:55:00 for argname in self.argnames: 15:55:00 fixturedef = request._get_active_fixturedef(argname) 15:55:00 # Saves requested fixtures in a list so we later can add our finalizer 15:55:00 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:00 # down first. This is generally handled by SetupState, but still currently 15:55:00 # needed when this fixture is not parametrized but depends on a parametrized 15:55:00 # fixture. 15:55:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:00 15:55:00 # Check for (and return) cached value/exception. 15:55:00 if self.cached_result is not None: 15:55:00 request_cache_key = self.cache_key(request) 15:55:00 cache_key = self.cached_result[1] 15:55:00 try: 15:55:00 # Attempt to make a normal == check: this might fail for objects 15:55:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:00 cache_hit = bool(request_cache_key == cache_key) 15:55:00 except (ValueError, RuntimeError): 15:55:00 # If the comparison raises, use 'is' as fallback. 15:55:00 cache_hit = request_cache_key is cache_key 15:55:00 15:55:00 if cache_hit: 15:55:00 if self.cached_result[2] is not None: 15:55:00 exc, exc_tb = self.cached_result[2] 15:55:00 raise exc.with_traceback(exc_tb) 15:55:00 else: 15:55:00 return self.cached_result[0] 15:55:00 # We have a previous but differently parametrized fixture instance 15:55:00 # so we need to tear it down before creating a new one. 15:55:00 self.finish(request) 15:55:00 assert self.cached_result is None 15:55:00 15:55:00 # Add finalizer to requested fixtures we saved previously. 15:55:00 # We make sure to do this after checking for cached value to avoid 15:55:00 # adding our finalizer multiple times. (#12135) 15:55:00 finalizer = functools.partial(self.finish, request=request) 15:55:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:00 parent_fixture.addfinalizer(finalizer) 15:55:00 15:55:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:00 # which is executed last. 15:55:00 > assert not self._finalizers 15:55:00 ^^^^^^^^^^^^^^^^^^^^ 15:55:00 E AssertionError 15:55:00 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:00 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 15:55:00 15:55:00 cls = 15:55:00 func = . at 0x7f17f30eb6a0> 15:55:00 when = 'setup' 15:55:00 reraise = (, ) 15:55:00 15:55:00 @classmethod 15:55:00 def from_call( 15:55:00 cls, 15:55:00 func: Callable[[], TResult], 15:55:00 when: Literal["collect", "setup", "call", "teardown"], 15:55:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:00 ) -> CallInfo[TResult]: 15:55:00 """Call func, wrapping the result in a CallInfo. 15:55:00 15:55:00 :param func: 15:55:00 The function to call. Called without arguments. 15:55:00 :type func: Callable[[], _pytest.runner.TResult] 15:55:00 :param when: 15:55:00 The phase in which the function is called. 15:55:00 :param reraise: 15:55:00 Exception or exceptions that shall propagate if raised by the 15:55:00 function, instead of being wrapped in the CallInfo. 15:55:00 """ 15:55:00 excinfo = None 15:55:00 instant = timing.Instant() 15:55:00 try: 15:55:00 > result: TResult | None = func() 15:55:00 ^^^^^^ 15:55:00 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:00 lambda: runtest_hook(item=item, **kwds), 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:00 yield 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:00 return (yield) 15:55:00 ^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:00 item.session._setupstate.setup(item) 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:00 col.setup() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:00 super().setup() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:00 self._request._fillfixtures() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:00 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:00 fixturedef = self._get_active_fixturedef(argname) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:00 fixturedef.execute(request=subrequest) 15:55:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:00 15:55:00 self = 15:55:00 request = > 15:55:00 15:55:00 def execute(self, request: SubRequest) -> FixtureValue: 15:55:00 """Return the value of this fixture, executing it if not cached.""" 15:55:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:00 # This needs to be done before checking if we have a cached value, since 15:55:00 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:00 # parametrization, they finalize themselves and fixtures depending on it 15:55:00 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:00 # See #4871 15:55:00 requested_fixtures_that_should_finalize_us = [] 15:55:00 for argname in self.argnames: 15:55:00 fixturedef = request._get_active_fixturedef(argname) 15:55:00 # Saves requested fixtures in a list so we later can add our finalizer 15:55:00 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:00 # down first. This is generally handled by SetupState, but still currently 15:55:00 # needed when this fixture is not parametrized but depends on a parametrized 15:55:00 # fixture. 15:55:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:00 15:55:00 # Check for (and return) cached value/exception. 15:55:00 if self.cached_result is not None: 15:55:00 request_cache_key = self.cache_key(request) 15:55:00 cache_key = self.cached_result[1] 15:55:00 try: 15:55:00 # Attempt to make a normal == check: this might fail for objects 15:55:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:00 cache_hit = bool(request_cache_key == cache_key) 15:55:00 except (ValueError, RuntimeError): 15:55:00 # If the comparison raises, use 'is' as fallback. 15:55:00 cache_hit = request_cache_key is cache_key 15:55:00 15:55:00 if cache_hit: 15:55:00 if self.cached_result[2] is not None: 15:55:00 exc, exc_tb = self.cached_result[2] 15:55:00 raise exc.with_traceback(exc_tb) 15:55:00 else: 15:55:00 return self.cached_result[0] 15:55:00 # We have a previous but differently parametrized fixture instance 15:55:00 # so we need to tear it down before creating a new one. 15:55:00 self.finish(request) 15:55:00 assert self.cached_result is None 15:55:00 15:55:00 # Add finalizer to requested fixtures we saved previously. 15:55:00 # We make sure to do this after checking for cached value to avoid 15:55:00 # adding our finalizer multiple times. (#12135) 15:55:00 finalizer = functools.partial(self.finish, request=request) 15:55:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:00 parent_fixture.addfinalizer(finalizer) 15:55:00 15:55:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:00 # which is executed last. 15:55:00 > assert not self._finalizers 15:55:00 ^^^^^^^^^^^^^^^^^^^^ 15:55:00 E AssertionError 15:55:00 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:00 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 15:55:00 15:55:00 cls = 15:55:00 func = . at 0x7f17f30eb7e0> 15:55:00 when = 'setup' 15:55:00 reraise = (, ) 15:55:00 15:55:00 @classmethod 15:55:00 def from_call( 15:55:00 cls, 15:55:00 func: Callable[[], TResult], 15:55:00 when: Literal["collect", "setup", "call", "teardown"], 15:55:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:00 ) -> CallInfo[TResult]: 15:55:00 """Call func, wrapping the result in a CallInfo. 15:55:00 15:55:00 :param func: 15:55:00 The function to call. Called without arguments. 15:55:00 :type func: Callable[[], _pytest.runner.TResult] 15:55:00 :param when: 15:55:00 The phase in which the function is called. 15:55:00 :param reraise: 15:55:00 Exception or exceptions that shall propagate if raised by the 15:55:00 function, instead of being wrapped in the CallInfo. 15:55:00 """ 15:55:00 excinfo = None 15:55:00 instant = timing.Instant() 15:55:00 try: 15:55:00 > result: TResult | None = func() 15:55:00 ^^^^^^ 15:55:00 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:00 lambda: runtest_hook(item=item, **kwds), 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:00 yield 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:00 return (yield) 15:55:00 ^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:00 item.session._setupstate.setup(item) 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:00 col.setup() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:00 super().setup() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:00 self._request._fillfixtures() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:00 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:00 fixturedef = self._get_active_fixturedef(argname) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:00 fixturedef.execute(request=subrequest) 15:55:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:00 15:55:00 self = 15:55:00 request = > 15:55:00 15:55:00 def execute(self, request: SubRequest) -> FixtureValue: 15:55:00 """Return the value of this fixture, executing it if not cached.""" 15:55:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:00 # This needs to be done before checking if we have a cached value, since 15:55:00 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:00 # parametrization, they finalize themselves and fixtures depending on it 15:55:00 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:00 # See #4871 15:55:00 requested_fixtures_that_should_finalize_us = [] 15:55:00 for argname in self.argnames: 15:55:00 fixturedef = request._get_active_fixturedef(argname) 15:55:00 # Saves requested fixtures in a list so we later can add our finalizer 15:55:00 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:00 # down first. This is generally handled by SetupState, but still currently 15:55:00 # needed when this fixture is not parametrized but depends on a parametrized 15:55:00 # fixture. 15:55:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:00 15:55:00 # Check for (and return) cached value/exception. 15:55:00 if self.cached_result is not None: 15:55:00 request_cache_key = self.cache_key(request) 15:55:00 cache_key = self.cached_result[1] 15:55:00 try: 15:55:00 # Attempt to make a normal == check: this might fail for objects 15:55:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:00 cache_hit = bool(request_cache_key == cache_key) 15:55:00 except (ValueError, RuntimeError): 15:55:00 # If the comparison raises, use 'is' as fallback. 15:55:00 cache_hit = request_cache_key is cache_key 15:55:00 15:55:00 if cache_hit: 15:55:00 if self.cached_result[2] is not None: 15:55:00 exc, exc_tb = self.cached_result[2] 15:55:00 raise exc.with_traceback(exc_tb) 15:55:00 else: 15:55:00 return self.cached_result[0] 15:55:00 # We have a previous but differently parametrized fixture instance 15:55:00 # so we need to tear it down before creating a new one. 15:55:00 self.finish(request) 15:55:00 assert self.cached_result is None 15:55:00 15:55:00 # Add finalizer to requested fixtures we saved previously. 15:55:00 # We make sure to do this after checking for cached value to avoid 15:55:00 # adding our finalizer multiple times. (#12135) 15:55:00 finalizer = functools.partial(self.finish, request=request) 15:55:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:00 parent_fixture.addfinalizer(finalizer) 15:55:00 15:55:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:00 # which is executed last. 15:55:00 > assert not self._finalizers 15:55:00 ^^^^^^^^^^^^^^^^^^^^ 15:55:00 E AssertionError 15:55:00 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:00 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 15:55:00 15:55:00 cls = 15:55:00 func = . at 0x7f17f30e8900> 15:55:00 when = 'setup' 15:55:00 reraise = (, ) 15:55:00 15:55:00 @classmethod 15:55:00 def from_call( 15:55:00 cls, 15:55:00 func: Callable[[], TResult], 15:55:00 when: Literal["collect", "setup", "call", "teardown"], 15:55:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:00 ) -> CallInfo[TResult]: 15:55:00 """Call func, wrapping the result in a CallInfo. 15:55:00 15:55:00 :param func: 15:55:00 The function to call. Called without arguments. 15:55:00 :type func: Callable[[], _pytest.runner.TResult] 15:55:00 :param when: 15:55:00 The phase in which the function is called. 15:55:00 :param reraise: 15:55:00 Exception or exceptions that shall propagate if raised by the 15:55:00 function, instead of being wrapped in the CallInfo. 15:55:00 """ 15:55:00 excinfo = None 15:55:00 instant = timing.Instant() 15:55:00 try: 15:55:00 > result: TResult | None = func() 15:55:00 ^^^^^^ 15:55:00 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:00 lambda: runtest_hook(item=item, **kwds), 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:00 yield 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:00 return (yield) 15:55:00 ^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:00 item.session._setupstate.setup(item) 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:00 col.setup() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:00 super().setup() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:00 self._request._fillfixtures() 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:00 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:00 fixturedef = self._get_active_fixturedef(argname) 15:55:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:00 fixturedef.execute(request=subrequest) 15:55:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:00 15:55:00 self = 15:55:00 request = > 15:55:00 15:55:00 def execute(self, request: SubRequest) -> FixtureValue: 15:55:00 """Return the value of this fixture, executing it if not cached.""" 15:55:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:00 # This needs to be done before checking if we have a cached value, since 15:55:00 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:00 # parametrization, they finalize themselves and fixtures depending on it 15:55:00 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:00 # See #4871 15:55:00 requested_fixtures_that_should_finalize_us = [] 15:55:00 for argname in self.argnames: 15:55:00 fixturedef = request._get_active_fixturedef(argname) 15:55:00 # Saves requested fixtures in a list so we later can add our finalizer 15:55:00 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:00 # down first. This is generally handled by SetupState, but still currently 15:55:00 # needed when this fixture is not parametrized but depends on a parametrized 15:55:00 # fixture. 15:55:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:00 15:55:00 # Check for (and return) cached value/exception. 15:55:00 if self.cached_result is not None: 15:55:00 request_cache_key = self.cache_key(request) 15:55:00 cache_key = self.cached_result[1] 15:55:00 try: 15:55:00 # Attempt to make a normal == check: this might fail for objects 15:55:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:00 cache_hit = bool(request_cache_key == cache_key) 15:55:00 except (ValueError, RuntimeError): 15:55:00 # If the comparison raises, use 'is' as fallback. 15:55:00 cache_hit = request_cache_key is cache_key 15:55:00 15:55:00 if cache_hit: 15:55:00 if self.cached_result[2] is not None: 15:55:00 exc, exc_tb = self.cached_result[2] 15:55:00 raise exc.with_traceback(exc_tb) 15:55:00 else: 15:55:00 return self.cached_result[0] 15:55:00 # We have a previous but differently parametrized fixture instance 15:55:00 # so we need to tear it down before creating a new one. 15:55:00 self.finish(request) 15:55:00 assert self.cached_result is None 15:55:00 15:55:00 # Add finalizer to requested fixtures we saved previously. 15:55:00 # We make sure to do this after checking for cached value to avoid 15:55:00 # adding our finalizer multiple times. (#12135) 15:55:00 finalizer = functools.partial(self.finish, request=request) 15:55:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:00 parent_fixture.addfinalizer(finalizer) 15:55:00 15:55:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:00 # which is executed last. 15:55:00 > assert not self._finalizers 15:55:00 ^^^^^^^^^^^^^^^^^^^^ 15:55:00 E AssertionError 15:55:00 15:55:00 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:00 =========================== short test summary info ============================ 15:55:00 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 15:55:00 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 15:55:00 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 15:55:00 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 15:55:00 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 15:55:00 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 15:55:00 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 15:55:00 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 15:55:00 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 15:55:00 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 15:55:00 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 15:55:00 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 15:55:00 12 errors in 102.25s (0:01:42) 15:55:00 tests71: exit 1 (102.53 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 pid=4523 15:55:02 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 15:55:11 ==================================== ERRORS ==================================== 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 15:55:11 15:55:11 cls = 15:55:11 15:55:11 @classmethod 15:55:11 def setUpClass(cls): 15:55:11 > cls.processes = test_utils.start_tpce() 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 15:55:11 transportpce_tests/hybrid/test01_device_change_notifications.py:76: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 def start_tpce(): 15:55:11 if 'NO_ODL_STARTUP' in os.environ: 15:55:11 print('No OpenDaylight instance to start!') 15:55:11 return [] 15:55:11 print('starting OpenDaylight...') 15:55:11 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:55:11 process = start_lighty() 15:55:11 else: 15:55:11 process = start_karaf() 15:55:11 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:55:11 print('OpenDaylight started !') 15:55:11 else: 15:55:11 print('OpenDaylight failed to start !') 15:55:11 shutdown_process(process) 15:55:11 for pid in process_list: 15:55:11 shutdown_process(pid) 15:55:11 > sys.exit(1) 15:55:11 E SystemExit: 1 15:55:11 15:55:11 transportpce_tests/common/test_utils.py:234: SystemExit 15:55:11 ---------------------------- Captured stdout setup ----------------------------- 15:55:11 starting OpenDaylight... 15:55:11 starting KARAF (karaf221) TransportPCE build... 15:55:11 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2156d6ca0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd21572be20> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd217dbef20> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2156d5080> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2156d4f40> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2156d6ca0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd217dbef20> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd21572a5c0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd21572a840> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2156d6ca0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2150ed940> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd21572ab60> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2156d6ca0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2150edda0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2156d59e0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2156d5580> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2150edda0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2156d5580> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2156d59e0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2156d5580> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2156d59e0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2150ee0c0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2156d59e0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2150ee0c0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2150ed440> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2156d59e0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2150ed940> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2150eda80> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2156d59e0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2150ed760> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2150ec900> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2156d59e0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2150ece00> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2150ec900> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2156d59e0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2150ec9a0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2156d59e0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2150ed120> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2150ecfe0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2156d59e0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2150ecfe0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2150eea20> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2156d59e0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2150ed1c0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2150ed3a0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2156d59e0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2150ec9a0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2150ee5c0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2156d59e0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 15:55:11 15:55:11 cls = 15:55:11 func = . at 0x7fd2150ee2a0> 15:55:11 when = 'setup' 15:55:11 reraise = (, ) 15:55:11 15:55:11 @classmethod 15:55:11 def from_call( 15:55:11 cls, 15:55:11 func: Callable[[], TResult], 15:55:11 when: Literal["collect", "setup", "call", "teardown"], 15:55:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:11 ) -> CallInfo[TResult]: 15:55:11 """Call func, wrapping the result in a CallInfo. 15:55:11 15:55:11 :param func: 15:55:11 The function to call. Called without arguments. 15:55:11 :type func: Callable[[], _pytest.runner.TResult] 15:55:11 :param when: 15:55:11 The phase in which the function is called. 15:55:11 :param reraise: 15:55:11 Exception or exceptions that shall propagate if raised by the 15:55:11 function, instead of being wrapped in the CallInfo. 15:55:11 """ 15:55:11 excinfo = None 15:55:11 instant = timing.Instant() 15:55:11 try: 15:55:11 > result: TResult | None = func() 15:55:11 ^^^^^^ 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:11 lambda: runtest_hook(item=item, **kwds), 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:11 yield 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:11 return (yield) 15:55:11 ^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:11 item.session._setupstate.setup(item) 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:11 col.setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:11 super().setup() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:11 self._request._fillfixtures() 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:11 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:11 fixturedef = self._get_active_fixturedef(argname) 15:55:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:11 fixturedef.execute(request=subrequest) 15:55:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:11 15:55:11 self = 15:55:11 request = > 15:55:11 15:55:11 def execute(self, request: SubRequest) -> FixtureValue: 15:55:11 """Return the value of this fixture, executing it if not cached.""" 15:55:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:11 # This needs to be done before checking if we have a cached value, since 15:55:11 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:11 # parametrization, they finalize themselves and fixtures depending on it 15:55:11 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:11 # See #4871 15:55:11 requested_fixtures_that_should_finalize_us = [] 15:55:11 for argname in self.argnames: 15:55:11 fixturedef = request._get_active_fixturedef(argname) 15:55:11 # Saves requested fixtures in a list so we later can add our finalizer 15:55:11 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:11 # down first. This is generally handled by SetupState, but still currently 15:55:11 # needed when this fixture is not parametrized but depends on a parametrized 15:55:11 # fixture. 15:55:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:11 15:55:11 # Check for (and return) cached value/exception. 15:55:11 if self.cached_result is not None: 15:55:11 request_cache_key = self.cache_key(request) 15:55:11 cache_key = self.cached_result[1] 15:55:11 try: 15:55:11 # Attempt to make a normal == check: this might fail for objects 15:55:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:11 cache_hit = bool(request_cache_key == cache_key) 15:55:11 except (ValueError, RuntimeError): 15:55:11 # If the comparison raises, use 'is' as fallback. 15:55:11 cache_hit = request_cache_key is cache_key 15:55:11 15:55:11 if cache_hit: 15:55:11 if self.cached_result[2] is not None: 15:55:11 exc, exc_tb = self.cached_result[2] 15:55:11 raise exc.with_traceback(exc_tb) 15:55:11 else: 15:55:11 return self.cached_result[0] 15:55:11 # We have a previous but differently parametrized fixture instance 15:55:11 # so we need to tear it down before creating a new one. 15:55:11 self.finish(request) 15:55:11 assert self.cached_result is None 15:55:11 15:55:11 # Add finalizer to requested fixtures we saved previously. 15:55:11 # We make sure to do this after checking for cached value to avoid 15:55:11 # adding our finalizer multiple times. (#12135) 15:55:11 finalizer = functools.partial(self.finish, request=request) 15:55:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:11 parent_fixture.addfinalizer(finalizer) 15:55:11 15:55:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:11 # which is executed last. 15:55:11 > assert not self._finalizers 15:55:11 ^^^^^^^^^^^^^^^^^^^^ 15:55:11 E AssertionError 15:55:11 15:55:11 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:11 =========================== short test summary info ============================ 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 15:55:11 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 15:55:11 51 errors in 109.28s (0:01:49) 15:55:11 tests71: FAIL ✖ in 1 minute 48.75 seconds 15:55:11 tests_hybrid: exit 1 (109.59 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid pid=4539 15:55:11 buildcontroller: FAIL code 1 (8.96=setup[8.13]+cmd[0.82] seconds) 15:55:11 sims: OK (46.53=setup[6.83]+cmd[39.70] seconds) 15:55:11 testsPCE: FAIL code 1 (172.69=setup[48.66]+cmd[124.02] seconds) 15:55:11 build_karaf_tests221: FAIL code 127 (6.87=setup[6.86]+cmd[0.00] seconds) 15:55:11 tests_tapi: FAIL code 1 (116.34=setup[6.35]+cmd[109.99] seconds) 15:55:11 tests221: FAIL code 1 (113.22=setup[6.60]+cmd[106.62] seconds) 15:55:11 build_karaf_tests71: FAIL code 127 (6.72=setup[6.72]+cmd[0.00] seconds) 15:55:11 tests71: FAIL code 1 (108.75=setup[6.22]+cmd[102.53] seconds) 15:55:11 build_karaf_tests200: FAIL code 127 (6.72=setup[6.71]+cmd[0.00] seconds) 15:55:11 tests200: FAIL code 1 (108.73=setup[6.54]+cmd[102.19] seconds) 15:55:11 tests_hybrid: FAIL code 1 (115.90=setup[6.31]+cmd[109.59] seconds) 15:55:11 buildlighty: FAIL code 9 (6.60=setup[6.59]+cmd[0.01] seconds) 15:55:11 docs: OK (18.44=setup[15.70]+cmd[2.74] seconds) 15:55:11 docs-linkcheck: OK (19.26=setup[15.87]+cmd[3.39] seconds) 15:55:11 checkbashisms: OK (3.12=setup[1.94]+cmd[0.00,0.05,1.14] seconds) 15:55:11 pre-commit: OK (60.15=setup[2.99]+cmd[0.01,0.01,47.98,9.17] seconds) 15:55:11 pylint: FAIL code 1 (22.24=setup[3.28]+cmd[18.96] seconds) 15:55:11 evaluation failed :( (550.23 seconds) 15:55:11 + tox_status=1 15:55:11 + echo '---> Completed tox runs' 15:55:11 ---> Completed tox runs 15:55:11 + for i in .tox/*/log 15:55:11 ++ awk -F/ '{print $2}' 15:55:11 ++ echo .tox/build_karaf_tests200/log 15:55:11 + tox_env=build_karaf_tests200 15:55:11 + cp -r .tox/build_karaf_tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests200 15:55:11 + for i in .tox/*/log 15:55:11 ++ echo .tox/build_karaf_tests221/log 15:55:11 ++ awk -F/ '{print $2}' 15:55:11 + tox_env=build_karaf_tests221 15:55:11 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests221 15:55:11 + for i in .tox/*/log 15:55:11 ++ echo .tox/build_karaf_tests71/log 15:55:11 ++ awk -F/ '{print $2}' 15:55:11 + tox_env=build_karaf_tests71 15:55:11 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests71 15:55:11 + for i in .tox/*/log 15:55:11 ++ echo .tox/buildcontroller/log 15:55:11 ++ awk -F/ '{print $2}' 15:55:11 + tox_env=buildcontroller 15:55:11 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildcontroller 15:55:11 + for i in .tox/*/log 15:55:11 ++ awk -F/ '{print $2}' 15:55:11 ++ echo .tox/buildlighty/log 15:55:11 + tox_env=buildlighty 15:55:11 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildlighty 15:55:11 + for i in .tox/*/log 15:55:11 ++ echo .tox/checkbashisms/log 15:55:11 ++ awk -F/ '{print $2}' 15:55:11 + tox_env=checkbashisms 15:55:11 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/checkbashisms 15:55:11 + for i in .tox/*/log 15:55:11 ++ awk -F/ '{print $2}' 15:55:11 ++ echo .tox/docs-linkcheck/log 15:55:11 + tox_env=docs-linkcheck 15:55:11 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs-linkcheck 15:55:11 + for i in .tox/*/log 15:55:11 ++ echo .tox/docs/log 15:55:11 ++ awk -F/ '{print $2}' 15:55:11 + tox_env=docs 15:55:11 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs 15:55:11 + for i in .tox/*/log 15:55:11 ++ echo .tox/pre-commit/log 15:55:11 ++ awk -F/ '{print $2}' 15:55:11 + tox_env=pre-commit 15:55:11 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pre-commit 15:55:11 + for i in .tox/*/log 15:55:11 ++ echo .tox/pylint/log 15:55:11 ++ awk -F/ '{print $2}' 15:55:11 + tox_env=pylint 15:55:11 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pylint 15:55:11 + for i in .tox/*/log 15:55:11 ++ echo .tox/sims/log 15:55:11 ++ awk -F/ '{print $2}' 15:55:11 + tox_env=sims 15:55:11 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/sims 15:55:11 + for i in .tox/*/log 15:55:11 ++ echo .tox/tests200/log 15:55:11 ++ awk -F/ '{print $2}' 15:55:11 + tox_env=tests200 15:55:11 + cp -r .tox/tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests200 15:55:12 + for i in .tox/*/log 15:55:12 ++ echo .tox/tests221/log 15:55:12 ++ awk -F/ '{print $2}' 15:55:12 + tox_env=tests221 15:55:12 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests221 15:55:12 + for i in .tox/*/log 15:55:12 ++ echo .tox/tests71/log 15:55:12 ++ awk -F/ '{print $2}' 15:55:12 + tox_env=tests71 15:55:12 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests71 15:55:12 + for i in .tox/*/log 15:55:12 ++ echo .tox/testsPCE/log 15:55:12 ++ awk -F/ '{print $2}' 15:55:12 + tox_env=testsPCE 15:55:12 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/testsPCE 15:55:12 + for i in .tox/*/log 15:55:12 ++ echo .tox/tests_hybrid/log 15:55:12 ++ awk -F/ '{print $2}' 15:55:12 + tox_env=tests_hybrid 15:55:12 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_hybrid 15:55:12 + for i in .tox/*/log 15:55:12 ++ echo .tox/tests_tapi/log 15:55:12 ++ awk -F/ '{print $2}' 15:55:12 + tox_env=tests_tapi 15:55:12 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_tapi 15:55:12 + DOC_DIR=docs/_build/html 15:55:12 + [[ -d docs/_build/html ]] 15:55:12 + echo '---> Archiving generated docs' 15:55:12 ---> Archiving generated docs 15:55:12 + mv docs/_build/html /w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 15:55:12 + echo '---> tox-run.sh ends' 15:55:12 ---> tox-run.sh ends 15:55:12 + test 1 -eq 0 15:55:12 + exit 1 15:55:12 ++ '[' 1 = 1 ']' 15:55:12 ++ '[' -x /usr/bin/clear_console ']' 15:55:12 ++ /usr/bin/clear_console -q 15:55:12 Build step 'Execute shell' marked build as failure 15:55:12 $ ssh-agent -k 15:55:12 unset SSH_AUTH_SOCK; 15:55:12 unset SSH_AGENT_PID; 15:55:12 echo Agent pid 1570 killed; 15:55:12 [ssh-agent] Stopped. 15:55:12 [PostBuildScript] - [INFO] Executing post build scripts. 15:55:12 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins7138372710543316350.sh 15:55:12 ---> sysstat.sh 15:55:12 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins6360979639272581881.sh 15:55:12 ---> package-listing.sh 15:55:12 + '[' -f /etc/os-release ']' 15:55:12 + . /etc/os-release 15:55:12 ++ PRETTY_NAME='Ubuntu 22.04.5 LTS' 15:55:12 ++ NAME=Ubuntu 15:55:12 ++ VERSION_ID=22.04 15:55:12 ++ VERSION='22.04.5 LTS (Jammy Jellyfish)' 15:55:12 ++ VERSION_CODENAME=jammy 15:55:12 ++ ID=ubuntu 15:55:12 ++ ID_LIKE=debian 15:55:12 ++ HOME_URL=https://www.ubuntu.com/ 15:55:12 ++ SUPPORT_URL=https://help.ubuntu.com/ 15:55:12 ++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/ 15:55:12 ++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy 15:55:12 ++ UBUNTU_CODENAME=jammy 15:55:12 + case " ${ID:-} ${ID_LIKE:-} " in 15:55:12 + OS_FAMILY=debian 15:55:12 + workspace=/w/workspace/transportpce-tox-verify-transportpce-master 15:55:12 + START_PACKAGES=/tmp/packages_start.txt 15:55:12 + END_PACKAGES=/tmp/packages_end.txt 15:55:12 + DIFF_PACKAGES=/tmp/packages_diff.txt 15:55:12 + PACKAGES=/tmp/packages_start.txt 15:55:12 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 15:55:12 + PACKAGES=/tmp/packages_end.txt 15:55:12 + case "${OS_FAMILY}" in 15:55:12 + dpkg -l 15:55:12 + grep '^ii' 15:55:12 + '[' -f /tmp/packages_start.txt ']' 15:55:12 + '[' -f /tmp/packages_end.txt ']' 15:55:12 + diff /tmp/packages_start.txt /tmp/packages_end.txt 15:55:12 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 15:55:12 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 15:55:12 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 15:55:12 + exit 0 15:55:12 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins8715639949859054787.sh 15:55:12 ---> capture-instance-metadata.sh 15:55:12 Setup pyenv: 15:55:12 system 15:55:12 3.8.20 15:55:12 3.9.20 15:55:12 3.10.15 15:55:12 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:55:12 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-dcDJ from file:/tmp/.os_lf_venv 15:55:12 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:55:14 lf-activate-venv(): INFO: Installing additional packages: lftools 15:55:23 lf-activate-venv(): INFO: Adding /tmp/venv-dcDJ/bin to PATH 15:55:23 INFO: Running in OpenStack, capturing instance metadata 15:55:24 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins7920829225521296826.sh 15:55:24 provisioning config files... 15:55:25 Could not find credentials [logs] for transportpce-tox-verify-transportpce-master #6133 15:55:25 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-transportpce-master@tmp/config1057686989686050727tmp 15:55:25 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 15:55:25 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 15:55:25 provisioning config files... 15:55:25 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 15:55:25 [EnvInject] - Injecting environment variables from a build step. 15:55:25 [EnvInject] - Injecting as environment variables the properties content 15:55:25 SERVER_ID=logs 15:55:25 15:55:25 [EnvInject] - Variables injected successfully. 15:55:25 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins10842007777302749309.sh 15:55:25 ---> create-netrc.sh 15:55:25 WARN: Log server credential not found. 15:55:25 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins15269094378949290586.sh 15:55:25 ---> python-tools-install.sh 15:55:25 Setup pyenv: 15:55:25 system 15:55:25 3.8.20 15:55:25 3.9.20 15:55:25 3.10.15 15:55:25 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:55:25 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-dcDJ from file:/tmp/.os_lf_venv 15:55:25 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:55:27 lf-activate-venv(): INFO: Installing additional packages: lftools 15:55:36 lf-activate-venv(): INFO: Adding /tmp/venv-dcDJ/bin to PATH 15:55:36 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins14301145169410965954.sh 15:55:36 ---> uv-install.sh 15:55:36 uv 0.12.23 is already installed 15:55:36 uvx 0.12.23 (x86_64-unknown-linux-gnu) 15:55:36 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins3087185240682734766.sh 15:55:36 ---> sudo-logs.sh 15:55:36 Archiving 'sudo' log.. 15:55:36 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins15922187528289183640.sh 15:55:36 ---> job-cost.sh 15:55:36 INFO: Activating Python virtual environment... 15:55:36 Setup pyenv: 15:55:36 system 15:55:36 3.8.20 15:55:36 3.9.20 15:55:36 3.10.15 15:55:36 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:55:36 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-dcDJ from file:/tmp/.os_lf_venv 15:55:36 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:55:38 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 15:55:44 lf-activate-venv(): INFO: Adding /tmp/venv-dcDJ/bin to PATH 15:55:44 INFO: No stack-cost file found 15:55:44 INFO: Instance uptime: 719s 15:55:44 INFO: Fetching instance metadata (attempt 1 of 3)... 15:55:44 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 15:55:44 INFO: Successfully fetched instance metadata 15:55:44 INFO: Instance type: v3-standard-4 15:55:44 INFO: Retrieving pricing info for: v3-standard-4 15:55:44 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 15:55:44 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=719 15:55:44 INFO: Successfully fetched Vexxhost pricing API 15:55:45 INFO: Retrieved cost: 0.11 15:55:45 INFO: Retrieved resource: v3-standard-4 15:55:45 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost 15:55:45 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost.csv 15:55:45 INFO: Successfully archived job cost data 15:55:45 DEBUG: Cost data: transportpce-tox-verify-transportpce-master,6133,2026-10-06 15:55:45,v3-standard-4,719,0.11,0.00,FAILURE 15:55:45 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins1083969400771239200.sh 15:55:45 ---> logs-deploy.sh 15:55:45 Setup pyenv: 15:55:45 system 15:55:45 3.8.20 15:55:45 3.9.20 15:55:45 3.10.15 15:55:45 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:55:45 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-dcDJ from file:/tmp/.os_lf_venv 15:55:45 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:55:47 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 15:55:56 lf-activate-venv(): INFO: Adding /tmp/venv-dcDJ/bin to PATH 15:55:56 WARNING: Nexus logging server not set 15:55:56 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-transportpce-master/6133/ 15:55:56 INFO: archiving logs to S3 15:55:57 ---> uname -a: 15:55:57 Linux prd-ubuntu2204-docker-4c-16g-62473 5.15.0-198-generic #208-Ubuntu SMP Fri Sep 4 10:22:38 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 15:55:57 15:55:57 15:55:57 ---> lscpu: 15:55:57 Architecture: x86_64 15:55:57 CPU op-mode(s): 32-bit, 64-bit 15:55:57 Address sizes: 40 bits physical, 48 bits virtual 15:55:57 Byte Order: Little Endian 15:55:57 CPU(s): 4 15:55:57 On-line CPU(s) list: 0-3 15:55:57 Vendor ID: AuthenticAMD 15:55:57 Model name: AMD EPYC-Rome Processor 15:55:57 CPU family: 23 15:55:57 Model: 49 15:55:57 Thread(s) per core: 1 15:55:57 Core(s) per socket: 1 15:55:57 Socket(s): 4 15:55:57 Stepping: 0 15:55:57 BogoMIPS: 5600.00 15:55:57 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 15:55:57 Virtualization: AMD-V 15:55:57 Hypervisor vendor: KVM 15:55:57 Virtualization type: full 15:55:57 L1d cache: 128 KiB (4 instances) 15:55:57 L1i cache: 128 KiB (4 instances) 15:55:57 L2 cache: 2 MiB (4 instances) 15:55:57 L3 cache: 64 MiB (4 instances) 15:55:57 NUMA node(s): 1 15:55:57 NUMA node0 CPU(s): 0-3 15:55:57 Vulnerability Gather data sampling: Not affected 15:55:57 Vulnerability Indirect target selection: Not affected 15:55:57 Vulnerability Itlb multihit: Not affected 15:55:57 Vulnerability L1tf: Not affected 15:55:57 Vulnerability Mds: Not affected 15:55:57 Vulnerability Meltdown: Not affected 15:55:57 Vulnerability Mmio stale data: Not affected 15:55:57 Vulnerability Reg file data sampling: Not affected 15:55:57 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 15:55:57 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 15:55:57 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 15:55:57 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 15:55:57 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 15:55:57 Vulnerability Srbds: Not affected 15:55:57 Vulnerability Tsa: Not affected 15:55:57 Vulnerability Tsx async abort: Not affected 15:55:57 Vulnerability Vmscape: Not affected 15:55:57 15:55:57 15:55:57 ---> nproc: 15:55:57 4 15:55:57 15:55:57 15:55:57 ---> df -h: 15:55:57 Filesystem Size Used Avail Use% Mounted on 15:55:57 tmpfs 1.6G 1.1M 1.6G 1% /run 15:55:57 /dev/vda1 78G 11G 67G 14% / 15:55:57 tmpfs 7.9G 0 7.9G 0% /dev/shm 15:55:57 tmpfs 5.0M 0 5.0M 0% /run/lock 15:55:57 /dev/vda15 105M 6.1M 99M 6% /boot/efi 15:55:57 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 15:55:57 15:55:57 15:55:57 ---> free -m: 15:55:57 total used free shared buff/cache available 15:55:57 Mem: 15989 690 9873 4 5424 14955 15:55:57 Swap: 1023 0 1023 15:55:57 15:55:57 15:55:57 ---> ip addr: 15:55:57 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 15:55:57 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 15:55:57 inet 127.0.0.1/8 scope host lo 15:55:57 valid_lft forever preferred_lft forever 15:55:57 inet6 ::1/128 scope host 15:55:57 valid_lft forever preferred_lft forever 15:55:57 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 15:55:57 link/ether fa:16:3e:88:9a:42 brd ff:ff:ff:ff:ff:ff 15:55:57 altname enp0s3 15:55:57 inet 10.30.171.236/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 15:55:57 valid_lft 85676sec preferred_lft 85676sec 15:55:57 inet6 fe80::f816:3eff:fe88:9a42/64 scope link 15:55:57 valid_lft forever preferred_lft forever 15:55:57 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 15:55:57 link/ether d2:29:66:a3:c0:53 brd ff:ff:ff:ff:ff:ff 15:55:57 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 15:55:57 valid_lft forever preferred_lft forever 15:55:57 inet6 fe80::d029:66ff:fea3:c053/64 scope link 15:55:57 valid_lft forever preferred_lft forever 15:55:57 15:55:57 15:55:57 ---> sar -b -r -n DEV: 15:55:57 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-62473) 10/06/26 _x86_64_ (4 CPU) 15:55:57 15:55:57 15:43:56 LINUX RESTART (4 CPU) 15:55:57 15:55:57 15:55:57 ---> sar -P ALL: 15:55:57 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-62473) 10/06/26 _x86_64_ (4 CPU) 15:55:57 15:55:57 15:43:56 LINUX RESTART (4 CPU) 15:55:57 15:55:57 15:55:57