16:01:41 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/126154 16:01:41 Running as SYSTEM 16:01:41 [EnvInject] - Loading node environment variables. 16:01:41 Building remotely on prd-ubuntu2204-docker-4c-16g-8215 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-transportpce-master 16:01:41 [ssh-agent] Looking for ssh-agent implementation... 16:01:41 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 16:01:41 $ ssh-agent 16:01:41 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXXLrbRr/agent.1550 16:01:41 SSH_AGENT_PID=1552 16:01:41 [ssh-agent] Started. 16:01:41 Running ssh-add (command line suppressed) 16:01:41 Identity added: /w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_6566732902225433991.key (/w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_6566732902225433991.key) 16:01:41 [ssh-agent] Using credentials jenkins (jenkins-ssh) 16:01:41 The recommended git tool is: NONE 16:01:44 using credential jenkins-ssh 16:01:44 Wiping out workspace first. 16:01:44 Cloning the remote Git repository 16:01:44 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 16:01:44 > git init /w/workspace/transportpce-tox-verify-transportpce-master # timeout=10 16:01:44 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 16:01:44 > git --version # timeout=10 16:01:44 > git --version # 'git version 2.34.1' 16:01:44 using GIT_SSH to set credentials jenkins-ssh 16:01:44 Verifying host key using known hosts file, will automatically accept unseen keys 16:01:44 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 16:01:48 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 16:01:48 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 16:01:48 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 16:01:48 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 16:01:48 using GIT_SSH to set credentials jenkins-ssh 16:01:48 Verifying host key using known hosts file, will automatically accept unseen keys 16:01:48 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/54/126154/1 # timeout=10 16:01:48 > git rev-parse 2f9f00b5397f2d38471552d47dfa7f62d199d82c^{commit} # timeout=10 16:01:48 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script 16:01:48 Checking out Revision 2f9f00b5397f2d38471552d47dfa7f62d199d82c (refs/changes/54/126154/1) 16:01:49 > git config core.sparsecheckout # timeout=10 16:01:49 > git checkout -f 2f9f00b5397f2d38471552d47dfa7f62d199d82c # timeout=10 16:01:49 Commit message: "Bump upstream versions to Manganese GA" 16:01:49 > git rev-parse FETCH_HEAD^{commit} # timeout=10 16:01:49 > git rev-list --no-walk e7da138c8b5751d49f2f1b179c4b029fd24c72f8 # timeout=10 16:01:49 > git remote # timeout=10 16:01:49 > git submodule init # timeout=10 16:01:49 > git submodule sync # timeout=10 16:01:49 > git config --get remote.origin.url # timeout=10 16:01:49 > git submodule init # timeout=10 16:01:49 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 16:01:49 ERROR: No submodules found. 16:01:52 provisioning config files... 16:01:52 copy managed file [npmrc] to file:/home/jenkins/.npmrc 16:01:53 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 16:01:53 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins17080881639096970340.sh 16:01:53 ---> python-tools-install.sh 16:01:53 Setup pyenv: 16:01:53 * system (set by /opt/pyenv/version) 16:01:53 * 3.8.20 (set by /opt/pyenv/version) 16:01:53 * 3.9.20 (set by /opt/pyenv/version) 16:01:53 3.10.15 16:01:53 3.11.10 16:01:57 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-8sZp 16:01:57 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 16:01:57 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:02:02 lf-activate-venv(): INFO: Installing additional packages: lftools 16:02:33 lf-activate-venv(): INFO: Adding /tmp/venv-8sZp/bin to PATH 16:02:33 Generating Requirements File 16:03:02 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. 16:03:02 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 16:03:03 Python 3.11.10 16:03:03 pip 26.2.1 from /tmp/venv-8sZp/lib/python3.11/site-packages/pip (python 3.11) 16:03:04 aiohappyeyeballs==2.7.1 16:03:04 aiohttp==3.14.3 16:03:04 aiosignal==1.4.0 16:03:04 appdirs==1.4.4 16:03:04 argcomplete==3.7.2 16:03:04 aspy.yaml==1.3.0 16:03:04 attrs==26.1.0 16:03:04 autopage==0.6.0 16:03:04 beautifulsoup4==4.15.0 16:03:04 boto3==1.43.93 16:03:04 botocore==1.43.93 16:03:04 bs4==0.0.2 16:03:04 certifi==2026.7.22 16:03:04 cffi==2.1.1 16:03:04 cfgv==3.5.0 16:03:04 chardet==7.6.0 16:03:04 charset-normalizer==3.5.1 16:03:04 click==8.5.0 16:03:04 cliff==4.16.0 16:03:04 cmd2==4.2.4 16:03:04 cryptography==3.3.2 16:03:04 debtcollector==3.1.0 16:03:04 decorator==5.3.1 16:03:04 defusedxml==0.7.1 16:03:04 Deprecated==1.3.1 16:03:04 distlib==0.4.3 16:03:04 dnspython==2.8.0 16:03:04 docker==7.2.0 16:03:04 dogpile.cache==1.5.0 16:03:04 durationpy==0.11 16:03:04 email-validator==2.3.0 16:03:04 filelock==3.32.6 16:03:04 frozenlist==1.8.0 16:03:04 future==1.0.0 16:03:04 gitdb==4.0.12 16:03:04 GitPython==3.1.62 16:03:04 httplib2==0.30.2 16:03:04 identify==2.6.19 16:03:04 idna==3.19 16:03:04 importlib-resources==1.5.0 16:03:04 iso8601==2.1.0 16:03:04 Jinja2==3.1.6 16:03:04 jmespath==1.1.0 16:03:04 jsonpatch==1.33 16:03:04 jsonpointer==3.1.1 16:03:04 jsonschema==4.26.0 16:03:04 jsonschema-specifications==2025.9.1 16:03:04 keystoneauth1==5.17.0 16:03:04 kubernetes==36.0.3 16:03:04 lftools==0.37.23 16:03:04 lxml==6.1.3 16:03:04 markdown-it-py==4.2.0 16:03:04 MarkupSafe==3.0.3 16:03:04 mdurl==0.1.2 16:03:04 msgpack==1.2.2 16:03:04 multi_key_dict==2.0.3 16:03:04 multidict==6.8.0 16:03:04 munch==4.0.0 16:03:04 netaddr==1.3.0 16:03:04 niet==1.4.2 16:03:04 nodeenv==1.10.0 16:03:04 oauth2client==4.1.3 16:03:04 oauthlib==3.3.1 16:03:04 openstacksdk==4.20.0 16:03:04 os-service-types==1.9.0 16:03:04 osc-lib==4.7.0 16:03:04 oslo.config==10.7.0 16:03:04 oslo.context==6.5.0 16:03:04 oslo.i18n==6.9.0 16:03:04 oslo.log==8.3.2 16:03:04 oslo.serialization==5.11.0 16:03:04 oslo.utils==10.2.0 16:03:04 packaging==26.3 16:03:04 pbr==7.0.3 16:03:04 platformdirs==4.11.8 16:03:04 prettytable==3.18.0 16:03:04 prompt_toolkit==3.0.53 16:03:04 propcache==0.5.2 16:03:04 psutil==7.2.2 16:03:04 pyasn1==0.6.4 16:03:04 pyasn1_modules==0.4.2 16:03:04 pycparser==3.0 16:03:04 pygerrit2==2.0.15 16:03:04 PyGithub==2.10.0 16:03:04 Pygments==2.21.0 16:03:04 PyJWT==2.14.0 16:03:04 PyNaCl==1.6.2 16:03:04 pyparsing==2.4.7 16:03:04 pyperclip==1.11.0 16:03:04 pyrsistent==0.20.0 16:03:04 python-dateutil==2.9.0.post0 16:03:04 python-discovery==1.6.0 16:03:04 python-heatclient==5.3.0 16:03:04 python-jenkins==1.8.3 16:03:04 python-keystoneclient==6.0.0 16:03:04 python-magnumclient==5.0.0 16:03:04 python-manilaclient==6.3.0 16:03:04 python-openstackclient==10.3.0 16:03:04 python-swiftclient==4.11.0 16:03:04 PyYAML==6.0.3 16:03:04 referencing==0.37.0 16:03:04 requests==2.34.2 16:03:04 requests-oauthlib==2.0.0 16:03:04 rfc3986==2.0.0 16:03:04 rich==15.0.0 16:03:04 rich-argparse==1.8.0 16:03:04 rpds-py==2026.6.3 16:03:04 rsa==4.9.1 16:03:04 ruamel.yaml==0.19.1 16:03:04 ruamel.yaml.clib==0.2.15 16:03:04 s3transfer==0.19.2 16:03:04 simplejson==4.1.2 16:03:04 six==1.17.0 16:03:04 smmap==5.0.3 16:03:04 soupsieve==2.9.2 16:03:04 stevedore==5.9.1 16:03:04 tabulate==0.10.0 16:03:04 toml==0.10.2 16:03:04 tomlkit==0.15.1 16:03:04 tqdm==4.70.1 16:03:04 typing_extensions==4.16.0 16:03:04 urllib3==1.26.20 16:03:04 virtualenv==21.7.9 16:03:04 wcwidth==0.8.3 16:03:04 websocket-client==1.9.2 16:03:04 wrapt==2.4.1 16:03:04 xdg==6.0.0 16:03:04 xmltodict==1.0.4 16:03:04 yarl==1.24.5 16:03:04 yq==4.1.2 16:03:04 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins6280850702966514093.sh 16:03:04 ---> uv-install.sh 16:03:04 Installing uv/uvx (latest) using shell installer 16:03:04 2026-09-14 16:03:04 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71308/71308] -> "/tmp/uv-install-IubBUb.sh" [1] 16:03:04 downloading uv 0.12.13 x86_64-unknown-linux-gnu 16:03:05 installing to /home/jenkins/.local/bin 16:03:05 uv 16:03:05 uvx 16:03:05 everything's installed! 16:03:05 16:03:05 To add $HOME/.local/bin to your PATH, either restart your shell or run: 16:03:05 16:03:05 source $HOME/.local/bin/env (sh, bash, zsh) 16:03:05 source $HOME/.local/bin/env.fish (fish) 16:03:05 Adding install location to PATH 16:03:05 ---> Validating uv/uvx install 16:03:05 uvx 0.12.13 (x86_64-unknown-linux-gnu) 16:03:05 [EnvInject] - Injecting environment variables from a build step. 16:03:05 [EnvInject] - Injecting as environment variables the properties content 16:03:05 PYTHON=python3 16:03:05 16:03:05 [EnvInject] - Variables injected successfully. 16:03:05 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins4881942955780483958.sh 16:03:05 ---> tox-install.sh 16:03:05 + source /home/jenkins/lf-env.sh 16:03:05 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 16:03:05 ++ mktemp -d /tmp/venv-XXXX 16:03:05 + lf_venv=/tmp/venv-YoYJ 16:03:05 + local venv_file=/tmp/.os_lf_venv 16:03:05 + local python=python3 16:03:05 + local options 16:03:05 + local set_path=true 16:03:05 + local install_args= 16:03:05 ++ 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 16:03:05 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 16:03:05 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 16:03:05 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 16:03:05 + true 16:03:05 + case $1 in 16:03:05 + venv_file=/tmp/.toxenv 16:03:05 + shift 2 16:03:05 + true 16:03:05 + case $1 in 16:03:05 + shift 16:03:05 + break 16:03:05 + case $python in 16:03:05 + local pkg_list= 16:03:05 + [[ -d /opt/pyenv ]] 16:03:05 + echo 'Setup pyenv:' 16:03:05 Setup pyenv: 16:03:05 + export PYENV_ROOT=/opt/pyenv 16:03:05 + PYENV_ROOT=/opt/pyenv 16:03:05 + 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 16:03:05 + 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 16:03:05 + pyenv versions 16:03:05 system 16:03:05 3.8.20 16:03:05 3.9.20 16:03:05 3.10.15 16:03:05 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 16:03:05 + command -v pyenv 16:03:05 ++ pyenv init - --no-rehash 16:03:05 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 16:03:05 for i in ${!paths[@]}; do 16:03:05 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 16:03:05 fi; done; 16:03:05 echo "${paths[*]}"'\'')" 16:03:05 export PATH="/opt/pyenv/shims:${PATH}" 16:03:05 export PYENV_SHELL=bash 16:03:05 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 16:03:05 pyenv() { 16:03:05 local command 16:03:05 command="${1:-}" 16:03:05 if [ "$#" -gt 0 ]; then 16:03:05 shift 16:03:05 fi 16:03:05 16:03:05 case "$command" in 16:03:05 rehash|shell) 16:03:05 eval "$(pyenv "sh-$command" "$@")" 16:03:05 ;; 16:03:05 *) 16:03:05 command pyenv "$command" "$@" 16:03:05 ;; 16:03:05 esac 16:03:05 }' 16:03:05 +++ bash --norc -ec 'IFS=:; paths=($PATH); 16:03:05 for i in ${!paths[@]}; do 16:03:05 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 16:03:05 fi; done; 16:03:05 echo "${paths[*]}"' 16:03:05 ++ 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 16:03:05 ++ 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 16:03:05 ++ 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 16:03:05 ++ export PYENV_SHELL=bash 16:03:05 ++ PYENV_SHELL=bash 16:03:05 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 16:03:05 +++ complete -F _pyenv pyenv 16:03:05 ++ lf-pyver python3 16:03:05 ++ local py_version_xy=python3 16:03:05 ++ local py_version_xyz= 16:03:05 ++ pyenv versions 16:03:05 ++ local command 16:03:05 ++ command=versions 16:03:05 ++ '[' 1 -gt 0 ']' 16:03:05 ++ shift 16:03:05 ++ case "$command" in 16:03:05 ++ command pyenv versions 16:03:05 ++ awk '{ print $1 }' 16:03:05 ++ grep -E '^[0-9.]*[0-9]$' 16:03:05 ++ sed 's/^[ *]* //' 16:03:05 ++ [[ ! -s /tmp/.pyenv_versions ]] 16:03:05 +++ sort -V 16:03:05 +++ grep '^3' /tmp/.pyenv_versions 16:03:05 +++ tail -n 1 16:03:05 ++ py_version_xyz=3.11.10 16:03:05 ++ [[ -z 3.11.10 ]] 16:03:05 ++ echo 3.11.10 16:03:05 ++ return 0 16:03:05 + pyenv local 3.11.10 16:03:05 + local command 16:03:05 + command=local 16:03:05 + '[' 2 -gt 0 ']' 16:03:05 + shift 16:03:05 + case "$command" in 16:03:05 + command pyenv local 3.11.10 16:03:05 + for arg in "$@" 16:03:05 + case $arg in 16:03:05 + pkg_list+='tox ' 16:03:05 + for arg in "$@" 16:03:05 + case $arg in 16:03:05 + pkg_list+='virtualenv ' 16:03:05 + for arg in "$@" 16:03:05 + case $arg in 16:03:05 + pkg_list+='urllib3~=1.26.15 ' 16:03:05 + [[ -f /tmp/.toxenv ]] 16:03:05 + [[ ! -f /tmp/.toxenv ]] 16:03:05 + [[ -n '' ]] 16:03:05 + python3 -m venv /tmp/venv-YoYJ 16:03:09 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-YoYJ' 16:03:09 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-YoYJ 16:03:09 + echo /tmp/venv-YoYJ 16:03:09 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 16:03:09 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 16:03:09 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 16:03:09 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:03:09 + local 'pip_opts=--upgrade --quiet' 16:03:09 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 16:03:09 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 16:03:09 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 16:03:09 + [[ -n '' ]] 16:03:09 + [[ -n '' ]] 16:03:09 + lf-venv-pip-install /tmp/venv-YoYJ/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 16:03:09 + local venv_python=/tmp/venv-YoYJ/bin/python3 16:03:09 + shift 16:03:09 + local upstream=https://pypi.org/simple 16:03:09 + /tmp/venv-YoYJ/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 16:03:13 + return 0 16:03:13 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 16:03:13 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 16:03:13 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 16:03:13 + lf-venv-pip-install /tmp/venv-YoYJ/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 16:03:13 + local venv_python=/tmp/venv-YoYJ/bin/python3 16:03:13 + shift 16:03:13 + local upstream=https://pypi.org/simple 16:03:13 + /tmp/venv-YoYJ/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 16:03:16 + return 0 16:03:16 + type python3 16:03:16 + true 16:03:16 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-YoYJ/bin to PATH' 16:03:16 lf-activate-venv(): INFO: Adding /tmp/venv-YoYJ/bin to PATH 16:03:16 + PATH=/tmp/venv-YoYJ/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 16:03:16 + return 0 16:03:16 + python3 --version 16:03:16 Python 3.11.10 16:03:16 + python3 -m pip --version 16:03:16 pip 26.2.1 from /tmp/venv-YoYJ/lib/python3.11/site-packages/pip (python 3.11) 16:03:16 + python3 -m pip freeze 16:03:16 cachetools==7.1.8 16:03:16 colorama==0.4.6 16:03:16 distlib==0.4.3 16:03:16 filelock==3.32.6 16:03:16 packaging==26.3 16:03:16 platformdirs==4.11.8 16:03:16 pluggy==1.6.0 16:03:16 pyproject-api==1.11.0 16:03:16 python-discovery==1.6.0 16:03:16 tomli_w==1.2.0 16:03:16 tox==4.61.4 16:03:16 typing_extensions==4.16.0 16:03:16 urllib3==1.26.20 16:03:16 virtualenv==21.7.9 16:03:16 [transportpce-tox-verify-transportpce-master] $ /bin/sh -xe /tmp/jenkins16592411392670014423.sh 16:03:16 [EnvInject] - Injecting environment variables from a build step. 16:03:16 [EnvInject] - Injecting as environment variables the properties content 16:03:16 PARALLEL=True 16:03:16 16:03:16 [EnvInject] - Variables injected successfully. 16:03:16 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins2769669863273880645.sh 16:03:16 ---> tox-run.sh 16:03:16 + 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 16:03:16 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 16:03:16 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 16:03:16 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 16:03:16 + cd /w/workspace/transportpce-tox-verify-transportpce-master/. 16:03:16 + source /home/jenkins/lf-env.sh 16:03:16 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 16:03:16 ++ mktemp -d /tmp/venv-XXXX 16:03:16 + lf_venv=/tmp/venv-sOma 16:03:16 + local venv_file=/tmp/.os_lf_venv 16:03:16 + local python=python3 16:03:16 + local options 16:03:16 + local set_path=true 16:03:16 + local install_args= 16:03:16 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 16:03:16 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 16:03:16 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 16:03:16 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 16:03:16 + true 16:03:16 + case $1 in 16:03:16 + venv_file=/tmp/.toxenv 16:03:16 + shift 2 16:03:16 + true 16:03:16 + case $1 in 16:03:16 + shift 16:03:16 + break 16:03:16 + case $python in 16:03:16 + local pkg_list= 16:03:16 + [[ -d /opt/pyenv ]] 16:03:16 + echo 'Setup pyenv:' 16:03:16 Setup pyenv: 16:03:16 + export PYENV_ROOT=/opt/pyenv 16:03:16 + PYENV_ROOT=/opt/pyenv 16:03:16 + 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 16:03:16 + 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 16:03:16 + pyenv versions 16:03:16 system 16:03:16 3.8.20 16:03:16 3.9.20 16:03:16 3.10.15 16:03:16 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 16:03:16 + command -v pyenv 16:03:16 ++ pyenv init - --no-rehash 16:03:17 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 16:03:17 for i in ${!paths[@]}; do 16:03:17 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 16:03:17 fi; done; 16:03:17 echo "${paths[*]}"'\'')" 16:03:17 export PATH="/opt/pyenv/shims:${PATH}" 16:03:17 export PYENV_SHELL=bash 16:03:17 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 16:03:17 pyenv() { 16:03:17 local command 16:03:17 command="${1:-}" 16:03:17 if [ "$#" -gt 0 ]; then 16:03:17 shift 16:03:17 fi 16:03:17 16:03:17 case "$command" in 16:03:17 rehash|shell) 16:03:17 eval "$(pyenv "sh-$command" "$@")" 16:03:17 ;; 16:03:17 *) 16:03:17 command pyenv "$command" "$@" 16:03:17 ;; 16:03:17 esac 16:03:17 }' 16:03:17 +++ bash --norc -ec 'IFS=:; paths=($PATH); 16:03:17 for i in ${!paths[@]}; do 16:03:17 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 16:03:17 fi; done; 16:03:17 echo "${paths[*]}"' 16:03:17 ++ 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 16:03:17 ++ 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 16:03:17 ++ 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 16:03:17 ++ export PYENV_SHELL=bash 16:03:17 ++ PYENV_SHELL=bash 16:03:17 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 16:03:17 +++ complete -F _pyenv pyenv 16:03:17 ++ lf-pyver python3 16:03:17 ++ local py_version_xy=python3 16:03:17 ++ local py_version_xyz= 16:03:17 ++ pyenv versions 16:03:17 ++ local command 16:03:17 ++ sed 's/^[ *]* //' 16:03:17 ++ command=versions 16:03:17 ++ '[' 1 -gt 0 ']' 16:03:17 ++ shift 16:03:17 ++ case "$command" in 16:03:17 ++ command pyenv versions 16:03:17 ++ grep -E '^[0-9.]*[0-9]$' 16:03:17 ++ awk '{ print $1 }' 16:03:17 ++ [[ ! -s /tmp/.pyenv_versions ]] 16:03:17 +++ grep '^3' /tmp/.pyenv_versions 16:03:17 +++ tail -n 1 16:03:17 +++ sort -V 16:03:17 ++ py_version_xyz=3.11.10 16:03:17 ++ [[ -z 3.11.10 ]] 16:03:17 ++ echo 3.11.10 16:03:17 ++ return 0 16:03:17 + pyenv local 3.11.10 16:03:17 + local command 16:03:17 + command=local 16:03:17 + '[' 2 -gt 0 ']' 16:03:17 + shift 16:03:17 + case "$command" in 16:03:17 + command pyenv local 3.11.10 16:03:17 + for arg in "$@" 16:03:17 + case $arg in 16:03:17 + pkg_list+='tox ' 16:03:17 + for arg in "$@" 16:03:17 + case $arg in 16:03:17 + pkg_list+='virtualenv ' 16:03:17 + for arg in "$@" 16:03:17 + case $arg in 16:03:17 + pkg_list+='urllib3~=1.26.15 ' 16:03:17 + [[ -f /tmp/.toxenv ]] 16:03:17 ++ cat /tmp/.toxenv 16:03:17 + lf_venv=/tmp/venv-YoYJ 16:03:17 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-YoYJ from' file:/tmp/.toxenv 16:03:17 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-YoYJ from file:/tmp/.toxenv 16:03:17 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 16:03:17 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:03:17 + local 'pip_opts=--upgrade --quiet' 16:03:17 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 16:03:17 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 16:03:17 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 16:03:17 + [[ -n '' ]] 16:03:17 + [[ -n '' ]] 16:03:17 + lf-venv-pip-install /tmp/venv-YoYJ/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 16:03:17 + local venv_python=/tmp/venv-YoYJ/bin/python3 16:03:17 + shift 16:03:17 + local upstream=https://pypi.org/simple 16:03:17 + /tmp/venv-YoYJ/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 16:03:18 + return 0 16:03:18 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 16:03:18 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 16:03:18 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 16:03:18 + lf-venv-pip-install /tmp/venv-YoYJ/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 16:03:18 + local venv_python=/tmp/venv-YoYJ/bin/python3 16:03:18 + shift 16:03:18 + local upstream=https://pypi.org/simple 16:03:18 + /tmp/venv-YoYJ/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 16:03:19 + return 0 16:03:19 + type python3 16:03:19 + true 16:03:19 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-YoYJ/bin to PATH' 16:03:19 lf-activate-venv(): INFO: Adding /tmp/venv-YoYJ/bin to PATH 16:03:19 + PATH=/tmp/venv-YoYJ/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 16:03:19 + return 0 16:03:19 + [[ -d /opt/pyenv ]] 16:03:19 + echo '---> Setting up pyenv' 16:03:19 ---> Setting up pyenv 16:03:19 + export PYENV_ROOT=/opt/pyenv 16:03:19 + PYENV_ROOT=/opt/pyenv 16:03:19 + export PATH=/opt/pyenv/bin:/tmp/venv-YoYJ/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 16:03:19 + PATH=/opt/pyenv/bin:/tmp/venv-YoYJ/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 16:03:19 ++ pwd 16:03:19 + PYTHONPATH=/w/workspace/transportpce-tox-verify-transportpce-master 16:03:19 + export PYTHONPATH 16:03:19 + export TOX_TESTENV_PASSENV=PYTHONPATH 16:03:19 + TOX_TESTENV_PASSENV=PYTHONPATH 16:03:19 + tox --version 16:03:19 4.61.4 from /tmp/venv-YoYJ/lib/python3.11/site-packages/tox/__init__.py 16:03:19 + PARALLEL=True 16:03:19 + TOX_OPTIONS_LIST= 16:03:19 + [[ -n '' ]] 16:03:19 + case ${PARALLEL,,} in 16:03:19 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 16:03:19 + tox --parallel auto --parallel-live 16:03:19 + tee -a /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tox.log 16:03:21 docs: install_deps> python -I -m pip install -r docs/requirements.txt 16:03:21 checkbashisms: freeze> python -m pip freeze --all 16:03:21 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 16:03:21 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 16:03:22 checkbashisms: pip==26.2.1,setuptools==84.0.0 16:03:22 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 16:03:22 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)' 16:03:22 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 16:03:23 checkbashisms: OK ✔ in 3.48 seconds 16:03:23 pre-commit: install_deps> python -I -m pip install pre-commit 16:03:26 pre-commit: freeze> python -m pip freeze --all 16:03:27 pre-commit: cfgv==3.5.0,distlib==0.4.3,filelock==3.32.6,identify==2.6.19,nodeenv==1.10.0,pip==26.2.1,platformdirs==4.11.8,pre_commit==4.6.2,python-discovery==1.6.0,PyYAML==6.0.3,setuptools==84.0.0,virtualenv==21.7.9 16:03:27 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 16:03:27 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)' 16:03:27 /usr/bin/cpan 16:03:27 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure 16:03:27 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 16:03:27 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 16:03:28 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 16:03:29 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 16:03:30 buildcontroller: freeze> python -m pip freeze --all 16:03:30 buildcontroller: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 16:03:30 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh 16:03:30 + update-java-alternatives -l 16:03:30 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 16:03:30 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 16:03:30 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 16:03:30 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 16:03:30 update-alternatives: error: no alternatives for jaotc 16:03:30 update-alternatives: error: no alternatives for rmic 16:03:30 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 16:03:30 + java -version 16:03:30 + JAVA_VER=21 16:03:30 + echo 21 16:03:30 21 16:03:30 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 16:03:30 + javac -version 16:03:30 [INFO] Initializing environment for https://github.com/hhatto/autopep8. 16:03:30 + JAVAC_VER=21 16:03:30 + echo 21 16:03:30 + [ 21 -ge 21 ] 16:03:30 + [ 21 -ge 21 ] 16:03:30 + echo ok, java is 21 or newer 16:03:30 + wget -nv https://dlcdn.apache.org/maven/maven-3/3.9.16/binaries/apache-maven-3.9.16-bin.tar.gz -P /tmp 16:03:30 21 16:03:30 ok, java is 21 or newer 16:03:30 2026-09-14 16:03:30 URL:https://dlcdn.apache.org/maven/maven-3/3.9.16/binaries/apache-maven-3.9.16-bin.tar.gz [9278065/9278065] -> "/tmp/apache-maven-3.9.16-bin.tar.gz" [1] 16:03:30 + sudo mkdir -p /opt 16:03:30 + sudo tar xf /tmp/apache-maven-3.9.16-bin.tar.gz -C /opt 16:03:31 + sudo ln -s /opt/apache-maven-3.9.16 /opt/maven 16:03:31 + sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn 16:03:31 + mvn --version 16:03:31 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 16:03:31 Apache Maven 3.9.16 (2bdd9fddda4b155ebf8000e807eb73fd829a51d5) 16:03:31 Maven home: /opt/maven 16:03:31 Java version: 21.0.12, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64 16:03:31 Default locale: en, platform encoding: UTF-8 16:03:31 OS name: "linux", version: "5.15.0-190-generic", arch: "amd64", family: "unix" 16:03:31 NOTE: Picked up JDK_JAVA_OPTIONS: 16:03:31 --add-opens=java.base/java.io=ALL-UNNAMED 16:03:31 --add-opens=java.base/java.lang=ALL-UNNAMED 16:03:31 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 16:03:31 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 16:03:31 --add-opens=java.base/java.net=ALL-UNNAMED 16:03:31 --add-opens=java.base/java.nio=ALL-UNNAMED 16:03:31 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 16:03:31 --add-opens=java.base/java.nio.file=ALL-UNNAMED 16:03:31 --add-opens=java.base/java.util=ALL-UNNAMED 16:03:31 --add-opens=java.base/java.util.jar=ALL-UNNAMED 16:03:31 --add-opens=java.base/java.util.stream=ALL-UNNAMED 16:03:31 --add-opens=java.base/java.util.zip=ALL-UNNAMED 16:03:31 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 16:03:31 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 16:03:31 -Xlog:disable 16:03:33 [INFO] Initializing environment for https://github.com/koalaman/shellcheck-precommit. 16:03:34 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier. 16:03:34 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@4.0.0-alpha.8. 16:03:35 [INFO] Initializing environment for https://github.com/adrienverge/yamllint. 16:03:36 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 16:03:36 [INFO] Once installed this environment will be reused. 16:03:36 [INFO] This may take a few minutes... 16:03:39 docs-linkcheck: freeze> python -m pip freeze --all 16:03:39 docs-linkcheck: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.1,deepmerge==3.0.1,docutils==0.22.4,idna==3.19,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.52.1,lfdocs_conf==0.11.0,MarkupSafe==3.0.3,minijinja==2.24.0,mistune==3.3.4,packaging==26.3,picobox==4.0.0,pip==26.2.1,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==3.0.1,roman-numerals==4.1.0,rpds-py==2026.6.3,setuptools==84.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.5.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.0.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.9.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.7.0 16:03:39 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 16:03:39 docs: freeze> python -m pip freeze --all 16:03:40 docs: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.1,deepmerge==3.0.1,docutils==0.22.4,idna==3.19,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.52.1,lfdocs_conf==0.11.0,MarkupSafe==3.0.3,minijinja==2.24.0,mistune==3.3.4,packaging==26.3,picobox==4.0.0,pip==26.2.1,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==3.0.1,roman-numerals==4.1.0,rpds-py==2026.6.3,setuptools==84.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.5.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.0.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.9.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.7.0 16:03:40 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 16:03:43 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 16:03:43 [INFO] Once installed this environment will be reused. 16:03:43 [INFO] This may take a few minutes... 16:03:43 docs: OK ✔ in 23.57 seconds 16:03:43 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 16:03:47 docs-linkcheck: OK ✔ in 25.27 seconds 16:03:47 pylint: freeze> python -m pip freeze --all 16:03:48 pylint: astroid==4.0.4,dill==0.4.1,isort==9.0.1,mccabe==0.7.0,mypy_extensions==1.1.0,pip==26.2.1,platformdirs==4.11.8,pylint==4.0.8,setuptools==84.0.0,tomlkit==0.15.1 16:03:48 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}$' '{}' + 16:03:49 [INFO] Installing environment for https://github.com/hhatto/autopep8. 16:03:49 [INFO] Once installed this environment will be reused. 16:03:49 [INFO] This may take a few minutes... 16:03:53 [INFO] Installing environment for https://github.com/perltidy/perltidy. 16:03:53 [INFO] Once installed this environment will be reused. 16:03:53 [INFO] This may take a few minutes... 16:04:03 [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier. 16:04:03 [INFO] Once installed this environment will be reused. 16:04:03 [INFO] This may take a few minutes... 16:04:07 [INFO] Installing environment for https://github.com/adrienverge/yamllint. 16:04:07 [INFO] Once installed this environment will be reused. 16:04:07 [INFO] This may take a few minutes... 16:04:10 16:04:10 ------------------------------------ 16:04:10 Your code has been rated at 10.00/10 16:04:10 16:04:12 trim trailing whitespace.................................................Passed 16:04:12 fix end of files.........................................................Passed 16:04:12 check for added large files..............................................Passed 16:04:12 check for merge conflicts................................................Passed 16:04:13 check for case conflicts.................................................Passed 16:04:13 check json...............................................................Passed 16:04:13 mixed line ending........................................................Passed 16:04:13 Tabs remover.............................................................Passed 16:04:13 autopep8.................................................................[ERROR] COMPILATION ERROR : 16:04:14 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/test-common/src/main/java/org/opendaylight/transportpce/test/DataStoreContextImpl.java:[34,49] cannot find symbol 16:04:14 symbol: class InMemoryDOMDataStoreFactory 16:04:14 location: package org.opendaylight.mdsal.dom.store.inmemory 16:04:14 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.15.0:compile (default-compile) on project test-common: Compilation failure 16:04:14 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/test-common/src/main/java/org/opendaylight/transportpce/test/DataStoreContextImpl.java:[34,49] cannot find symbol 16:04:14 [ERROR] symbol: class InMemoryDOMDataStoreFactory 16:04:14 [ERROR] location: package org.opendaylight.mdsal.dom.store.inmemory 16:04:14 [ERROR] -> [Help 1] 16:04:14 [ERROR] 16:04:14 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 16:04:14 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 16:04:14 [ERROR] 16:04:14 [ERROR] For more information about the errors and possible solutions, please read the following articles: 16:04:14 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 16:04:14 [ERROR] 16:04:14 [ERROR] After correcting the problems, you can resume the build with the command 16:04:14 [ERROR] mvn -rf :test-common 16:04:14 pylint: OK ✔ in 28.68 seconds 16:04:14 buildcontroller: exit 1 (44.19 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh pid=2735 16:04:15 buildcontroller: FAIL ✖ in 54.31 seconds 16:04:15 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 16:04:15 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 16:04:15 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 16:04:16 Passed 16:04:16 perltidy.................................................................Passed 16:04:17 ShellCheck v0.11.0.......................................................build_karaf_tests221: freeze> python -m pip freeze --all 16:04:23 build_karaf_tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 16:04:23 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 16:04:23 build karaf in karaf221 with ./karaf221.env 16:04:23 build_karaf_tests200: freeze> python -m pip freeze --all 16:04:23 NOTE: Picked up JDK_JAVA_OPTIONS: 16:04:23 --add-opens=java.base/java.io=ALL-UNNAMED 16:04:23 --add-opens=java.base/java.lang=ALL-UNNAMED 16:04:23 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 16:04:23 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 16:04:23 --add-opens=java.base/java.net=ALL-UNNAMED 16:04:23 --add-opens=java.base/java.nio=ALL-UNNAMED 16:04:23 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 16:04:23 --add-opens=java.base/java.nio.file=ALL-UNNAMED 16:04:23 --add-opens=java.base/java.util=ALL-UNNAMED 16:04:23 --add-opens=java.base/java.util.jar=ALL-UNNAMED 16:04:23 --add-opens=java.base/java.util.stream=ALL-UNNAMED 16:04:23 --add-opens=java.base/java.util.zip=ALL-UNNAMED 16:04:23 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 16:04:23 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 16:04:23 -Xlog:disable 16:04:23 build_karaf_tests71: freeze> python -m pip freeze --all 16:04:23 Passed 16:04:23 prettier.................................................................build_karaf_tests200: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 16:04:23 build_karaf_tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 16:04:24 build karaf in karafoc200 with ./karafoc200.env 16:04:24 build_karaf_tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 16:04:24 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 16:04:24 build karaf in karaf71 with ./karaf71.env 16:04:24 NOTE: Picked up JDK_JAVA_OPTIONS: 16:04:24 --add-opens=java.base/java.io=ALL-UNNAMED 16:04:24 --add-opens=java.base/java.lang=ALL-UNNAMED 16:04:24 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 16:04:24 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 16:04:24 --add-opens=java.base/java.net=ALL-UNNAMED 16:04:24 --add-opens=java.base/java.nio=ALL-UNNAMED 16:04:24 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 16:04:24 --add-opens=java.base/java.nio.file=ALL-UNNAMED 16:04:24 --add-opens=java.base/java.util=ALL-UNNAMED 16:04:24 --add-opens=java.base/java.util.jar=ALL-UNNAMED 16:04:24 --add-opens=java.base/java.util.stream=ALL-UNNAMED 16:04:24 --add-opens=java.base/java.util.zip=ALL-UNNAMED 16:04:24 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 16:04:24 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 16:04:24 -Xlog:disable 16:04:24 NOTE: Picked up JDK_JAVA_OPTIONS: 16:04:24 --add-opens=java.base/java.io=ALL-UNNAMED 16:04:24 --add-opens=java.base/java.lang=ALL-UNNAMED 16:04:24 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 16:04:24 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 16:04:24 --add-opens=java.base/java.net=ALL-UNNAMED 16:04:24 --add-opens=java.base/java.nio=ALL-UNNAMED 16:04:24 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 16:04:24 --add-opens=java.base/java.nio.file=ALL-UNNAMED 16:04:24 --add-opens=java.base/java.util=ALL-UNNAMED 16:04:24 --add-opens=java.base/java.util.jar=ALL-UNNAMED 16:04:24 --add-opens=java.base/java.util.stream=ALL-UNNAMED 16:04:24 --add-opens=java.base/java.util.zip=ALL-UNNAMED 16:04:24 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 16:04:24 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 16:04:24 -Xlog:disable 16:04:25 Passed 16:04:25 yamllint.................................................................Passed 16:04:26 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual 16:04:26 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 16:04:26 [INFO] Once installed this environment will be reused. 16:04:26 [INFO] This may take a few minutes... 16:04:34 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:14.0.0-SNAPSHOT 16:04:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:14.0.0-SNAPSHOT (runtime) 16:04:34 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce:xml:features:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:04:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:14.0.0-SNAPSHOT (runtime) 16:04:34 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:04:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapisbi:xml:features:14.0.0-SNAPSHOT (runtime) 16:04:34 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-tapisbi:xml:features:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:04:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:14.0.0-SNAPSHOT (runtime) 16:04:34 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:04:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:14.0.0-SNAPSHOT (runtime) 16:04:34 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:04:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:14.0.0-SNAPSHOT (runtime) 16:04:34 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:04:34 [ERROR] -> [Help 1] 16:04:34 [ERROR] 16:04:34 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 16:04:34 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 16:04:34 [ERROR] 16:04:34 [ERROR] For more information about the errors and possible solutions, please read the following articles: 16:04:34 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 16:04:34 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:14.0.0-SNAPSHOT 16:04:34 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 16:04:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:14.0.0-SNAPSHOT (runtime) 16:04:34 [ERROR] org.opendaylight.transportpce:odl-transportpce:xml:features:14.0.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 16:04:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:14.0.0-SNAPSHOT (runtime) 16:04:34 [ERROR] org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:14.0.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 16:04:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapisbi:xml:features:14.0.0-SNAPSHOT (runtime) 16:04:34 [ERROR] org.opendaylight.transportpce:odl-transportpce-tapisbi:xml:features:14.0.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 16:04:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:14.0.0-SNAPSHOT (runtime) 16:04:34 [ERROR] org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:14.0.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 16:04:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:14.0.0-SNAPSHOT (runtime) 16:04:34 [ERROR] org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:14.0.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 16:04:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:14.0.0-SNAPSHOT (runtime) 16:04:34 [ERROR] org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:14.0.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 16:04:34 [ERROR] -> [Help 1] 16:04:34 [ERROR] 16:04:34 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 16:04:34 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 16:04:34 [ERROR] 16:04:34 [ERROR] For more information about the errors and possible solutions, please read the following articles: 16:04:34 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 16:04:34 build_karaf_tests200: exit 127 (10.54 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=4240 16:04:34 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 16:04:34 build_karaf_tests200: FAIL ✖ in 20.07 seconds 16:04:34 build_karaf_tests221: exit 127 (10.97 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=4133 16:04:34 build_karaf_tests221: FAIL ✖ in 20.11 seconds 16:04:34 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 16:04:34 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 16:04:34 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:14.0.0-SNAPSHOT 16:04:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:14.0.0-SNAPSHOT (runtime) 16:04:34 [ERROR] org.opendaylight.transportpce:odl-transportpce:xml:features:14.0.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 16:04:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:14.0.0-SNAPSHOT (runtime) 16:04:34 [ERROR] org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:14.0.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 16:04:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapisbi:xml:features:14.0.0-SNAPSHOT (runtime) 16:04:34 [ERROR] org.opendaylight.transportpce:odl-transportpce-tapisbi:xml:features:14.0.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 16:04:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:14.0.0-SNAPSHOT (runtime) 16:04:34 [ERROR] org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:14.0.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 16:04:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:14.0.0-SNAPSHOT (runtime) 16:04:34 [ERROR] org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:14.0.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 16:04:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:14.0.0-SNAPSHOT (runtime) 16:04:34 [ERROR] org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:14.0.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 16:04:34 [ERROR] -> [Help 1] 16:04:34 [ERROR] 16:04:34 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 16:04:34 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 16:04:34 [ERROR] 16:04:34 [ERROR] For more information about the errors and possible solutions, please read the following articles: 16:04:34 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 16:04:34 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 16:04:34 build_karaf_tests71: exit 127 (10.67 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=4314 16:04:35 build_karaf_tests71: FAIL ✖ in 20.46 seconds 16:04:35 testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 16:04:39 gitlint..................................................................Passed 16:04:40 pre-commit: OK ✔ in 1 minute 16.32 seconds 16:04:40 buildlighty: freeze> python -m pip freeze --all 16:04:41 sims: freeze> python -m pip freeze --all 16:04:41 buildlighty: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 16:04:41 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh 16:04:41 NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED 16:04:41 sims: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 16:04:41 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh 16:04:41 Using lighynode version 22.1.0.7 16:04:41 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 16:04:51 [ERROR] Failed to execute goal on project tpce: Could not resolve dependencies for project io.lighty.controllers:tpce:jar:14.0.0-SNAPSHOT 16:04:51 [ERROR] dependency: org.opendaylight.transportpce:transportpce-common:jar:14.0.0-SNAPSHOT (compile) 16:04:51 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-common:jar:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:04:51 [ERROR] dependency: org.opendaylight.transportpce:transportpce-networkmodel:jar:14.0.0-SNAPSHOT (compile) 16:04:51 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-networkmodel:jar:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:04:51 [ERROR] dependency: org.opendaylight.transportpce:transportpce-pce:jar:14.0.0-SNAPSHOT (compile) 16:04:51 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-pce:jar:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:04:51 [ERROR] dependency: org.opendaylight.transportpce:transportpce-olm:jar:14.0.0-SNAPSHOT (compile) 16:04:51 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-olm:jar:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:04:51 [ERROR] dependency: org.opendaylight.transportpce:transportpce-servicehandler:jar:14.0.0-SNAPSHOT (compile) 16:04:51 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-servicehandler:jar:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:04:51 [ERROR] dependency: org.opendaylight.transportpce:transportpce-tapi:jar:14.0.0-SNAPSHOT (compile) 16:04:51 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-tapi:jar:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:04:51 [ERROR] dependency: org.opendaylight.transportpce:transportpce-nbinotifications:jar:14.0.0-SNAPSHOT (compile) 16:04:51 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-nbinotifications:jar:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 16:04:51 [ERROR] -> [Help 1] 16:04:51 [ERROR] 16:04:51 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 16:04:51 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 16:04:51 [ERROR] 16:04:51 [ERROR] For more information about the errors and possible solutions, please read the following articles: 16:04:51 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 16:04:51 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 16:04:51 sims: OK ✔ in 11.68 seconds 16:04:51 buildlighty: exit 9 (10.39 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh pid=4593 16:05:23 buildlighty: FAIL ✖ in 17.08 seconds 16:05:23 testsPCE: freeze> python -m pip freeze --all 16:05:24 testsPCE: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,click==8.5.0,contourpy==1.3.3,cryptography==3.3.2,cycler==0.12.1,dict2xml==1.7.8,Flask==2.1.3,Flask-Injector==0.14.0,fonttools==4.65.0,gnpy4tpce==2.4.7,idna==3.19,iniconfig==2.3.0,injector==0.24.0,invoke==3.0.3,itsdangerous==2.2.0,Jinja2==3.1.6,kiwisolver==1.5.1,lxml==6.1.3,MarkupSafe==3.0.3,matplotlib==3.11.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.2,pytest==9.1.1,python-dateutil==2.9.0.post0,pytz==2026.3.post1,requests==2.34.2,scipy==1.17.1,setuptools==50.3.2,six==1.17.0,urllib3==2.7.0,Werkzeug==2.0.3,xlrd==1.2.0 16:05:24 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce 16:05:24 pytest -q transportpce_tests/pce/test01_pce.py 16:07:24 EEEEEEEEEEEEEEEEEEEE [100%] 16:07:28 ==================================== ERRORS ==================================== 16:07:28 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 16:07:28 16:07:28 cls = 16:07:28 16:07:28 @classmethod 16:07:28 def setUpClass(cls): 16:07:28 # pylint: disable=bare-except 16:07:28 sample_files_parsed = False 16:07:28 time.sleep(20) 16:07:28 try: 16:07:28 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 16:07:28 "..", "..", "sample_configs", "honeynode-topo.json") 16:07:28 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 16:07:28 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 16:07:28 16:07:28 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 16:07:28 "..", "..", "sample_configs", "NW-simple-topology.json") 16:07:28 16:07:28 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 16:07:28 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 16:07:28 16:07:28 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 16:07:28 "..", "..", "sample_configs", "NW-for-test-5-4.json") 16:07:28 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 16:07:28 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 16:07:28 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 16:07:28 "..", "..", "sample_configs", "pce_portmapping_221.json") 16:07:28 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 16:07:28 cls.port_mapping_data = port_mapping.read() 16:07:28 sample_files_parsed = True 16:07:28 except PermissionError as err: 16:07:28 print("Permission Error when trying to read sample files\n", err) 16:07:28 sys.exit(2) 16:07:28 except FileNotFoundError as err: 16:07:28 print("File Not found Error when trying to read sample files\n", err) 16:07:28 sys.exit(2) 16:07:28 except: 16:07:28 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 16:07:28 sys.exit(2) 16:07:28 finally: 16:07:28 if sample_files_parsed: 16:07:28 print("sample files content loaded") 16:07:28 16:07:28 > cls.processes = test_utils.start_tpce() 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 16:07:28 transportpce_tests/pce/test01_pce.py:93: 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 16:07:28 def start_tpce(): 16:07:28 if 'NO_ODL_STARTUP' in os.environ: 16:07:28 print('No OpenDaylight instance to start!') 16:07:28 return [] 16:07:28 print('starting OpenDaylight...') 16:07:28 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:07:28 process = start_lighty() 16:07:28 else: 16:07:28 process = start_karaf() 16:07:28 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:07:28 print('OpenDaylight started !') 16:07:28 else: 16:07:28 print('OpenDaylight failed to start !') 16:07:28 shutdown_process(process) 16:07:28 for pid in process_list: 16:07:28 shutdown_process(pid) 16:07:28 > sys.exit(1) 16:07:28 E SystemExit: 1 16:07:28 16:07:28 transportpce_tests/common/test_utils.py:234: SystemExit 16:07:28 ---------------------------- Captured stdout setup ----------------------------- 16:07:28 sample files content loaded 16:07:28 starting OpenDaylight... 16:07:28 starting KARAF (karaf) TransportPCE build... 16:07:28 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:07:28 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 16:07:28 16:07:28 cls = 16:07:28 func = . at 0x7f69a8b7ae80> 16:07:28 when = 'setup' 16:07:28 reraise = (, ) 16:07:28 16:07:28 @classmethod 16:07:28 def from_call( 16:07:28 cls, 16:07:28 func: Callable[[], TResult], 16:07:28 when: Literal["collect", "setup", "call", "teardown"], 16:07:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:07:28 ) -> CallInfo[TResult]: 16:07:28 """Call func, wrapping the result in a CallInfo. 16:07:28 16:07:28 :param func: 16:07:28 The function to call. Called without arguments. 16:07:28 :type func: Callable[[], _pytest.runner.TResult] 16:07:28 :param when: 16:07:28 The phase in which the function is called. 16:07:28 :param reraise: 16:07:28 Exception or exceptions that shall propagate if raised by the 16:07:28 function, instead of being wrapped in the CallInfo. 16:07:28 """ 16:07:28 excinfo = None 16:07:28 instant = timing.Instant() 16:07:28 try: 16:07:28 > result: TResult | None = func() 16:07:28 ^^^^^^ 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:07:28 lambda: runtest_hook(item=item, **kwds), 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:07:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:07:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:07:28 yield 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:07:28 return (yield) 16:07:28 ^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:07:28 item.session._setupstate.setup(item) 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:07:28 col.setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:07:28 super().setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:07:28 self._request._fillfixtures() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:07:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:07:28 fixturedef = self._get_active_fixturedef(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:07:28 fixturedef.execute(request=subrequest) 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 16:07:28 self = 16:07:28 request = > 16:07:28 16:07:28 def execute(self, request: SubRequest) -> FixtureValue: 16:07:28 """Return the value of this fixture, executing it if not cached.""" 16:07:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:07:28 # This needs to be done before checking if we have a cached value, since 16:07:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:07:28 # parametrization, they finalize themselves and fixtures depending on it 16:07:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:07:28 # See #4871 16:07:28 requested_fixtures_that_should_finalize_us = [] 16:07:28 for argname in self.argnames: 16:07:28 fixturedef = request._get_active_fixturedef(argname) 16:07:28 # Saves requested fixtures in a list so we later can add our finalizer 16:07:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:07:28 # down first. This is generally handled by SetupState, but still currently 16:07:28 # needed when this fixture is not parametrized but depends on a parametrized 16:07:28 # fixture. 16:07:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:07:28 16:07:28 # Check for (and return) cached value/exception. 16:07:28 if self.cached_result is not None: 16:07:28 request_cache_key = self.cache_key(request) 16:07:28 cache_key = self.cached_result[1] 16:07:28 try: 16:07:28 # Attempt to make a normal == check: this might fail for objects 16:07:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:07:28 cache_hit = bool(request_cache_key == cache_key) 16:07:28 except (ValueError, RuntimeError): 16:07:28 # If the comparison raises, use 'is' as fallback. 16:07:28 cache_hit = request_cache_key is cache_key 16:07:28 16:07:28 if cache_hit: 16:07:28 if self.cached_result[2] is not None: 16:07:28 exc, exc_tb = self.cached_result[2] 16:07:28 raise exc.with_traceback(exc_tb) 16:07:28 else: 16:07:28 return self.cached_result[0] 16:07:28 # We have a previous but differently parametrized fixture instance 16:07:28 # so we need to tear it down before creating a new one. 16:07:28 self.finish(request) 16:07:28 assert self.cached_result is None 16:07:28 16:07:28 # Add finalizer to requested fixtures we saved previously. 16:07:28 # We make sure to do this after checking for cached value to avoid 16:07:28 # adding our finalizer multiple times. (#12135) 16:07:28 finalizer = functools.partial(self.finish, request=request) 16:07:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:07:28 parent_fixture.addfinalizer(finalizer) 16:07:28 16:07:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:07:28 # which is executed last. 16:07:28 > assert not self._finalizers 16:07:28 ^^^^^^^^^^^^^^^^^^^^ 16:07:28 E AssertionError 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:07:28 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 16:07:28 16:07:28 cls = 16:07:28 func = . at 0x7f69a8b8f2e0> 16:07:28 when = 'setup' 16:07:28 reraise = (, ) 16:07:28 16:07:28 @classmethod 16:07:28 def from_call( 16:07:28 cls, 16:07:28 func: Callable[[], TResult], 16:07:28 when: Literal["collect", "setup", "call", "teardown"], 16:07:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:07:28 ) -> CallInfo[TResult]: 16:07:28 """Call func, wrapping the result in a CallInfo. 16:07:28 16:07:28 :param func: 16:07:28 The function to call. Called without arguments. 16:07:28 :type func: Callable[[], _pytest.runner.TResult] 16:07:28 :param when: 16:07:28 The phase in which the function is called. 16:07:28 :param reraise: 16:07:28 Exception or exceptions that shall propagate if raised by the 16:07:28 function, instead of being wrapped in the CallInfo. 16:07:28 """ 16:07:28 excinfo = None 16:07:28 instant = timing.Instant() 16:07:28 try: 16:07:28 > result: TResult | None = func() 16:07:28 ^^^^^^ 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:07:28 lambda: runtest_hook(item=item, **kwds), 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:07:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:07:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:07:28 yield 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:07:28 return (yield) 16:07:28 ^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:07:28 item.session._setupstate.setup(item) 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:07:28 col.setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:07:28 super().setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:07:28 self._request._fillfixtures() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:07:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:07:28 fixturedef = self._get_active_fixturedef(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:07:28 fixturedef.execute(request=subrequest) 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 16:07:28 self = 16:07:28 request = > 16:07:28 16:07:28 def execute(self, request: SubRequest) -> FixtureValue: 16:07:28 """Return the value of this fixture, executing it if not cached.""" 16:07:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:07:28 # This needs to be done before checking if we have a cached value, since 16:07:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:07:28 # parametrization, they finalize themselves and fixtures depending on it 16:07:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:07:28 # See #4871 16:07:28 requested_fixtures_that_should_finalize_us = [] 16:07:28 for argname in self.argnames: 16:07:28 fixturedef = request._get_active_fixturedef(argname) 16:07:28 # Saves requested fixtures in a list so we later can add our finalizer 16:07:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:07:28 # down first. This is generally handled by SetupState, but still currently 16:07:28 # needed when this fixture is not parametrized but depends on a parametrized 16:07:28 # fixture. 16:07:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:07:28 16:07:28 # Check for (and return) cached value/exception. 16:07:28 if self.cached_result is not None: 16:07:28 request_cache_key = self.cache_key(request) 16:07:28 cache_key = self.cached_result[1] 16:07:28 try: 16:07:28 # Attempt to make a normal == check: this might fail for objects 16:07:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:07:28 cache_hit = bool(request_cache_key == cache_key) 16:07:28 except (ValueError, RuntimeError): 16:07:28 # If the comparison raises, use 'is' as fallback. 16:07:28 cache_hit = request_cache_key is cache_key 16:07:28 16:07:28 if cache_hit: 16:07:28 if self.cached_result[2] is not None: 16:07:28 exc, exc_tb = self.cached_result[2] 16:07:28 raise exc.with_traceback(exc_tb) 16:07:28 else: 16:07:28 return self.cached_result[0] 16:07:28 # We have a previous but differently parametrized fixture instance 16:07:28 # so we need to tear it down before creating a new one. 16:07:28 self.finish(request) 16:07:28 assert self.cached_result is None 16:07:28 16:07:28 # Add finalizer to requested fixtures we saved previously. 16:07:28 # We make sure to do this after checking for cached value to avoid 16:07:28 # adding our finalizer multiple times. (#12135) 16:07:28 finalizer = functools.partial(self.finish, request=request) 16:07:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:07:28 parent_fixture.addfinalizer(finalizer) 16:07:28 16:07:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:07:28 # which is executed last. 16:07:28 > assert not self._finalizers 16:07:28 ^^^^^^^^^^^^^^^^^^^^ 16:07:28 E AssertionError 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:07:28 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 16:07:28 16:07:28 cls = 16:07:28 func = . at 0x7f69aafe6520> 16:07:28 when = 'setup' 16:07:28 reraise = (, ) 16:07:28 16:07:28 @classmethod 16:07:28 def from_call( 16:07:28 cls, 16:07:28 func: Callable[[], TResult], 16:07:28 when: Literal["collect", "setup", "call", "teardown"], 16:07:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:07:28 ) -> CallInfo[TResult]: 16:07:28 """Call func, wrapping the result in a CallInfo. 16:07:28 16:07:28 :param func: 16:07:28 The function to call. Called without arguments. 16:07:28 :type func: Callable[[], _pytest.runner.TResult] 16:07:28 :param when: 16:07:28 The phase in which the function is called. 16:07:28 :param reraise: 16:07:28 Exception or exceptions that shall propagate if raised by the 16:07:28 function, instead of being wrapped in the CallInfo. 16:07:28 """ 16:07:28 excinfo = None 16:07:28 instant = timing.Instant() 16:07:28 try: 16:07:28 > result: TResult | None = func() 16:07:28 ^^^^^^ 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:07:28 lambda: runtest_hook(item=item, **kwds), 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:07:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:07:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:07:28 yield 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:07:28 return (yield) 16:07:28 ^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:07:28 item.session._setupstate.setup(item) 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:07:28 col.setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:07:28 super().setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:07:28 self._request._fillfixtures() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:07:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:07:28 fixturedef = self._get_active_fixturedef(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:07:28 fixturedef.execute(request=subrequest) 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 16:07:28 self = 16:07:28 request = > 16:07:28 16:07:28 def execute(self, request: SubRequest) -> FixtureValue: 16:07:28 """Return the value of this fixture, executing it if not cached.""" 16:07:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:07:28 # This needs to be done before checking if we have a cached value, since 16:07:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:07:28 # parametrization, they finalize themselves and fixtures depending on it 16:07:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:07:28 # See #4871 16:07:28 requested_fixtures_that_should_finalize_us = [] 16:07:28 for argname in self.argnames: 16:07:28 fixturedef = request._get_active_fixturedef(argname) 16:07:28 # Saves requested fixtures in a list so we later can add our finalizer 16:07:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:07:28 # down first. This is generally handled by SetupState, but still currently 16:07:28 # needed when this fixture is not parametrized but depends on a parametrized 16:07:28 # fixture. 16:07:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:07:28 16:07:28 # Check for (and return) cached value/exception. 16:07:28 if self.cached_result is not None: 16:07:28 request_cache_key = self.cache_key(request) 16:07:28 cache_key = self.cached_result[1] 16:07:28 try: 16:07:28 # Attempt to make a normal == check: this might fail for objects 16:07:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:07:28 cache_hit = bool(request_cache_key == cache_key) 16:07:28 except (ValueError, RuntimeError): 16:07:28 # If the comparison raises, use 'is' as fallback. 16:07:28 cache_hit = request_cache_key is cache_key 16:07:28 16:07:28 if cache_hit: 16:07:28 if self.cached_result[2] is not None: 16:07:28 exc, exc_tb = self.cached_result[2] 16:07:28 raise exc.with_traceback(exc_tb) 16:07:28 else: 16:07:28 return self.cached_result[0] 16:07:28 # We have a previous but differently parametrized fixture instance 16:07:28 # so we need to tear it down before creating a new one. 16:07:28 self.finish(request) 16:07:28 assert self.cached_result is None 16:07:28 16:07:28 # Add finalizer to requested fixtures we saved previously. 16:07:28 # We make sure to do this after checking for cached value to avoid 16:07:28 # adding our finalizer multiple times. (#12135) 16:07:28 finalizer = functools.partial(self.finish, request=request) 16:07:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:07:28 parent_fixture.addfinalizer(finalizer) 16:07:28 16:07:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:07:28 # which is executed last. 16:07:28 > assert not self._finalizers 16:07:28 ^^^^^^^^^^^^^^^^^^^^ 16:07:28 E AssertionError 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:07:28 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 16:07:28 16:07:28 cls = 16:07:28 func = . at 0x7f69a8b7ae80> 16:07:28 when = 'setup' 16:07:28 reraise = (, ) 16:07:28 16:07:28 @classmethod 16:07:28 def from_call( 16:07:28 cls, 16:07:28 func: Callable[[], TResult], 16:07:28 when: Literal["collect", "setup", "call", "teardown"], 16:07:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:07:28 ) -> CallInfo[TResult]: 16:07:28 """Call func, wrapping the result in a CallInfo. 16:07:28 16:07:28 :param func: 16:07:28 The function to call. Called without arguments. 16:07:28 :type func: Callable[[], _pytest.runner.TResult] 16:07:28 :param when: 16:07:28 The phase in which the function is called. 16:07:28 :param reraise: 16:07:28 Exception or exceptions that shall propagate if raised by the 16:07:28 function, instead of being wrapped in the CallInfo. 16:07:28 """ 16:07:28 excinfo = None 16:07:28 instant = timing.Instant() 16:07:28 try: 16:07:28 > result: TResult | None = func() 16:07:28 ^^^^^^ 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:07:28 lambda: runtest_hook(item=item, **kwds), 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:07:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:07:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:07:28 yield 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:07:28 return (yield) 16:07:28 ^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:07:28 item.session._setupstate.setup(item) 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:07:28 col.setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:07:28 super().setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:07:28 self._request._fillfixtures() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:07:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:07:28 fixturedef = self._get_active_fixturedef(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:07:28 fixturedef.execute(request=subrequest) 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 16:07:28 self = 16:07:28 request = > 16:07:28 16:07:28 def execute(self, request: SubRequest) -> FixtureValue: 16:07:28 """Return the value of this fixture, executing it if not cached.""" 16:07:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:07:28 # This needs to be done before checking if we have a cached value, since 16:07:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:07:28 # parametrization, they finalize themselves and fixtures depending on it 16:07:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:07:28 # See #4871 16:07:28 requested_fixtures_that_should_finalize_us = [] 16:07:28 for argname in self.argnames: 16:07:28 fixturedef = request._get_active_fixturedef(argname) 16:07:28 # Saves requested fixtures in a list so we later can add our finalizer 16:07:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:07:28 # down first. This is generally handled by SetupState, but still currently 16:07:28 # needed when this fixture is not parametrized but depends on a parametrized 16:07:28 # fixture. 16:07:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:07:28 16:07:28 # Check for (and return) cached value/exception. 16:07:28 if self.cached_result is not None: 16:07:28 request_cache_key = self.cache_key(request) 16:07:28 cache_key = self.cached_result[1] 16:07:28 try: 16:07:28 # Attempt to make a normal == check: this might fail for objects 16:07:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:07:28 cache_hit = bool(request_cache_key == cache_key) 16:07:28 except (ValueError, RuntimeError): 16:07:28 # If the comparison raises, use 'is' as fallback. 16:07:28 cache_hit = request_cache_key is cache_key 16:07:28 16:07:28 if cache_hit: 16:07:28 if self.cached_result[2] is not None: 16:07:28 exc, exc_tb = self.cached_result[2] 16:07:28 raise exc.with_traceback(exc_tb) 16:07:28 else: 16:07:28 return self.cached_result[0] 16:07:28 # We have a previous but differently parametrized fixture instance 16:07:28 # so we need to tear it down before creating a new one. 16:07:28 self.finish(request) 16:07:28 assert self.cached_result is None 16:07:28 16:07:28 # Add finalizer to requested fixtures we saved previously. 16:07:28 # We make sure to do this after checking for cached value to avoid 16:07:28 # adding our finalizer multiple times. (#12135) 16:07:28 finalizer = functools.partial(self.finish, request=request) 16:07:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:07:28 parent_fixture.addfinalizer(finalizer) 16:07:28 16:07:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:07:28 # which is executed last. 16:07:28 > assert not self._finalizers 16:07:28 ^^^^^^^^^^^^^^^^^^^^ 16:07:28 E AssertionError 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:07:28 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 16:07:28 16:07:28 cls = 16:07:28 func = . at 0x7f69a8b8fc40> 16:07:28 when = 'setup' 16:07:28 reraise = (, ) 16:07:28 16:07:28 @classmethod 16:07:28 def from_call( 16:07:28 cls, 16:07:28 func: Callable[[], TResult], 16:07:28 when: Literal["collect", "setup", "call", "teardown"], 16:07:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:07:28 ) -> CallInfo[TResult]: 16:07:28 """Call func, wrapping the result in a CallInfo. 16:07:28 16:07:28 :param func: 16:07:28 The function to call. Called without arguments. 16:07:28 :type func: Callable[[], _pytest.runner.TResult] 16:07:28 :param when: 16:07:28 The phase in which the function is called. 16:07:28 :param reraise: 16:07:28 Exception or exceptions that shall propagate if raised by the 16:07:28 function, instead of being wrapped in the CallInfo. 16:07:28 """ 16:07:28 excinfo = None 16:07:28 instant = timing.Instant() 16:07:28 try: 16:07:28 > result: TResult | None = func() 16:07:28 ^^^^^^ 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:07:28 lambda: runtest_hook(item=item, **kwds), 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:07:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:07:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:07:28 yield 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:07:28 return (yield) 16:07:28 ^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:07:28 item.session._setupstate.setup(item) 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:07:28 col.setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:07:28 super().setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:07:28 self._request._fillfixtures() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:07:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:07:28 fixturedef = self._get_active_fixturedef(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:07:28 fixturedef.execute(request=subrequest) 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 16:07:28 self = 16:07:28 request = > 16:07:28 16:07:28 def execute(self, request: SubRequest) -> FixtureValue: 16:07:28 """Return the value of this fixture, executing it if not cached.""" 16:07:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:07:28 # This needs to be done before checking if we have a cached value, since 16:07:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:07:28 # parametrization, they finalize themselves and fixtures depending on it 16:07:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:07:28 # See #4871 16:07:28 requested_fixtures_that_should_finalize_us = [] 16:07:28 for argname in self.argnames: 16:07:28 fixturedef = request._get_active_fixturedef(argname) 16:07:28 # Saves requested fixtures in a list so we later can add our finalizer 16:07:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:07:28 # down first. This is generally handled by SetupState, but still currently 16:07:28 # needed when this fixture is not parametrized but depends on a parametrized 16:07:28 # fixture. 16:07:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:07:28 16:07:28 # Check for (and return) cached value/exception. 16:07:28 if self.cached_result is not None: 16:07:28 request_cache_key = self.cache_key(request) 16:07:28 cache_key = self.cached_result[1] 16:07:28 try: 16:07:28 # Attempt to make a normal == check: this might fail for objects 16:07:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:07:28 cache_hit = bool(request_cache_key == cache_key) 16:07:28 except (ValueError, RuntimeError): 16:07:28 # If the comparison raises, use 'is' as fallback. 16:07:28 cache_hit = request_cache_key is cache_key 16:07:28 16:07:28 if cache_hit: 16:07:28 if self.cached_result[2] is not None: 16:07:28 exc, exc_tb = self.cached_result[2] 16:07:28 raise exc.with_traceback(exc_tb) 16:07:28 else: 16:07:28 return self.cached_result[0] 16:07:28 # We have a previous but differently parametrized fixture instance 16:07:28 # so we need to tear it down before creating a new one. 16:07:28 self.finish(request) 16:07:28 assert self.cached_result is None 16:07:28 16:07:28 # Add finalizer to requested fixtures we saved previously. 16:07:28 # We make sure to do this after checking for cached value to avoid 16:07:28 # adding our finalizer multiple times. (#12135) 16:07:28 finalizer = functools.partial(self.finish, request=request) 16:07:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:07:28 parent_fixture.addfinalizer(finalizer) 16:07:28 16:07:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:07:28 # which is executed last. 16:07:28 > assert not self._finalizers 16:07:28 ^^^^^^^^^^^^^^^^^^^^ 16:07:28 E AssertionError 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:07:28 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 16:07:28 16:07:28 cls = 16:07:28 func = . at 0x7f69aafe6520> 16:07:28 when = 'setup' 16:07:28 reraise = (, ) 16:07:28 16:07:28 @classmethod 16:07:28 def from_call( 16:07:28 cls, 16:07:28 func: Callable[[], TResult], 16:07:28 when: Literal["collect", "setup", "call", "teardown"], 16:07:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:07:28 ) -> CallInfo[TResult]: 16:07:28 """Call func, wrapping the result in a CallInfo. 16:07:28 16:07:28 :param func: 16:07:28 The function to call. Called without arguments. 16:07:28 :type func: Callable[[], _pytest.runner.TResult] 16:07:28 :param when: 16:07:28 The phase in which the function is called. 16:07:28 :param reraise: 16:07:28 Exception or exceptions that shall propagate if raised by the 16:07:28 function, instead of being wrapped in the CallInfo. 16:07:28 """ 16:07:28 excinfo = None 16:07:28 instant = timing.Instant() 16:07:28 try: 16:07:28 > result: TResult | None = func() 16:07:28 ^^^^^^ 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:07:28 lambda: runtest_hook(item=item, **kwds), 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:07:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:07:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:07:28 yield 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:07:28 return (yield) 16:07:28 ^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:07:28 item.session._setupstate.setup(item) 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:07:28 col.setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:07:28 super().setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:07:28 self._request._fillfixtures() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:07:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:07:28 fixturedef = self._get_active_fixturedef(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:07:28 fixturedef.execute(request=subrequest) 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 16:07:28 self = 16:07:28 request = > 16:07:28 16:07:28 def execute(self, request: SubRequest) -> FixtureValue: 16:07:28 """Return the value of this fixture, executing it if not cached.""" 16:07:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:07:28 # This needs to be done before checking if we have a cached value, since 16:07:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:07:28 # parametrization, they finalize themselves and fixtures depending on it 16:07:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:07:28 # See #4871 16:07:28 requested_fixtures_that_should_finalize_us = [] 16:07:28 for argname in self.argnames: 16:07:28 fixturedef = request._get_active_fixturedef(argname) 16:07:28 # Saves requested fixtures in a list so we later can add our finalizer 16:07:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:07:28 # down first. This is generally handled by SetupState, but still currently 16:07:28 # needed when this fixture is not parametrized but depends on a parametrized 16:07:28 # fixture. 16:07:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:07:28 16:07:28 # Check for (and return) cached value/exception. 16:07:28 if self.cached_result is not None: 16:07:28 request_cache_key = self.cache_key(request) 16:07:28 cache_key = self.cached_result[1] 16:07:28 try: 16:07:28 # Attempt to make a normal == check: this might fail for objects 16:07:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:07:28 cache_hit = bool(request_cache_key == cache_key) 16:07:28 except (ValueError, RuntimeError): 16:07:28 # If the comparison raises, use 'is' as fallback. 16:07:28 cache_hit = request_cache_key is cache_key 16:07:28 16:07:28 if cache_hit: 16:07:28 if self.cached_result[2] is not None: 16:07:28 exc, exc_tb = self.cached_result[2] 16:07:28 raise exc.with_traceback(exc_tb) 16:07:28 else: 16:07:28 return self.cached_result[0] 16:07:28 # We have a previous but differently parametrized fixture instance 16:07:28 # so we need to tear it down before creating a new one. 16:07:28 self.finish(request) 16:07:28 assert self.cached_result is None 16:07:28 16:07:28 # Add finalizer to requested fixtures we saved previously. 16:07:28 # We make sure to do this after checking for cached value to avoid 16:07:28 # adding our finalizer multiple times. (#12135) 16:07:28 finalizer = functools.partial(self.finish, request=request) 16:07:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:07:28 parent_fixture.addfinalizer(finalizer) 16:07:28 16:07:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:07:28 # which is executed last. 16:07:28 > assert not self._finalizers 16:07:28 ^^^^^^^^^^^^^^^^^^^^ 16:07:28 E AssertionError 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:07:28 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 16:07:28 16:07:28 cls = 16:07:28 func = . at 0x7f69a82b5620> 16:07:28 when = 'setup' 16:07:28 reraise = (, ) 16:07:28 16:07:28 @classmethod 16:07:28 def from_call( 16:07:28 cls, 16:07:28 func: Callable[[], TResult], 16:07:28 when: Literal["collect", "setup", "call", "teardown"], 16:07:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:07:28 ) -> CallInfo[TResult]: 16:07:28 """Call func, wrapping the result in a CallInfo. 16:07:28 16:07:28 :param func: 16:07:28 The function to call. Called without arguments. 16:07:28 :type func: Callable[[], _pytest.runner.TResult] 16:07:28 :param when: 16:07:28 The phase in which the function is called. 16:07:28 :param reraise: 16:07:28 Exception or exceptions that shall propagate if raised by the 16:07:28 function, instead of being wrapped in the CallInfo. 16:07:28 """ 16:07:28 excinfo = None 16:07:28 instant = timing.Instant() 16:07:28 try: 16:07:28 > result: TResult | None = func() 16:07:28 ^^^^^^ 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:07:28 lambda: runtest_hook(item=item, **kwds), 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:07:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:07:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:07:28 yield 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:07:28 return (yield) 16:07:28 ^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:07:28 item.session._setupstate.setup(item) 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:07:28 col.setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:07:28 super().setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:07:28 self._request._fillfixtures() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:07:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:07:28 fixturedef = self._get_active_fixturedef(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:07:28 fixturedef.execute(request=subrequest) 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 16:07:28 self = 16:07:28 request = > 16:07:28 16:07:28 def execute(self, request: SubRequest) -> FixtureValue: 16:07:28 """Return the value of this fixture, executing it if not cached.""" 16:07:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:07:28 # This needs to be done before checking if we have a cached value, since 16:07:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:07:28 # parametrization, they finalize themselves and fixtures depending on it 16:07:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:07:28 # See #4871 16:07:28 requested_fixtures_that_should_finalize_us = [] 16:07:28 for argname in self.argnames: 16:07:28 fixturedef = request._get_active_fixturedef(argname) 16:07:28 # Saves requested fixtures in a list so we later can add our finalizer 16:07:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:07:28 # down first. This is generally handled by SetupState, but still currently 16:07:28 # needed when this fixture is not parametrized but depends on a parametrized 16:07:28 # fixture. 16:07:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:07:28 16:07:28 # Check for (and return) cached value/exception. 16:07:28 if self.cached_result is not None: 16:07:28 request_cache_key = self.cache_key(request) 16:07:28 cache_key = self.cached_result[1] 16:07:28 try: 16:07:28 # Attempt to make a normal == check: this might fail for objects 16:07:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:07:28 cache_hit = bool(request_cache_key == cache_key) 16:07:28 except (ValueError, RuntimeError): 16:07:28 # If the comparison raises, use 'is' as fallback. 16:07:28 cache_hit = request_cache_key is cache_key 16:07:28 16:07:28 if cache_hit: 16:07:28 if self.cached_result[2] is not None: 16:07:28 exc, exc_tb = self.cached_result[2] 16:07:28 raise exc.with_traceback(exc_tb) 16:07:28 else: 16:07:28 return self.cached_result[0] 16:07:28 # We have a previous but differently parametrized fixture instance 16:07:28 # so we need to tear it down before creating a new one. 16:07:28 self.finish(request) 16:07:28 assert self.cached_result is None 16:07:28 16:07:28 # Add finalizer to requested fixtures we saved previously. 16:07:28 # We make sure to do this after checking for cached value to avoid 16:07:28 # adding our finalizer multiple times. (#12135) 16:07:28 finalizer = functools.partial(self.finish, request=request) 16:07:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:07:28 parent_fixture.addfinalizer(finalizer) 16:07:28 16:07:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:07:28 # which is executed last. 16:07:28 > assert not self._finalizers 16:07:28 ^^^^^^^^^^^^^^^^^^^^ 16:07:28 E AssertionError 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:07:28 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 16:07:28 16:07:28 cls = 16:07:28 func = . at 0x7f69a8b7ae80> 16:07:28 when = 'setup' 16:07:28 reraise = (, ) 16:07:28 16:07:28 @classmethod 16:07:28 def from_call( 16:07:28 cls, 16:07:28 func: Callable[[], TResult], 16:07:28 when: Literal["collect", "setup", "call", "teardown"], 16:07:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:07:28 ) -> CallInfo[TResult]: 16:07:28 """Call func, wrapping the result in a CallInfo. 16:07:28 16:07:28 :param func: 16:07:28 The function to call. Called without arguments. 16:07:28 :type func: Callable[[], _pytest.runner.TResult] 16:07:28 :param when: 16:07:28 The phase in which the function is called. 16:07:28 :param reraise: 16:07:28 Exception or exceptions that shall propagate if raised by the 16:07:28 function, instead of being wrapped in the CallInfo. 16:07:28 """ 16:07:28 excinfo = None 16:07:28 instant = timing.Instant() 16:07:28 try: 16:07:28 > result: TResult | None = func() 16:07:28 ^^^^^^ 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:07:28 lambda: runtest_hook(item=item, **kwds), 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:07:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:07:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:07:28 yield 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:07:28 return (yield) 16:07:28 ^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:07:28 item.session._setupstate.setup(item) 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:07:28 col.setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:07:28 super().setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:07:28 self._request._fillfixtures() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:07:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:07:28 fixturedef = self._get_active_fixturedef(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:07:28 fixturedef.execute(request=subrequest) 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 16:07:28 self = 16:07:28 request = > 16:07:28 16:07:28 def execute(self, request: SubRequest) -> FixtureValue: 16:07:28 """Return the value of this fixture, executing it if not cached.""" 16:07:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:07:28 # This needs to be done before checking if we have a cached value, since 16:07:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:07:28 # parametrization, they finalize themselves and fixtures depending on it 16:07:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:07:28 # See #4871 16:07:28 requested_fixtures_that_should_finalize_us = [] 16:07:28 for argname in self.argnames: 16:07:28 fixturedef = request._get_active_fixturedef(argname) 16:07:28 # Saves requested fixtures in a list so we later can add our finalizer 16:07:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:07:28 # down first. This is generally handled by SetupState, but still currently 16:07:28 # needed when this fixture is not parametrized but depends on a parametrized 16:07:28 # fixture. 16:07:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:07:28 16:07:28 # Check for (and return) cached value/exception. 16:07:28 if self.cached_result is not None: 16:07:28 request_cache_key = self.cache_key(request) 16:07:28 cache_key = self.cached_result[1] 16:07:28 try: 16:07:28 # Attempt to make a normal == check: this might fail for objects 16:07:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:07:28 cache_hit = bool(request_cache_key == cache_key) 16:07:28 except (ValueError, RuntimeError): 16:07:28 # If the comparison raises, use 'is' as fallback. 16:07:28 cache_hit = request_cache_key is cache_key 16:07:28 16:07:28 if cache_hit: 16:07:28 if self.cached_result[2] is not None: 16:07:28 exc, exc_tb = self.cached_result[2] 16:07:28 raise exc.with_traceback(exc_tb) 16:07:28 else: 16:07:28 return self.cached_result[0] 16:07:28 # We have a previous but differently parametrized fixture instance 16:07:28 # so we need to tear it down before creating a new one. 16:07:28 self.finish(request) 16:07:28 assert self.cached_result is None 16:07:28 16:07:28 # Add finalizer to requested fixtures we saved previously. 16:07:28 # We make sure to do this after checking for cached value to avoid 16:07:28 # adding our finalizer multiple times. (#12135) 16:07:28 finalizer = functools.partial(self.finish, request=request) 16:07:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:07:28 parent_fixture.addfinalizer(finalizer) 16:07:28 16:07:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:07:28 # which is executed last. 16:07:28 > assert not self._finalizers 16:07:28 ^^^^^^^^^^^^^^^^^^^^ 16:07:28 E AssertionError 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:07:28 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 16:07:28 16:07:28 cls = 16:07:28 func = . at 0x7f69a8b8f380> 16:07:28 when = 'setup' 16:07:28 reraise = (, ) 16:07:28 16:07:28 @classmethod 16:07:28 def from_call( 16:07:28 cls, 16:07:28 func: Callable[[], TResult], 16:07:28 when: Literal["collect", "setup", "call", "teardown"], 16:07:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:07:28 ) -> CallInfo[TResult]: 16:07:28 """Call func, wrapping the result in a CallInfo. 16:07:28 16:07:28 :param func: 16:07:28 The function to call. Called without arguments. 16:07:28 :type func: Callable[[], _pytest.runner.TResult] 16:07:28 :param when: 16:07:28 The phase in which the function is called. 16:07:28 :param reraise: 16:07:28 Exception or exceptions that shall propagate if raised by the 16:07:28 function, instead of being wrapped in the CallInfo. 16:07:28 """ 16:07:28 excinfo = None 16:07:28 instant = timing.Instant() 16:07:28 try: 16:07:28 > result: TResult | None = func() 16:07:28 ^^^^^^ 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:07:28 lambda: runtest_hook(item=item, **kwds), 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:07:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:07:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:07:28 yield 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:07:28 return (yield) 16:07:28 ^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:07:28 item.session._setupstate.setup(item) 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:07:28 col.setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:07:28 super().setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:07:28 self._request._fillfixtures() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:07:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:07:28 fixturedef = self._get_active_fixturedef(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:07:28 fixturedef.execute(request=subrequest) 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 16:07:28 self = 16:07:28 request = > 16:07:28 16:07:28 def execute(self, request: SubRequest) -> FixtureValue: 16:07:28 """Return the value of this fixture, executing it if not cached.""" 16:07:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:07:28 # This needs to be done before checking if we have a cached value, since 16:07:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:07:28 # parametrization, they finalize themselves and fixtures depending on it 16:07:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:07:28 # See #4871 16:07:28 requested_fixtures_that_should_finalize_us = [] 16:07:28 for argname in self.argnames: 16:07:28 fixturedef = request._get_active_fixturedef(argname) 16:07:28 # Saves requested fixtures in a list so we later can add our finalizer 16:07:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:07:28 # down first. This is generally handled by SetupState, but still currently 16:07:28 # needed when this fixture is not parametrized but depends on a parametrized 16:07:28 # fixture. 16:07:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:07:28 16:07:28 # Check for (and return) cached value/exception. 16:07:28 if self.cached_result is not None: 16:07:28 request_cache_key = self.cache_key(request) 16:07:28 cache_key = self.cached_result[1] 16:07:28 try: 16:07:28 # Attempt to make a normal == check: this might fail for objects 16:07:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:07:28 cache_hit = bool(request_cache_key == cache_key) 16:07:28 except (ValueError, RuntimeError): 16:07:28 # If the comparison raises, use 'is' as fallback. 16:07:28 cache_hit = request_cache_key is cache_key 16:07:28 16:07:28 if cache_hit: 16:07:28 if self.cached_result[2] is not None: 16:07:28 exc, exc_tb = self.cached_result[2] 16:07:28 raise exc.with_traceback(exc_tb) 16:07:28 else: 16:07:28 return self.cached_result[0] 16:07:28 # We have a previous but differently parametrized fixture instance 16:07:28 # so we need to tear it down before creating a new one. 16:07:28 self.finish(request) 16:07:28 assert self.cached_result is None 16:07:28 16:07:28 # Add finalizer to requested fixtures we saved previously. 16:07:28 # We make sure to do this after checking for cached value to avoid 16:07:28 # adding our finalizer multiple times. (#12135) 16:07:28 finalizer = functools.partial(self.finish, request=request) 16:07:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:07:28 parent_fixture.addfinalizer(finalizer) 16:07:28 16:07:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:07:28 # which is executed last. 16:07:28 > assert not self._finalizers 16:07:28 ^^^^^^^^^^^^^^^^^^^^ 16:07:28 E AssertionError 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:07:28 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 16:07:28 16:07:28 cls = 16:07:28 func = . at 0x7f69a8b7ae80> 16:07:28 when = 'setup' 16:07:28 reraise = (, ) 16:07:28 16:07:28 @classmethod 16:07:28 def from_call( 16:07:28 cls, 16:07:28 func: Callable[[], TResult], 16:07:28 when: Literal["collect", "setup", "call", "teardown"], 16:07:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:07:28 ) -> CallInfo[TResult]: 16:07:28 """Call func, wrapping the result in a CallInfo. 16:07:28 16:07:28 :param func: 16:07:28 The function to call. Called without arguments. 16:07:28 :type func: Callable[[], _pytest.runner.TResult] 16:07:28 :param when: 16:07:28 The phase in which the function is called. 16:07:28 :param reraise: 16:07:28 Exception or exceptions that shall propagate if raised by the 16:07:28 function, instead of being wrapped in the CallInfo. 16:07:28 """ 16:07:28 excinfo = None 16:07:28 instant = timing.Instant() 16:07:28 try: 16:07:28 > result: TResult | None = func() 16:07:28 ^^^^^^ 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:07:28 lambda: runtest_hook(item=item, **kwds), 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:07:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:07:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:07:28 yield 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:07:28 return (yield) 16:07:28 ^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:07:28 item.session._setupstate.setup(item) 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:07:28 col.setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:07:28 super().setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:07:28 self._request._fillfixtures() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:07:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:07:28 fixturedef = self._get_active_fixturedef(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:07:28 fixturedef.execute(request=subrequest) 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 16:07:28 self = 16:07:28 request = > 16:07:28 16:07:28 def execute(self, request: SubRequest) -> FixtureValue: 16:07:28 """Return the value of this fixture, executing it if not cached.""" 16:07:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:07:28 # This needs to be done before checking if we have a cached value, since 16:07:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:07:28 # parametrization, they finalize themselves and fixtures depending on it 16:07:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:07:28 # See #4871 16:07:28 requested_fixtures_that_should_finalize_us = [] 16:07:28 for argname in self.argnames: 16:07:28 fixturedef = request._get_active_fixturedef(argname) 16:07:28 # Saves requested fixtures in a list so we later can add our finalizer 16:07:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:07:28 # down first. This is generally handled by SetupState, but still currently 16:07:28 # needed when this fixture is not parametrized but depends on a parametrized 16:07:28 # fixture. 16:07:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:07:28 16:07:28 # Check for (and return) cached value/exception. 16:07:28 if self.cached_result is not None: 16:07:28 request_cache_key = self.cache_key(request) 16:07:28 cache_key = self.cached_result[1] 16:07:28 try: 16:07:28 # Attempt to make a normal == check: this might fail for objects 16:07:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:07:28 cache_hit = bool(request_cache_key == cache_key) 16:07:28 except (ValueError, RuntimeError): 16:07:28 # If the comparison raises, use 'is' as fallback. 16:07:28 cache_hit = request_cache_key is cache_key 16:07:28 16:07:28 if cache_hit: 16:07:28 if self.cached_result[2] is not None: 16:07:28 exc, exc_tb = self.cached_result[2] 16:07:28 raise exc.with_traceback(exc_tb) 16:07:28 else: 16:07:28 return self.cached_result[0] 16:07:28 # We have a previous but differently parametrized fixture instance 16:07:28 # so we need to tear it down before creating a new one. 16:07:28 self.finish(request) 16:07:28 assert self.cached_result is None 16:07:28 16:07:28 # Add finalizer to requested fixtures we saved previously. 16:07:28 # We make sure to do this after checking for cached value to avoid 16:07:28 # adding our finalizer multiple times. (#12135) 16:07:28 finalizer = functools.partial(self.finish, request=request) 16:07:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:07:28 parent_fixture.addfinalizer(finalizer) 16:07:28 16:07:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:07:28 # which is executed last. 16:07:28 > assert not self._finalizers 16:07:28 ^^^^^^^^^^^^^^^^^^^^ 16:07:28 E AssertionError 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:07:28 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 16:07:28 16:07:28 cls = 16:07:28 func = . at 0x7f69a82b5620> 16:07:28 when = 'setup' 16:07:28 reraise = (, ) 16:07:28 16:07:28 @classmethod 16:07:28 def from_call( 16:07:28 cls, 16:07:28 func: Callable[[], TResult], 16:07:28 when: Literal["collect", "setup", "call", "teardown"], 16:07:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:07:28 ) -> CallInfo[TResult]: 16:07:28 """Call func, wrapping the result in a CallInfo. 16:07:28 16:07:28 :param func: 16:07:28 The function to call. Called without arguments. 16:07:28 :type func: Callable[[], _pytest.runner.TResult] 16:07:28 :param when: 16:07:28 The phase in which the function is called. 16:07:28 :param reraise: 16:07:28 Exception or exceptions that shall propagate if raised by the 16:07:28 function, instead of being wrapped in the CallInfo. 16:07:28 """ 16:07:28 excinfo = None 16:07:28 instant = timing.Instant() 16:07:28 try: 16:07:28 > result: TResult | None = func() 16:07:28 ^^^^^^ 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:07:28 lambda: runtest_hook(item=item, **kwds), 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:07:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:07:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:07:28 yield 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:07:28 return (yield) 16:07:28 ^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:07:28 item.session._setupstate.setup(item) 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:07:28 col.setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:07:28 super().setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:07:28 self._request._fillfixtures() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:07:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:07:28 fixturedef = self._get_active_fixturedef(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:07:28 fixturedef.execute(request=subrequest) 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 16:07:28 self = 16:07:28 request = > 16:07:28 16:07:28 def execute(self, request: SubRequest) -> FixtureValue: 16:07:28 """Return the value of this fixture, executing it if not cached.""" 16:07:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:07:28 # This needs to be done before checking if we have a cached value, since 16:07:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:07:28 # parametrization, they finalize themselves and fixtures depending on it 16:07:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:07:28 # See #4871 16:07:28 requested_fixtures_that_should_finalize_us = [] 16:07:28 for argname in self.argnames: 16:07:28 fixturedef = request._get_active_fixturedef(argname) 16:07:28 # Saves requested fixtures in a list so we later can add our finalizer 16:07:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:07:28 # down first. This is generally handled by SetupState, but still currently 16:07:28 # needed when this fixture is not parametrized but depends on a parametrized 16:07:28 # fixture. 16:07:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:07:28 16:07:28 # Check for (and return) cached value/exception. 16:07:28 if self.cached_result is not None: 16:07:28 request_cache_key = self.cache_key(request) 16:07:28 cache_key = self.cached_result[1] 16:07:28 try: 16:07:28 # Attempt to make a normal == check: this might fail for objects 16:07:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:07:28 cache_hit = bool(request_cache_key == cache_key) 16:07:28 except (ValueError, RuntimeError): 16:07:28 # If the comparison raises, use 'is' as fallback. 16:07:28 cache_hit = request_cache_key is cache_key 16:07:28 16:07:28 if cache_hit: 16:07:28 if self.cached_result[2] is not None: 16:07:28 exc, exc_tb = self.cached_result[2] 16:07:28 raise exc.with_traceback(exc_tb) 16:07:28 else: 16:07:28 return self.cached_result[0] 16:07:28 # We have a previous but differently parametrized fixture instance 16:07:28 # so we need to tear it down before creating a new one. 16:07:28 self.finish(request) 16:07:28 assert self.cached_result is None 16:07:28 16:07:28 # Add finalizer to requested fixtures we saved previously. 16:07:28 # We make sure to do this after checking for cached value to avoid 16:07:28 # adding our finalizer multiple times. (#12135) 16:07:28 finalizer = functools.partial(self.finish, request=request) 16:07:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:07:28 parent_fixture.addfinalizer(finalizer) 16:07:28 16:07:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:07:28 # which is executed last. 16:07:28 > assert not self._finalizers 16:07:28 ^^^^^^^^^^^^^^^^^^^^ 16:07:28 E AssertionError 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:07:28 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 16:07:28 16:07:28 cls = 16:07:28 func = . at 0x7f69aafe6520> 16:07:28 when = 'setup' 16:07:28 reraise = (, ) 16:07:28 16:07:28 @classmethod 16:07:28 def from_call( 16:07:28 cls, 16:07:28 func: Callable[[], TResult], 16:07:28 when: Literal["collect", "setup", "call", "teardown"], 16:07:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:07:28 ) -> CallInfo[TResult]: 16:07:28 """Call func, wrapping the result in a CallInfo. 16:07:28 16:07:28 :param func: 16:07:28 The function to call. Called without arguments. 16:07:28 :type func: Callable[[], _pytest.runner.TResult] 16:07:28 :param when: 16:07:28 The phase in which the function is called. 16:07:28 :param reraise: 16:07:28 Exception or exceptions that shall propagate if raised by the 16:07:28 function, instead of being wrapped in the CallInfo. 16:07:28 """ 16:07:28 excinfo = None 16:07:28 instant = timing.Instant() 16:07:28 try: 16:07:28 > result: TResult | None = func() 16:07:28 ^^^^^^ 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:07:28 lambda: runtest_hook(item=item, **kwds), 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:07:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:07:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:07:28 yield 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:07:28 return (yield) 16:07:28 ^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:07:28 item.session._setupstate.setup(item) 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:07:28 col.setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:07:28 super().setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:07:28 self._request._fillfixtures() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:07:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:07:28 fixturedef = self._get_active_fixturedef(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:07:28 fixturedef.execute(request=subrequest) 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 16:07:28 self = 16:07:28 request = > 16:07:28 16:07:28 def execute(self, request: SubRequest) -> FixtureValue: 16:07:28 """Return the value of this fixture, executing it if not cached.""" 16:07:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:07:28 # This needs to be done before checking if we have a cached value, since 16:07:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:07:28 # parametrization, they finalize themselves and fixtures depending on it 16:07:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:07:28 # See #4871 16:07:28 requested_fixtures_that_should_finalize_us = [] 16:07:28 for argname in self.argnames: 16:07:28 fixturedef = request._get_active_fixturedef(argname) 16:07:28 # Saves requested fixtures in a list so we later can add our finalizer 16:07:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:07:28 # down first. This is generally handled by SetupState, but still currently 16:07:28 # needed when this fixture is not parametrized but depends on a parametrized 16:07:28 # fixture. 16:07:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:07:28 16:07:28 # Check for (and return) cached value/exception. 16:07:28 if self.cached_result is not None: 16:07:28 request_cache_key = self.cache_key(request) 16:07:28 cache_key = self.cached_result[1] 16:07:28 try: 16:07:28 # Attempt to make a normal == check: this might fail for objects 16:07:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:07:28 cache_hit = bool(request_cache_key == cache_key) 16:07:28 except (ValueError, RuntimeError): 16:07:28 # If the comparison raises, use 'is' as fallback. 16:07:28 cache_hit = request_cache_key is cache_key 16:07:28 16:07:28 if cache_hit: 16:07:28 if self.cached_result[2] is not None: 16:07:28 exc, exc_tb = self.cached_result[2] 16:07:28 raise exc.with_traceback(exc_tb) 16:07:28 else: 16:07:28 return self.cached_result[0] 16:07:28 # We have a previous but differently parametrized fixture instance 16:07:28 # so we need to tear it down before creating a new one. 16:07:28 self.finish(request) 16:07:28 assert self.cached_result is None 16:07:28 16:07:28 # Add finalizer to requested fixtures we saved previously. 16:07:28 # We make sure to do this after checking for cached value to avoid 16:07:28 # adding our finalizer multiple times. (#12135) 16:07:28 finalizer = functools.partial(self.finish, request=request) 16:07:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:07:28 parent_fixture.addfinalizer(finalizer) 16:07:28 16:07:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:07:28 # which is executed last. 16:07:28 > assert not self._finalizers 16:07:28 ^^^^^^^^^^^^^^^^^^^^ 16:07:28 E AssertionError 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:07:28 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 16:07:28 16:07:28 cls = 16:07:28 func = . at 0x7f69a8b8f380> 16:07:28 when = 'setup' 16:07:28 reraise = (, ) 16:07:28 16:07:28 @classmethod 16:07:28 def from_call( 16:07:28 cls, 16:07:28 func: Callable[[], TResult], 16:07:28 when: Literal["collect", "setup", "call", "teardown"], 16:07:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:07:28 ) -> CallInfo[TResult]: 16:07:28 """Call func, wrapping the result in a CallInfo. 16:07:28 16:07:28 :param func: 16:07:28 The function to call. Called without arguments. 16:07:28 :type func: Callable[[], _pytest.runner.TResult] 16:07:28 :param when: 16:07:28 The phase in which the function is called. 16:07:28 :param reraise: 16:07:28 Exception or exceptions that shall propagate if raised by the 16:07:28 function, instead of being wrapped in the CallInfo. 16:07:28 """ 16:07:28 excinfo = None 16:07:28 instant = timing.Instant() 16:07:28 try: 16:07:28 > result: TResult | None = func() 16:07:28 ^^^^^^ 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:07:28 lambda: runtest_hook(item=item, **kwds), 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:07:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:07:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:07:28 yield 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:07:28 return (yield) 16:07:28 ^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:07:28 item.session._setupstate.setup(item) 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:07:28 col.setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:07:28 super().setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:07:28 self._request._fillfixtures() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:07:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:07:28 fixturedef = self._get_active_fixturedef(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:07:28 fixturedef.execute(request=subrequest) 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 16:07:28 self = 16:07:28 request = > 16:07:28 16:07:28 def execute(self, request: SubRequest) -> FixtureValue: 16:07:28 """Return the value of this fixture, executing it if not cached.""" 16:07:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:07:28 # This needs to be done before checking if we have a cached value, since 16:07:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:07:28 # parametrization, they finalize themselves and fixtures depending on it 16:07:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:07:28 # See #4871 16:07:28 requested_fixtures_that_should_finalize_us = [] 16:07:28 for argname in self.argnames: 16:07:28 fixturedef = request._get_active_fixturedef(argname) 16:07:28 # Saves requested fixtures in a list so we later can add our finalizer 16:07:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:07:28 # down first. This is generally handled by SetupState, but still currently 16:07:28 # needed when this fixture is not parametrized but depends on a parametrized 16:07:28 # fixture. 16:07:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:07:28 16:07:28 # Check for (and return) cached value/exception. 16:07:28 if self.cached_result is not None: 16:07:28 request_cache_key = self.cache_key(request) 16:07:28 cache_key = self.cached_result[1] 16:07:28 try: 16:07:28 # Attempt to make a normal == check: this might fail for objects 16:07:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:07:28 cache_hit = bool(request_cache_key == cache_key) 16:07:28 except (ValueError, RuntimeError): 16:07:28 # If the comparison raises, use 'is' as fallback. 16:07:28 cache_hit = request_cache_key is cache_key 16:07:28 16:07:28 if cache_hit: 16:07:28 if self.cached_result[2] is not None: 16:07:28 exc, exc_tb = self.cached_result[2] 16:07:28 raise exc.with_traceback(exc_tb) 16:07:28 else: 16:07:28 return self.cached_result[0] 16:07:28 # We have a previous but differently parametrized fixture instance 16:07:28 # so we need to tear it down before creating a new one. 16:07:28 self.finish(request) 16:07:28 assert self.cached_result is None 16:07:28 16:07:28 # Add finalizer to requested fixtures we saved previously. 16:07:28 # We make sure to do this after checking for cached value to avoid 16:07:28 # adding our finalizer multiple times. (#12135) 16:07:28 finalizer = functools.partial(self.finish, request=request) 16:07:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:07:28 parent_fixture.addfinalizer(finalizer) 16:07:28 16:07:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:07:28 # which is executed last. 16:07:28 > assert not self._finalizers 16:07:28 ^^^^^^^^^^^^^^^^^^^^ 16:07:28 E AssertionError 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:07:28 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 16:07:28 16:07:28 cls = 16:07:28 func = . at 0x7f69a82b6200> 16:07:28 when = 'setup' 16:07:28 reraise = (, ) 16:07:28 16:07:28 @classmethod 16:07:28 def from_call( 16:07:28 cls, 16:07:28 func: Callable[[], TResult], 16:07:28 when: Literal["collect", "setup", "call", "teardown"], 16:07:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:07:28 ) -> CallInfo[TResult]: 16:07:28 """Call func, wrapping the result in a CallInfo. 16:07:28 16:07:28 :param func: 16:07:28 The function to call. Called without arguments. 16:07:28 :type func: Callable[[], _pytest.runner.TResult] 16:07:28 :param when: 16:07:28 The phase in which the function is called. 16:07:28 :param reraise: 16:07:28 Exception or exceptions that shall propagate if raised by the 16:07:28 function, instead of being wrapped in the CallInfo. 16:07:28 """ 16:07:28 excinfo = None 16:07:28 instant = timing.Instant() 16:07:28 try: 16:07:28 > result: TResult | None = func() 16:07:28 ^^^^^^ 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:07:28 lambda: runtest_hook(item=item, **kwds), 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:07:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:07:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:07:28 yield 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:07:28 return (yield) 16:07:28 ^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:07:28 item.session._setupstate.setup(item) 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:07:28 col.setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:07:28 super().setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:07:28 self._request._fillfixtures() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:07:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:07:28 fixturedef = self._get_active_fixturedef(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:07:28 fixturedef.execute(request=subrequest) 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 16:07:28 self = 16:07:28 request = > 16:07:28 16:07:28 def execute(self, request: SubRequest) -> FixtureValue: 16:07:28 """Return the value of this fixture, executing it if not cached.""" 16:07:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:07:28 # This needs to be done before checking if we have a cached value, since 16:07:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:07:28 # parametrization, they finalize themselves and fixtures depending on it 16:07:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:07:28 # See #4871 16:07:28 requested_fixtures_that_should_finalize_us = [] 16:07:28 for argname in self.argnames: 16:07:28 fixturedef = request._get_active_fixturedef(argname) 16:07:28 # Saves requested fixtures in a list so we later can add our finalizer 16:07:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:07:28 # down first. This is generally handled by SetupState, but still currently 16:07:28 # needed when this fixture is not parametrized but depends on a parametrized 16:07:28 # fixture. 16:07:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:07:28 16:07:28 # Check for (and return) cached value/exception. 16:07:28 if self.cached_result is not None: 16:07:28 request_cache_key = self.cache_key(request) 16:07:28 cache_key = self.cached_result[1] 16:07:28 try: 16:07:28 # Attempt to make a normal == check: this might fail for objects 16:07:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:07:28 cache_hit = bool(request_cache_key == cache_key) 16:07:28 except (ValueError, RuntimeError): 16:07:28 # If the comparison raises, use 'is' as fallback. 16:07:28 cache_hit = request_cache_key is cache_key 16:07:28 16:07:28 if cache_hit: 16:07:28 if self.cached_result[2] is not None: 16:07:28 exc, exc_tb = self.cached_result[2] 16:07:28 raise exc.with_traceback(exc_tb) 16:07:28 else: 16:07:28 return self.cached_result[0] 16:07:28 # We have a previous but differently parametrized fixture instance 16:07:28 # so we need to tear it down before creating a new one. 16:07:28 self.finish(request) 16:07:28 assert self.cached_result is None 16:07:28 16:07:28 # Add finalizer to requested fixtures we saved previously. 16:07:28 # We make sure to do this after checking for cached value to avoid 16:07:28 # adding our finalizer multiple times. (#12135) 16:07:28 finalizer = functools.partial(self.finish, request=request) 16:07:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:07:28 parent_fixture.addfinalizer(finalizer) 16:07:28 16:07:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:07:28 # which is executed last. 16:07:28 > assert not self._finalizers 16:07:28 ^^^^^^^^^^^^^^^^^^^^ 16:07:28 E AssertionError 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:07:28 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 16:07:28 16:07:28 cls = 16:07:28 func = . at 0x7f69aafe6520> 16:07:28 when = 'setup' 16:07:28 reraise = (, ) 16:07:28 16:07:28 @classmethod 16:07:28 def from_call( 16:07:28 cls, 16:07:28 func: Callable[[], TResult], 16:07:28 when: Literal["collect", "setup", "call", "teardown"], 16:07:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:07:28 ) -> CallInfo[TResult]: 16:07:28 """Call func, wrapping the result in a CallInfo. 16:07:28 16:07:28 :param func: 16:07:28 The function to call. Called without arguments. 16:07:28 :type func: Callable[[], _pytest.runner.TResult] 16:07:28 :param when: 16:07:28 The phase in which the function is called. 16:07:28 :param reraise: 16:07:28 Exception or exceptions that shall propagate if raised by the 16:07:28 function, instead of being wrapped in the CallInfo. 16:07:28 """ 16:07:28 excinfo = None 16:07:28 instant = timing.Instant() 16:07:28 try: 16:07:28 > result: TResult | None = func() 16:07:28 ^^^^^^ 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:07:28 lambda: runtest_hook(item=item, **kwds), 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:07:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:07:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:07:28 yield 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:07:28 return (yield) 16:07:28 ^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:07:28 item.session._setupstate.setup(item) 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:07:28 col.setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:07:28 super().setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:07:28 self._request._fillfixtures() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:07:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:07:28 fixturedef = self._get_active_fixturedef(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:07:28 fixturedef.execute(request=subrequest) 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 16:07:28 self = 16:07:28 request = > 16:07:28 16:07:28 def execute(self, request: SubRequest) -> FixtureValue: 16:07:28 """Return the value of this fixture, executing it if not cached.""" 16:07:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:07:28 # This needs to be done before checking if we have a cached value, since 16:07:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:07:28 # parametrization, they finalize themselves and fixtures depending on it 16:07:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:07:28 # See #4871 16:07:28 requested_fixtures_that_should_finalize_us = [] 16:07:28 for argname in self.argnames: 16:07:28 fixturedef = request._get_active_fixturedef(argname) 16:07:28 # Saves requested fixtures in a list so we later can add our finalizer 16:07:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:07:28 # down first. This is generally handled by SetupState, but still currently 16:07:28 # needed when this fixture is not parametrized but depends on a parametrized 16:07:28 # fixture. 16:07:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:07:28 16:07:28 # Check for (and return) cached value/exception. 16:07:28 if self.cached_result is not None: 16:07:28 request_cache_key = self.cache_key(request) 16:07:28 cache_key = self.cached_result[1] 16:07:28 try: 16:07:28 # Attempt to make a normal == check: this might fail for objects 16:07:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:07:28 cache_hit = bool(request_cache_key == cache_key) 16:07:28 except (ValueError, RuntimeError): 16:07:28 # If the comparison raises, use 'is' as fallback. 16:07:28 cache_hit = request_cache_key is cache_key 16:07:28 16:07:28 if cache_hit: 16:07:28 if self.cached_result[2] is not None: 16:07:28 exc, exc_tb = self.cached_result[2] 16:07:28 raise exc.with_traceback(exc_tb) 16:07:28 else: 16:07:28 return self.cached_result[0] 16:07:28 # We have a previous but differently parametrized fixture instance 16:07:28 # so we need to tear it down before creating a new one. 16:07:28 self.finish(request) 16:07:28 assert self.cached_result is None 16:07:28 16:07:28 # Add finalizer to requested fixtures we saved previously. 16:07:28 # We make sure to do this after checking for cached value to avoid 16:07:28 # adding our finalizer multiple times. (#12135) 16:07:28 finalizer = functools.partial(self.finish, request=request) 16:07:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:07:28 parent_fixture.addfinalizer(finalizer) 16:07:28 16:07:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:07:28 # which is executed last. 16:07:28 > assert not self._finalizers 16:07:28 ^^^^^^^^^^^^^^^^^^^^ 16:07:28 E AssertionError 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:07:28 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 16:07:28 16:07:28 cls = 16:07:28 func = . at 0x7f69a8b8f380> 16:07:28 when = 'setup' 16:07:28 reraise = (, ) 16:07:28 16:07:28 @classmethod 16:07:28 def from_call( 16:07:28 cls, 16:07:28 func: Callable[[], TResult], 16:07:28 when: Literal["collect", "setup", "call", "teardown"], 16:07:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:07:28 ) -> CallInfo[TResult]: 16:07:28 """Call func, wrapping the result in a CallInfo. 16:07:28 16:07:28 :param func: 16:07:28 The function to call. Called without arguments. 16:07:28 :type func: Callable[[], _pytest.runner.TResult] 16:07:28 :param when: 16:07:28 The phase in which the function is called. 16:07:28 :param reraise: 16:07:28 Exception or exceptions that shall propagate if raised by the 16:07:28 function, instead of being wrapped in the CallInfo. 16:07:28 """ 16:07:28 excinfo = None 16:07:28 instant = timing.Instant() 16:07:28 try: 16:07:28 > result: TResult | None = func() 16:07:28 ^^^^^^ 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:07:28 lambda: runtest_hook(item=item, **kwds), 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:07:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:07:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:07:28 yield 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:07:28 return (yield) 16:07:28 ^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:07:28 item.session._setupstate.setup(item) 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:07:28 col.setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:07:28 super().setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:07:28 self._request._fillfixtures() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:07:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:07:28 fixturedef = self._get_active_fixturedef(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:07:28 fixturedef.execute(request=subrequest) 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 16:07:28 self = 16:07:28 request = > 16:07:28 16:07:28 def execute(self, request: SubRequest) -> FixtureValue: 16:07:28 """Return the value of this fixture, executing it if not cached.""" 16:07:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:07:28 # This needs to be done before checking if we have a cached value, since 16:07:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:07:28 # parametrization, they finalize themselves and fixtures depending on it 16:07:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:07:28 # See #4871 16:07:28 requested_fixtures_that_should_finalize_us = [] 16:07:28 for argname in self.argnames: 16:07:28 fixturedef = request._get_active_fixturedef(argname) 16:07:28 # Saves requested fixtures in a list so we later can add our finalizer 16:07:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:07:28 # down first. This is generally handled by SetupState, but still currently 16:07:28 # needed when this fixture is not parametrized but depends on a parametrized 16:07:28 # fixture. 16:07:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:07:28 16:07:28 # Check for (and return) cached value/exception. 16:07:28 if self.cached_result is not None: 16:07:28 request_cache_key = self.cache_key(request) 16:07:28 cache_key = self.cached_result[1] 16:07:28 try: 16:07:28 # Attempt to make a normal == check: this might fail for objects 16:07:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:07:28 cache_hit = bool(request_cache_key == cache_key) 16:07:28 except (ValueError, RuntimeError): 16:07:28 # If the comparison raises, use 'is' as fallback. 16:07:28 cache_hit = request_cache_key is cache_key 16:07:28 16:07:28 if cache_hit: 16:07:28 if self.cached_result[2] is not None: 16:07:28 exc, exc_tb = self.cached_result[2] 16:07:28 raise exc.with_traceback(exc_tb) 16:07:28 else: 16:07:28 return self.cached_result[0] 16:07:28 # We have a previous but differently parametrized fixture instance 16:07:28 # so we need to tear it down before creating a new one. 16:07:28 self.finish(request) 16:07:28 assert self.cached_result is None 16:07:28 16:07:28 # Add finalizer to requested fixtures we saved previously. 16:07:28 # We make sure to do this after checking for cached value to avoid 16:07:28 # adding our finalizer multiple times. (#12135) 16:07:28 finalizer = functools.partial(self.finish, request=request) 16:07:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:07:28 parent_fixture.addfinalizer(finalizer) 16:07:28 16:07:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:07:28 # which is executed last. 16:07:28 > assert not self._finalizers 16:07:28 ^^^^^^^^^^^^^^^^^^^^ 16:07:28 E AssertionError 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:07:28 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 16:07:28 16:07:28 cls = 16:07:28 func = . at 0x7f69a82b5b20> 16:07:28 when = 'setup' 16:07:28 reraise = (, ) 16:07:28 16:07:28 @classmethod 16:07:28 def from_call( 16:07:28 cls, 16:07:28 func: Callable[[], TResult], 16:07:28 when: Literal["collect", "setup", "call", "teardown"], 16:07:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:07:28 ) -> CallInfo[TResult]: 16:07:28 """Call func, wrapping the result in a CallInfo. 16:07:28 16:07:28 :param func: 16:07:28 The function to call. Called without arguments. 16:07:28 :type func: Callable[[], _pytest.runner.TResult] 16:07:28 :param when: 16:07:28 The phase in which the function is called. 16:07:28 :param reraise: 16:07:28 Exception or exceptions that shall propagate if raised by the 16:07:28 function, instead of being wrapped in the CallInfo. 16:07:28 """ 16:07:28 excinfo = None 16:07:28 instant = timing.Instant() 16:07:28 try: 16:07:28 > result: TResult | None = func() 16:07:28 ^^^^^^ 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:07:28 lambda: runtest_hook(item=item, **kwds), 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:07:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:07:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:07:28 yield 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:07:28 return (yield) 16:07:28 ^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:07:28 item.session._setupstate.setup(item) 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:07:28 col.setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:07:28 super().setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:07:28 self._request._fillfixtures() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:07:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:07:28 fixturedef = self._get_active_fixturedef(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:07:28 fixturedef.execute(request=subrequest) 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 16:07:28 self = 16:07:28 request = > 16:07:28 16:07:28 def execute(self, request: SubRequest) -> FixtureValue: 16:07:28 """Return the value of this fixture, executing it if not cached.""" 16:07:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:07:28 # This needs to be done before checking if we have a cached value, since 16:07:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:07:28 # parametrization, they finalize themselves and fixtures depending on it 16:07:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:07:28 # See #4871 16:07:28 requested_fixtures_that_should_finalize_us = [] 16:07:28 for argname in self.argnames: 16:07:28 fixturedef = request._get_active_fixturedef(argname) 16:07:28 # Saves requested fixtures in a list so we later can add our finalizer 16:07:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:07:28 # down first. This is generally handled by SetupState, but still currently 16:07:28 # needed when this fixture is not parametrized but depends on a parametrized 16:07:28 # fixture. 16:07:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:07:28 16:07:28 # Check for (and return) cached value/exception. 16:07:28 if self.cached_result is not None: 16:07:28 request_cache_key = self.cache_key(request) 16:07:28 cache_key = self.cached_result[1] 16:07:28 try: 16:07:28 # Attempt to make a normal == check: this might fail for objects 16:07:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:07:28 cache_hit = bool(request_cache_key == cache_key) 16:07:28 except (ValueError, RuntimeError): 16:07:28 # If the comparison raises, use 'is' as fallback. 16:07:28 cache_hit = request_cache_key is cache_key 16:07:28 16:07:28 if cache_hit: 16:07:28 if self.cached_result[2] is not None: 16:07:28 exc, exc_tb = self.cached_result[2] 16:07:28 raise exc.with_traceback(exc_tb) 16:07:28 else: 16:07:28 return self.cached_result[0] 16:07:28 # We have a previous but differently parametrized fixture instance 16:07:28 # so we need to tear it down before creating a new one. 16:07:28 self.finish(request) 16:07:28 assert self.cached_result is None 16:07:28 16:07:28 # Add finalizer to requested fixtures we saved previously. 16:07:28 # We make sure to do this after checking for cached value to avoid 16:07:28 # adding our finalizer multiple times. (#12135) 16:07:28 finalizer = functools.partial(self.finish, request=request) 16:07:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:07:28 parent_fixture.addfinalizer(finalizer) 16:07:28 16:07:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:07:28 # which is executed last. 16:07:28 > assert not self._finalizers 16:07:28 ^^^^^^^^^^^^^^^^^^^^ 16:07:28 E AssertionError 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:07:28 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 16:07:28 16:07:28 cls = 16:07:28 func = . at 0x7f69aafe6520> 16:07:28 when = 'setup' 16:07:28 reraise = (, ) 16:07:28 16:07:28 @classmethod 16:07:28 def from_call( 16:07:28 cls, 16:07:28 func: Callable[[], TResult], 16:07:28 when: Literal["collect", "setup", "call", "teardown"], 16:07:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:07:28 ) -> CallInfo[TResult]: 16:07:28 """Call func, wrapping the result in a CallInfo. 16:07:28 16:07:28 :param func: 16:07:28 The function to call. Called without arguments. 16:07:28 :type func: Callable[[], _pytest.runner.TResult] 16:07:28 :param when: 16:07:28 The phase in which the function is called. 16:07:28 :param reraise: 16:07:28 Exception or exceptions that shall propagate if raised by the 16:07:28 function, instead of being wrapped in the CallInfo. 16:07:28 """ 16:07:28 excinfo = None 16:07:28 instant = timing.Instant() 16:07:28 try: 16:07:28 > result: TResult | None = func() 16:07:28 ^^^^^^ 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:07:28 lambda: runtest_hook(item=item, **kwds), 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:07:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:07:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:07:28 yield 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:07:28 return (yield) 16:07:28 ^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:07:28 item.session._setupstate.setup(item) 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:07:28 col.setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:07:28 super().setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:07:28 self._request._fillfixtures() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:07:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:07:28 fixturedef = self._get_active_fixturedef(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:07:28 fixturedef.execute(request=subrequest) 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 16:07:28 self = 16:07:28 request = > 16:07:28 16:07:28 def execute(self, request: SubRequest) -> FixtureValue: 16:07:28 """Return the value of this fixture, executing it if not cached.""" 16:07:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:07:28 # This needs to be done before checking if we have a cached value, since 16:07:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:07:28 # parametrization, they finalize themselves and fixtures depending on it 16:07:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:07:28 # See #4871 16:07:28 requested_fixtures_that_should_finalize_us = [] 16:07:28 for argname in self.argnames: 16:07:28 fixturedef = request._get_active_fixturedef(argname) 16:07:28 # Saves requested fixtures in a list so we later can add our finalizer 16:07:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:07:28 # down first. This is generally handled by SetupState, but still currently 16:07:28 # needed when this fixture is not parametrized but depends on a parametrized 16:07:28 # fixture. 16:07:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:07:28 16:07:28 # Check for (and return) cached value/exception. 16:07:28 if self.cached_result is not None: 16:07:28 request_cache_key = self.cache_key(request) 16:07:28 cache_key = self.cached_result[1] 16:07:28 try: 16:07:28 # Attempt to make a normal == check: this might fail for objects 16:07:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:07:28 cache_hit = bool(request_cache_key == cache_key) 16:07:28 except (ValueError, RuntimeError): 16:07:28 # If the comparison raises, use 'is' as fallback. 16:07:28 cache_hit = request_cache_key is cache_key 16:07:28 16:07:28 if cache_hit: 16:07:28 if self.cached_result[2] is not None: 16:07:28 exc, exc_tb = self.cached_result[2] 16:07:28 raise exc.with_traceback(exc_tb) 16:07:28 else: 16:07:28 return self.cached_result[0] 16:07:28 # We have a previous but differently parametrized fixture instance 16:07:28 # so we need to tear it down before creating a new one. 16:07:28 self.finish(request) 16:07:28 assert self.cached_result is None 16:07:28 16:07:28 # Add finalizer to requested fixtures we saved previously. 16:07:28 # We make sure to do this after checking for cached value to avoid 16:07:28 # adding our finalizer multiple times. (#12135) 16:07:28 finalizer = functools.partial(self.finish, request=request) 16:07:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:07:28 parent_fixture.addfinalizer(finalizer) 16:07:28 16:07:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:07:28 # which is executed last. 16:07:28 > assert not self._finalizers 16:07:28 ^^^^^^^^^^^^^^^^^^^^ 16:07:28 E AssertionError 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:07:28 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 16:07:28 16:07:28 cls = 16:07:28 func = . at 0x7f69a8b7b880> 16:07:28 when = 'setup' 16:07:28 reraise = (, ) 16:07:28 16:07:28 @classmethod 16:07:28 def from_call( 16:07:28 cls, 16:07:28 func: Callable[[], TResult], 16:07:28 when: Literal["collect", "setup", "call", "teardown"], 16:07:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:07:28 ) -> CallInfo[TResult]: 16:07:28 """Call func, wrapping the result in a CallInfo. 16:07:28 16:07:28 :param func: 16:07:28 The function to call. Called without arguments. 16:07:28 :type func: Callable[[], _pytest.runner.TResult] 16:07:28 :param when: 16:07:28 The phase in which the function is called. 16:07:28 :param reraise: 16:07:28 Exception or exceptions that shall propagate if raised by the 16:07:28 function, instead of being wrapped in the CallInfo. 16:07:28 """ 16:07:28 excinfo = None 16:07:28 instant = timing.Instant() 16:07:28 try: 16:07:28 > result: TResult | None = func() 16:07:28 ^^^^^^ 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:07:28 lambda: runtest_hook(item=item, **kwds), 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:07:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:07:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:07:28 yield 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:07:28 return (yield) 16:07:28 ^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:07:28 item.session._setupstate.setup(item) 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:07:28 col.setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:07:28 super().setup() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:07:28 self._request._fillfixtures() 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:07:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:07:28 fixturedef = self._get_active_fixturedef(argname) 16:07:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:07:28 fixturedef.execute(request=subrequest) 16:07:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:07:28 16:07:28 self = 16:07:28 request = > 16:07:28 16:07:28 def execute(self, request: SubRequest) -> FixtureValue: 16:07:28 """Return the value of this fixture, executing it if not cached.""" 16:07:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:07:28 # This needs to be done before checking if we have a cached value, since 16:07:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:07:28 # parametrization, they finalize themselves and fixtures depending on it 16:07:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:07:28 # See #4871 16:07:28 requested_fixtures_that_should_finalize_us = [] 16:07:28 for argname in self.argnames: 16:07:28 fixturedef = request._get_active_fixturedef(argname) 16:07:28 # Saves requested fixtures in a list so we later can add our finalizer 16:07:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:07:28 # down first. This is generally handled by SetupState, but still currently 16:07:28 # needed when this fixture is not parametrized but depends on a parametrized 16:07:28 # fixture. 16:07:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:07:28 16:07:28 # Check for (and return) cached value/exception. 16:07:28 if self.cached_result is not None: 16:07:28 request_cache_key = self.cache_key(request) 16:07:28 cache_key = self.cached_result[1] 16:07:28 try: 16:07:28 # Attempt to make a normal == check: this might fail for objects 16:07:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:07:28 cache_hit = bool(request_cache_key == cache_key) 16:07:28 except (ValueError, RuntimeError): 16:07:28 # If the comparison raises, use 'is' as fallback. 16:07:28 cache_hit = request_cache_key is cache_key 16:07:28 16:07:28 if cache_hit: 16:07:28 if self.cached_result[2] is not None: 16:07:28 exc, exc_tb = self.cached_result[2] 16:07:28 raise exc.with_traceback(exc_tb) 16:07:28 else: 16:07:28 return self.cached_result[0] 16:07:28 # We have a previous but differently parametrized fixture instance 16:07:28 # so we need to tear it down before creating a new one. 16:07:28 self.finish(request) 16:07:28 assert self.cached_result is None 16:07:28 16:07:28 # Add finalizer to requested fixtures we saved previously. 16:07:28 # We make sure to do this after checking for cached value to avoid 16:07:28 # adding our finalizer multiple times. (#12135) 16:07:28 finalizer = functools.partial(self.finish, request=request) 16:07:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:07:28 parent_fixture.addfinalizer(finalizer) 16:07:28 16:07:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:07:28 # which is executed last. 16:07:28 > assert not self._finalizers 16:07:28 ^^^^^^^^^^^^^^^^^^^^ 16:07:28 E AssertionError 16:07:28 16:07:28 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:07:28 =========================== short test summary info ============================ 16:07:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 16:07:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 16:07:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 16:07:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 16:07:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 16:07:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 16:07:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 16:07:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 16:07:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 16:07:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 16:07:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 16:07:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 16:07:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 16:07:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 16:07:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 16:07:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 16:07:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 16:07:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 16:07:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 16:07:28 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 16:07:28 20 errors in 123.78s (0:02:03) 16:07:28 testsPCE: exit 1 (124.08 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce pid=4718 16:07:28 testsPCE: FAIL ✖ in 2 minutes 53.2 seconds 16:07:28 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 16:07:36 tests_tapi: freeze> python -m pip freeze --all 16:07:36 tests_tapi: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 16:07:36 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi 16:07:36 using environment variables from ./karaf221.env 16:07:36 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 16:09:17 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 16:09:26 ==================================== ERRORS ==================================== 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 16:09:26 16:09:26 cls = 16:09:26 16:09:26 @classmethod 16:09:26 def setUpClass(cls): 16:09:26 cls.init_failed = False 16:09:26 os.environ['JAVA_MIN_MEM'] = '1024M' 16:09:26 os.environ['JAVA_MAX_MEM'] = '4096M' 16:09:26 > cls.processes = test_utils.start_tpce() 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 16:09:26 transportpce_tests/tapi/test01_abstracted_topology.py:148: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 def start_tpce(): 16:09:26 if 'NO_ODL_STARTUP' in os.environ: 16:09:26 print('No OpenDaylight instance to start!') 16:09:26 return [] 16:09:26 print('starting OpenDaylight...') 16:09:26 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:09:26 process = start_lighty() 16:09:26 else: 16:09:26 process = start_karaf() 16:09:26 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:09:26 print('OpenDaylight started !') 16:09:26 else: 16:09:26 print('OpenDaylight failed to start !') 16:09:26 shutdown_process(process) 16:09:26 for pid in process_list: 16:09:26 shutdown_process(pid) 16:09:26 > sys.exit(1) 16:09:26 E SystemExit: 1 16:09:26 16:09:26 transportpce_tests/common/test_utils.py:234: SystemExit 16:09:26 ---------------------------- Captured stdout setup ----------------------------- 16:09:26 starting OpenDaylight... 16:09:26 starting KARAF (karaf221) TransportPCE build... 16:09:26 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712f7f100> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712fd7c40> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f87148ae840> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8715660b80> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712fd67a0> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712f7f100> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712f7e3e0> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712fd68e0> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712fd67a0> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712f7f100> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f87129a58a0> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712fd7c40> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712f7e3e0> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f87129a5e40> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712f7e3e0> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712f7e340> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712f7e520> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712f7e340> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712fd67a0> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712f7e520> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712fd67a0> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f87129a4900> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712f7e520> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f87129a4900> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f87129a4d60> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712f7e520> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f87129a5300> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f87129a6340> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712f7e520> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f87129a49a0> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f87129a6340> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712f7e520> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f87129a5440> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f87129a6840> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712f7e520> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f87129a4ea0> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712f7e520> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f87129a58a0> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f87129a5760> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712f7e520> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f87129a5760> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f87129a6ac0> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712f7e520> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f87129a6ca0> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f87129a6de0> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712f7e520> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f87129a5d00> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f87129a5440> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f8712f7e520> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 16:09:26 16:09:26 cls = 16:09:26 func = . at 0x7f87129a68e0> 16:09:26 when = 'setup' 16:09:26 reraise = (, ) 16:09:26 16:09:26 @classmethod 16:09:26 def from_call( 16:09:26 cls, 16:09:26 func: Callable[[], TResult], 16:09:26 when: Literal["collect", "setup", "call", "teardown"], 16:09:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:09:26 ) -> CallInfo[TResult]: 16:09:26 """Call func, wrapping the result in a CallInfo. 16:09:26 16:09:26 :param func: 16:09:26 The function to call. Called without arguments. 16:09:26 :type func: Callable[[], _pytest.runner.TResult] 16:09:26 :param when: 16:09:26 The phase in which the function is called. 16:09:26 :param reraise: 16:09:26 Exception or exceptions that shall propagate if raised by the 16:09:26 function, instead of being wrapped in the CallInfo. 16:09:26 """ 16:09:26 excinfo = None 16:09:26 instant = timing.Instant() 16:09:26 try: 16:09:26 > result: TResult | None = func() 16:09:26 ^^^^^^ 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:09:26 lambda: runtest_hook(item=item, **kwds), 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:09:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:09:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:09:26 yield 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:09:26 return (yield) 16:09:26 ^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:09:26 item.session._setupstate.setup(item) 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:09:26 col.setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:09:26 super().setup() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:09:26 self._request._fillfixtures() 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:09:26 item.funcargs[argname] = self.getfixturevalue(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:09:26 fixturedef = self._get_active_fixturedef(argname) 16:09:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:09:26 fixturedef.execute(request=subrequest) 16:09:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:09:26 16:09:26 self = 16:09:26 request = > 16:09:26 16:09:26 def execute(self, request: SubRequest) -> FixtureValue: 16:09:26 """Return the value of this fixture, executing it if not cached.""" 16:09:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:09:26 # This needs to be done before checking if we have a cached value, since 16:09:26 # if a dependent fixture has their cache invalidated, e.g. due to 16:09:26 # parametrization, they finalize themselves and fixtures depending on it 16:09:26 # (which will likely include this fixture) setting `self.cached_result = None`. 16:09:26 # See #4871 16:09:26 requested_fixtures_that_should_finalize_us = [] 16:09:26 for argname in self.argnames: 16:09:26 fixturedef = request._get_active_fixturedef(argname) 16:09:26 # Saves requested fixtures in a list so we later can add our finalizer 16:09:26 # to them, ensuring that if a requested fixture gets torn down we get torn 16:09:26 # down first. This is generally handled by SetupState, but still currently 16:09:26 # needed when this fixture is not parametrized but depends on a parametrized 16:09:26 # fixture. 16:09:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:09:26 16:09:26 # Check for (and return) cached value/exception. 16:09:26 if self.cached_result is not None: 16:09:26 request_cache_key = self.cache_key(request) 16:09:26 cache_key = self.cached_result[1] 16:09:26 try: 16:09:26 # Attempt to make a normal == check: this might fail for objects 16:09:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:09:26 cache_hit = bool(request_cache_key == cache_key) 16:09:26 except (ValueError, RuntimeError): 16:09:26 # If the comparison raises, use 'is' as fallback. 16:09:26 cache_hit = request_cache_key is cache_key 16:09:26 16:09:26 if cache_hit: 16:09:26 if self.cached_result[2] is not None: 16:09:26 exc, exc_tb = self.cached_result[2] 16:09:26 raise exc.with_traceback(exc_tb) 16:09:26 else: 16:09:26 return self.cached_result[0] 16:09:26 # We have a previous but differently parametrized fixture instance 16:09:26 # so we need to tear it down before creating a new one. 16:09:26 self.finish(request) 16:09:26 assert self.cached_result is None 16:09:26 16:09:26 # Add finalizer to requested fixtures we saved previously. 16:09:26 # We make sure to do this after checking for cached value to avoid 16:09:26 # adding our finalizer multiple times. (#12135) 16:09:26 finalizer = functools.partial(self.finish, request=request) 16:09:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:09:26 parent_fixture.addfinalizer(finalizer) 16:09:26 16:09:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:09:26 # which is executed last. 16:09:26 > assert not self._finalizers 16:09:26 ^^^^^^^^^^^^^^^^^^^^ 16:09:26 E AssertionError 16:09:26 16:09:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:09:26 =========================== short test summary info ============================ 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 16:09:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 16:09:26 51 errors in 109.51s (0:01:49) 16:09:26 tests_tapi: exit 1 (109.80 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi pid=4889 16:09:26 tests_tapi: FAIL ✖ in 1 minute 58.19 seconds 16:09:26 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 16:09:26 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 16:09:34 tests200: freeze> python -m pip freeze --all 16:09:34 tests221: freeze> python -m pip freeze --all 16:09:34 tests200: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 16:09:34 tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 16:09:34 using environment variables from ./karafoc200.env 16:09:34 pytest -q transportpce_tests/oc200/test01_portmapping.py 16:09:34 tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 16:09:34 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 16:09:34 using environment variables from ./karaf221.env 16:09:34 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 16:11:15 EEEEEEEEEEEEEEEEEEE [100%] 16:11:17 ==================================== ERRORS ==================================== 16:11:17 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 16:11:17 16:11:17 cls = 16:11:17 16:11:17 @classmethod 16:11:17 def setUpClass(cls): 16:11:17 > cls.processes = test_utils.start_tpce() 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 16:11:17 transportpce_tests/oc200/test01_portmapping.py:29: 16:11:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:17 16:11:17 def start_tpce(): 16:11:17 if 'NO_ODL_STARTUP' in os.environ: 16:11:17 print('No OpenDaylight instance to start!') 16:11:17 return [] 16:11:17 print('starting OpenDaylight...') 16:11:17 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:11:17 process = start_lighty() 16:11:17 else: 16:11:17 process = start_karaf() 16:11:17 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:11:17 print('OpenDaylight started !') 16:11:17 else: 16:11:17 print('OpenDaylight failed to start !') 16:11:17 shutdown_process(process) 16:11:17 for pid in process_list: 16:11:17 shutdown_process(pid) 16:11:17 > sys.exit(1) 16:11:17 E SystemExit: 1 16:11:17 16:11:17 transportpce_tests/common/test_utils.py:234: SystemExit 16:11:17 ---------------------------- Captured stdout setup ----------------------------- 16:11:17 starting OpenDaylight... 16:11:17 starting KARAF (karafoc200) TransportPCE build... 16:11:17 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:11:17 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catalog_input_insertion _ 16:11:17 16:11:17 cls = 16:11:17 func = . at 0x7efc24677f60> 16:11:17 when = 'setup' 16:11:17 reraise = (, ) 16:11:17 16:11:17 @classmethod 16:11:17 def from_call( 16:11:17 cls, 16:11:17 func: Callable[[], TResult], 16:11:17 when: Literal["collect", "setup", "call", "teardown"], 16:11:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:17 ) -> CallInfo[TResult]: 16:11:17 """Call func, wrapping the result in a CallInfo. 16:11:17 16:11:17 :param func: 16:11:17 The function to call. Called without arguments. 16:11:17 :type func: Callable[[], _pytest.runner.TResult] 16:11:17 :param when: 16:11:17 The phase in which the function is called. 16:11:17 :param reraise: 16:11:17 Exception or exceptions that shall propagate if raised by the 16:11:17 function, instead of being wrapped in the CallInfo. 16:11:17 """ 16:11:17 excinfo = None 16:11:17 instant = timing.Instant() 16:11:17 try: 16:11:17 > result: TResult | None = func() 16:11:17 ^^^^^^ 16:11:17 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:17 lambda: runtest_hook(item=item, **kwds), 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:17 yield 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:17 return (yield) 16:11:17 ^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:17 item.session._setupstate.setup(item) 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:17 col.setup() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:17 super().setup() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:17 self._request._fillfixtures() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:17 fixturedef = self._get_active_fixturedef(argname) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:17 fixturedef.execute(request=subrequest) 16:11:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:17 16:11:17 self = 16:11:17 request = > 16:11:17 16:11:17 def execute(self, request: SubRequest) -> FixtureValue: 16:11:17 """Return the value of this fixture, executing it if not cached.""" 16:11:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:17 # This needs to be done before checking if we have a cached value, since 16:11:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:17 # parametrization, they finalize themselves and fixtures depending on it 16:11:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:17 # See #4871 16:11:17 requested_fixtures_that_should_finalize_us = [] 16:11:17 for argname in self.argnames: 16:11:17 fixturedef = request._get_active_fixturedef(argname) 16:11:17 # Saves requested fixtures in a list so we later can add our finalizer 16:11:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:17 # down first. This is generally handled by SetupState, but still currently 16:11:17 # needed when this fixture is not parametrized but depends on a parametrized 16:11:17 # fixture. 16:11:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:17 16:11:17 # Check for (and return) cached value/exception. 16:11:17 if self.cached_result is not None: 16:11:17 request_cache_key = self.cache_key(request) 16:11:17 cache_key = self.cached_result[1] 16:11:17 try: 16:11:17 # Attempt to make a normal == check: this might fail for objects 16:11:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:17 cache_hit = bool(request_cache_key == cache_key) 16:11:17 except (ValueError, RuntimeError): 16:11:17 # If the comparison raises, use 'is' as fallback. 16:11:17 cache_hit = request_cache_key is cache_key 16:11:17 16:11:17 if cache_hit: 16:11:17 if self.cached_result[2] is not None: 16:11:17 exc, exc_tb = self.cached_result[2] 16:11:17 raise exc.with_traceback(exc_tb) 16:11:17 else: 16:11:17 return self.cached_result[0] 16:11:17 # We have a previous but differently parametrized fixture instance 16:11:17 # so we need to tear it down before creating a new one. 16:11:17 self.finish(request) 16:11:17 assert self.cached_result is None 16:11:17 16:11:17 # Add finalizer to requested fixtures we saved previously. 16:11:17 # We make sure to do this after checking for cached value to avoid 16:11:17 # adding our finalizer multiple times. (#12135) 16:11:17 finalizer = functools.partial(self.finish, request=request) 16:11:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:17 parent_fixture.addfinalizer(finalizer) 16:11:17 16:11:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:17 # which is executed last. 16:11:17 > assert not self._finalizers 16:11:17 ^^^^^^^^^^^^^^^^^^^^ 16:11:17 E AssertionError 16:11:17 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:17 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 16:11:17 16:11:17 cls = 16:11:17 func = . at 0x7efc23f676a0> 16:11:17 when = 'setup' 16:11:17 reraise = (, ) 16:11:17 16:11:17 @classmethod 16:11:17 def from_call( 16:11:17 cls, 16:11:17 func: Callable[[], TResult], 16:11:17 when: Literal["collect", "setup", "call", "teardown"], 16:11:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:17 ) -> CallInfo[TResult]: 16:11:17 """Call func, wrapping the result in a CallInfo. 16:11:17 16:11:17 :param func: 16:11:17 The function to call. Called without arguments. 16:11:17 :type func: Callable[[], _pytest.runner.TResult] 16:11:17 :param when: 16:11:17 The phase in which the function is called. 16:11:17 :param reraise: 16:11:17 Exception or exceptions that shall propagate if raised by the 16:11:17 function, instead of being wrapped in the CallInfo. 16:11:17 """ 16:11:17 excinfo = None 16:11:17 instant = timing.Instant() 16:11:17 try: 16:11:17 > result: TResult | None = func() 16:11:17 ^^^^^^ 16:11:17 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:17 lambda: runtest_hook(item=item, **kwds), 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:17 yield 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:17 return (yield) 16:11:17 ^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:17 item.session._setupstate.setup(item) 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:17 col.setup() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:17 super().setup() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:17 self._request._fillfixtures() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:17 fixturedef = self._get_active_fixturedef(argname) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:17 fixturedef.execute(request=subrequest) 16:11:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:17 16:11:17 self = 16:11:17 request = > 16:11:17 16:11:17 def execute(self, request: SubRequest) -> FixtureValue: 16:11:17 """Return the value of this fixture, executing it if not cached.""" 16:11:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:17 # This needs to be done before checking if we have a cached value, since 16:11:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:17 # parametrization, they finalize themselves and fixtures depending on it 16:11:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:17 # See #4871 16:11:17 requested_fixtures_that_should_finalize_us = [] 16:11:17 for argname in self.argnames: 16:11:17 fixturedef = request._get_active_fixturedef(argname) 16:11:17 # Saves requested fixtures in a list so we later can add our finalizer 16:11:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:17 # down first. This is generally handled by SetupState, but still currently 16:11:17 # needed when this fixture is not parametrized but depends on a parametrized 16:11:17 # fixture. 16:11:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:17 16:11:17 # Check for (and return) cached value/exception. 16:11:17 if self.cached_result is not None: 16:11:17 request_cache_key = self.cache_key(request) 16:11:17 cache_key = self.cached_result[1] 16:11:17 try: 16:11:17 # Attempt to make a normal == check: this might fail for objects 16:11:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:17 cache_hit = bool(request_cache_key == cache_key) 16:11:17 except (ValueError, RuntimeError): 16:11:17 # If the comparison raises, use 'is' as fallback. 16:11:17 cache_hit = request_cache_key is cache_key 16:11:17 16:11:17 if cache_hit: 16:11:17 if self.cached_result[2] is not None: 16:11:17 exc, exc_tb = self.cached_result[2] 16:11:17 raise exc.with_traceback(exc_tb) 16:11:17 else: 16:11:17 return self.cached_result[0] 16:11:17 # We have a previous but differently parametrized fixture instance 16:11:17 # so we need to tear it down before creating a new one. 16:11:17 self.finish(request) 16:11:17 assert self.cached_result is None 16:11:17 16:11:17 # Add finalizer to requested fixtures we saved previously. 16:11:17 # We make sure to do this after checking for cached value to avoid 16:11:17 # adding our finalizer multiple times. (#12135) 16:11:17 finalizer = functools.partial(self.finish, request=request) 16:11:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:17 parent_fixture.addfinalizer(finalizer) 16:11:17 16:11:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:17 # which is executed last. 16:11:17 > assert not self._finalizers 16:11:17 ^^^^^^^^^^^^^^^^^^^^ 16:11:17 E AssertionError 16:11:17 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:17 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 16:11:17 16:11:17 cls = 16:11:17 func = . at 0x7efc2572aac0> 16:11:17 when = 'setup' 16:11:17 reraise = (, ) 16:11:17 16:11:17 @classmethod 16:11:17 def from_call( 16:11:17 cls, 16:11:17 func: Callable[[], TResult], 16:11:17 when: Literal["collect", "setup", "call", "teardown"], 16:11:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:17 ) -> CallInfo[TResult]: 16:11:17 """Call func, wrapping the result in a CallInfo. 16:11:17 16:11:17 :param func: 16:11:17 The function to call. Called without arguments. 16:11:17 :type func: Callable[[], _pytest.runner.TResult] 16:11:17 :param when: 16:11:17 The phase in which the function is called. 16:11:17 :param reraise: 16:11:17 Exception or exceptions that shall propagate if raised by the 16:11:17 function, instead of being wrapped in the CallInfo. 16:11:17 """ 16:11:17 excinfo = None 16:11:17 instant = timing.Instant() 16:11:17 try: 16:11:17 > result: TResult | None = func() 16:11:17 ^^^^^^ 16:11:17 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:17 lambda: runtest_hook(item=item, **kwds), 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:17 yield 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:17 return (yield) 16:11:17 ^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:17 item.session._setupstate.setup(item) 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:17 col.setup() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:17 super().setup() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:17 self._request._fillfixtures() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:17 fixturedef = self._get_active_fixturedef(argname) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:17 fixturedef.execute(request=subrequest) 16:11:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:17 16:11:17 self = 16:11:17 request = > 16:11:17 16:11:17 def execute(self, request: SubRequest) -> FixtureValue: 16:11:17 """Return the value of this fixture, executing it if not cached.""" 16:11:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:17 # This needs to be done before checking if we have a cached value, since 16:11:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:17 # parametrization, they finalize themselves and fixtures depending on it 16:11:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:17 # See #4871 16:11:17 requested_fixtures_that_should_finalize_us = [] 16:11:17 for argname in self.argnames: 16:11:17 fixturedef = request._get_active_fixturedef(argname) 16:11:17 # Saves requested fixtures in a list so we later can add our finalizer 16:11:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:17 # down first. This is generally handled by SetupState, but still currently 16:11:17 # needed when this fixture is not parametrized but depends on a parametrized 16:11:17 # fixture. 16:11:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:17 16:11:17 # Check for (and return) cached value/exception. 16:11:17 if self.cached_result is not None: 16:11:17 request_cache_key = self.cache_key(request) 16:11:17 cache_key = self.cached_result[1] 16:11:17 try: 16:11:17 # Attempt to make a normal == check: this might fail for objects 16:11:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:17 cache_hit = bool(request_cache_key == cache_key) 16:11:17 except (ValueError, RuntimeError): 16:11:17 # If the comparison raises, use 'is' as fallback. 16:11:17 cache_hit = request_cache_key is cache_key 16:11:17 16:11:17 if cache_hit: 16:11:17 if self.cached_result[2] is not None: 16:11:17 exc, exc_tb = self.cached_result[2] 16:11:17 raise exc.with_traceback(exc_tb) 16:11:17 else: 16:11:17 return self.cached_result[0] 16:11:17 # We have a previous but differently parametrized fixture instance 16:11:17 # so we need to tear it down before creating a new one. 16:11:17 self.finish(request) 16:11:17 assert self.cached_result is None 16:11:17 16:11:17 # Add finalizer to requested fixtures we saved previously. 16:11:17 # We make sure to do this after checking for cached value to avoid 16:11:17 # adding our finalizer multiple times. (#12135) 16:11:17 finalizer = functools.partial(self.finish, request=request) 16:11:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:17 parent_fixture.addfinalizer(finalizer) 16:11:17 16:11:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:17 # which is executed last. 16:11:17 > assert not self._finalizers 16:11:17 ^^^^^^^^^^^^^^^^^^^^ 16:11:17 E AssertionError 16:11:17 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:17 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 16:11:17 16:11:17 cls = 16:11:17 func = . at 0x7efc26673240> 16:11:17 when = 'setup' 16:11:17 reraise = (, ) 16:11:17 16:11:17 @classmethod 16:11:17 def from_call( 16:11:17 cls, 16:11:17 func: Callable[[], TResult], 16:11:17 when: Literal["collect", "setup", "call", "teardown"], 16:11:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:17 ) -> CallInfo[TResult]: 16:11:17 """Call func, wrapping the result in a CallInfo. 16:11:17 16:11:17 :param func: 16:11:17 The function to call. Called without arguments. 16:11:17 :type func: Callable[[], _pytest.runner.TResult] 16:11:17 :param when: 16:11:17 The phase in which the function is called. 16:11:17 :param reraise: 16:11:17 Exception or exceptions that shall propagate if raised by the 16:11:17 function, instead of being wrapped in the CallInfo. 16:11:17 """ 16:11:17 excinfo = None 16:11:17 instant = timing.Instant() 16:11:17 try: 16:11:17 > result: TResult | None = func() 16:11:17 ^^^^^^ 16:11:17 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:17 lambda: runtest_hook(item=item, **kwds), 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:17 yield 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:17 return (yield) 16:11:17 ^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:17 item.session._setupstate.setup(item) 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:17 col.setup() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:17 super().setup() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:17 self._request._fillfixtures() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:17 fixturedef = self._get_active_fixturedef(argname) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:17 fixturedef.execute(request=subrequest) 16:11:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:17 16:11:17 self = 16:11:17 request = > 16:11:17 16:11:17 def execute(self, request: SubRequest) -> FixtureValue: 16:11:17 """Return the value of this fixture, executing it if not cached.""" 16:11:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:17 # This needs to be done before checking if we have a cached value, since 16:11:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:17 # parametrization, they finalize themselves and fixtures depending on it 16:11:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:17 # See #4871 16:11:17 requested_fixtures_that_should_finalize_us = [] 16:11:17 for argname in self.argnames: 16:11:17 fixturedef = request._get_active_fixturedef(argname) 16:11:17 # Saves requested fixtures in a list so we later can add our finalizer 16:11:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:17 # down first. This is generally handled by SetupState, but still currently 16:11:17 # needed when this fixture is not parametrized but depends on a parametrized 16:11:17 # fixture. 16:11:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:17 16:11:17 # Check for (and return) cached value/exception. 16:11:17 if self.cached_result is not None: 16:11:17 request_cache_key = self.cache_key(request) 16:11:17 cache_key = self.cached_result[1] 16:11:17 try: 16:11:17 # Attempt to make a normal == check: this might fail for objects 16:11:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:17 cache_hit = bool(request_cache_key == cache_key) 16:11:17 except (ValueError, RuntimeError): 16:11:17 # If the comparison raises, use 'is' as fallback. 16:11:17 cache_hit = request_cache_key is cache_key 16:11:17 16:11:17 if cache_hit: 16:11:17 if self.cached_result[2] is not None: 16:11:17 exc, exc_tb = self.cached_result[2] 16:11:17 raise exc.with_traceback(exc_tb) 16:11:17 else: 16:11:17 return self.cached_result[0] 16:11:17 # We have a previous but differently parametrized fixture instance 16:11:17 # so we need to tear it down before creating a new one. 16:11:17 self.finish(request) 16:11:17 assert self.cached_result is None 16:11:17 16:11:17 # Add finalizer to requested fixtures we saved previously. 16:11:17 # We make sure to do this after checking for cached value to avoid 16:11:17 # adding our finalizer multiple times. (#12135) 16:11:17 finalizer = functools.partial(self.finish, request=request) 16:11:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:17 parent_fixture.addfinalizer(finalizer) 16:11:17 16:11:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:17 # which is executed last. 16:11:17 > assert not self._finalizers 16:11:17 ^^^^^^^^^^^^^^^^^^^^ 16:11:17 E AssertionError 16:11:17 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:17 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 16:11:17 16:11:17 cls = 16:11:17 func = . at 0x7efc24677f60> 16:11:17 when = 'setup' 16:11:17 reraise = (, ) 16:11:17 16:11:17 @classmethod 16:11:17 def from_call( 16:11:17 cls, 16:11:17 func: Callable[[], TResult], 16:11:17 when: Literal["collect", "setup", "call", "teardown"], 16:11:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:17 ) -> CallInfo[TResult]: 16:11:17 """Call func, wrapping the result in a CallInfo. 16:11:17 16:11:17 :param func: 16:11:17 The function to call. Called without arguments. 16:11:17 :type func: Callable[[], _pytest.runner.TResult] 16:11:17 :param when: 16:11:17 The phase in which the function is called. 16:11:17 :param reraise: 16:11:17 Exception or exceptions that shall propagate if raised by the 16:11:17 function, instead of being wrapped in the CallInfo. 16:11:17 """ 16:11:17 excinfo = None 16:11:17 instant = timing.Instant() 16:11:17 try: 16:11:17 > result: TResult | None = func() 16:11:17 ^^^^^^ 16:11:17 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:17 lambda: runtest_hook(item=item, **kwds), 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:17 yield 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:17 return (yield) 16:11:17 ^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:17 item.session._setupstate.setup(item) 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:17 col.setup() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:17 super().setup() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:17 self._request._fillfixtures() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:17 fixturedef = self._get_active_fixturedef(argname) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:17 fixturedef.execute(request=subrequest) 16:11:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:17 16:11:17 self = 16:11:17 request = > 16:11:17 16:11:17 def execute(self, request: SubRequest) -> FixtureValue: 16:11:17 """Return the value of this fixture, executing it if not cached.""" 16:11:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:17 # This needs to be done before checking if we have a cached value, since 16:11:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:17 # parametrization, they finalize themselves and fixtures depending on it 16:11:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:17 # See #4871 16:11:17 requested_fixtures_that_should_finalize_us = [] 16:11:17 for argname in self.argnames: 16:11:17 fixturedef = request._get_active_fixturedef(argname) 16:11:17 # Saves requested fixtures in a list so we later can add our finalizer 16:11:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:17 # down first. This is generally handled by SetupState, but still currently 16:11:17 # needed when this fixture is not parametrized but depends on a parametrized 16:11:17 # fixture. 16:11:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:17 16:11:17 # Check for (and return) cached value/exception. 16:11:17 if self.cached_result is not None: 16:11:17 request_cache_key = self.cache_key(request) 16:11:17 cache_key = self.cached_result[1] 16:11:17 try: 16:11:17 # Attempt to make a normal == check: this might fail for objects 16:11:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:17 cache_hit = bool(request_cache_key == cache_key) 16:11:17 except (ValueError, RuntimeError): 16:11:17 # If the comparison raises, use 'is' as fallback. 16:11:17 cache_hit = request_cache_key is cache_key 16:11:17 16:11:17 if cache_hit: 16:11:17 if self.cached_result[2] is not None: 16:11:17 exc, exc_tb = self.cached_result[2] 16:11:17 raise exc.with_traceback(exc_tb) 16:11:17 else: 16:11:17 return self.cached_result[0] 16:11:17 # We have a previous but differently parametrized fixture instance 16:11:17 # so we need to tear it down before creating a new one. 16:11:17 self.finish(request) 16:11:17 assert self.cached_result is None 16:11:17 16:11:17 # Add finalizer to requested fixtures we saved previously. 16:11:17 # We make sure to do this after checking for cached value to avoid 16:11:17 # adding our finalizer multiple times. (#12135) 16:11:17 finalizer = functools.partial(self.finish, request=request) 16:11:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:17 parent_fixture.addfinalizer(finalizer) 16:11:17 16:11:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:17 # which is executed last. 16:11:17 > assert not self._finalizers 16:11:17 ^^^^^^^^^^^^^^^^^^^^ 16:11:17 E AssertionError 16:11:17 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:17 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 16:11:17 16:11:17 cls = 16:11:17 func = . at 0x7efc2572aac0> 16:11:17 when = 'setup' 16:11:17 reraise = (, ) 16:11:17 16:11:17 @classmethod 16:11:17 def from_call( 16:11:17 cls, 16:11:17 func: Callable[[], TResult], 16:11:17 when: Literal["collect", "setup", "call", "teardown"], 16:11:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:17 ) -> CallInfo[TResult]: 16:11:17 """Call func, wrapping the result in a CallInfo. 16:11:17 16:11:17 :param func: 16:11:17 The function to call. Called without arguments. 16:11:17 :type func: Callable[[], _pytest.runner.TResult] 16:11:17 :param when: 16:11:17 The phase in which the function is called. 16:11:17 :param reraise: 16:11:17 Exception or exceptions that shall propagate if raised by the 16:11:17 function, instead of being wrapped in the CallInfo. 16:11:17 """ 16:11:17 excinfo = None 16:11:17 instant = timing.Instant() 16:11:17 try: 16:11:17 > result: TResult | None = func() 16:11:17 ^^^^^^ 16:11:17 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:17 lambda: runtest_hook(item=item, **kwds), 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:17 yield 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:17 return (yield) 16:11:17 ^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:17 item.session._setupstate.setup(item) 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:17 col.setup() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:17 super().setup() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:17 self._request._fillfixtures() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:17 fixturedef = self._get_active_fixturedef(argname) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:17 fixturedef.execute(request=subrequest) 16:11:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:17 16:11:17 self = 16:11:17 request = > 16:11:17 16:11:17 def execute(self, request: SubRequest) -> FixtureValue: 16:11:17 """Return the value of this fixture, executing it if not cached.""" 16:11:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:17 # This needs to be done before checking if we have a cached value, since 16:11:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:17 # parametrization, they finalize themselves and fixtures depending on it 16:11:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:17 # See #4871 16:11:17 requested_fixtures_that_should_finalize_us = [] 16:11:17 for argname in self.argnames: 16:11:17 fixturedef = request._get_active_fixturedef(argname) 16:11:17 # Saves requested fixtures in a list so we later can add our finalizer 16:11:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:17 # down first. This is generally handled by SetupState, but still currently 16:11:17 # needed when this fixture is not parametrized but depends on a parametrized 16:11:17 # fixture. 16:11:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:17 16:11:17 # Check for (and return) cached value/exception. 16:11:17 if self.cached_result is not None: 16:11:17 request_cache_key = self.cache_key(request) 16:11:17 cache_key = self.cached_result[1] 16:11:17 try: 16:11:17 # Attempt to make a normal == check: this might fail for objects 16:11:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:17 cache_hit = bool(request_cache_key == cache_key) 16:11:17 except (ValueError, RuntimeError): 16:11:17 # If the comparison raises, use 'is' as fallback. 16:11:17 cache_hit = request_cache_key is cache_key 16:11:17 16:11:17 if cache_hit: 16:11:17 if self.cached_result[2] is not None: 16:11:17 exc, exc_tb = self.cached_result[2] 16:11:17 raise exc.with_traceback(exc_tb) 16:11:17 else: 16:11:17 return self.cached_result[0] 16:11:17 # We have a previous but differently parametrized fixture instance 16:11:17 # so we need to tear it down before creating a new one. 16:11:17 self.finish(request) 16:11:17 assert self.cached_result is None 16:11:17 16:11:17 # Add finalizer to requested fixtures we saved previously. 16:11:17 # We make sure to do this after checking for cached value to avoid 16:11:17 # adding our finalizer multiple times. (#12135) 16:11:17 finalizer = functools.partial(self.finish, request=request) 16:11:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:17 parent_fixture.addfinalizer(finalizer) 16:11:17 16:11:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:17 # which is executed last. 16:11:17 > assert not self._finalizers 16:11:17 ^^^^^^^^^^^^^^^^^^^^ 16:11:17 E AssertionError 16:11:17 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:17 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 16:11:17 16:11:17 cls = 16:11:17 func = . at 0x7efc23f66fc0> 16:11:17 when = 'setup' 16:11:17 reraise = (, ) 16:11:17 16:11:17 @classmethod 16:11:17 def from_call( 16:11:17 cls, 16:11:17 func: Callable[[], TResult], 16:11:17 when: Literal["collect", "setup", "call", "teardown"], 16:11:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:17 ) -> CallInfo[TResult]: 16:11:17 """Call func, wrapping the result in a CallInfo. 16:11:17 16:11:17 :param func: 16:11:17 The function to call. Called without arguments. 16:11:17 :type func: Callable[[], _pytest.runner.TResult] 16:11:17 :param when: 16:11:17 The phase in which the function is called. 16:11:17 :param reraise: 16:11:17 Exception or exceptions that shall propagate if raised by the 16:11:17 function, instead of being wrapped in the CallInfo. 16:11:17 """ 16:11:17 excinfo = None 16:11:17 instant = timing.Instant() 16:11:17 try: 16:11:17 > result: TResult | None = func() 16:11:17 ^^^^^^ 16:11:17 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:17 lambda: runtest_hook(item=item, **kwds), 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:17 yield 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:17 return (yield) 16:11:17 ^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:17 item.session._setupstate.setup(item) 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:17 col.setup() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:17 super().setup() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:17 self._request._fillfixtures() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:17 fixturedef = self._get_active_fixturedef(argname) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:17 fixturedef.execute(request=subrequest) 16:11:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:17 16:11:17 self = 16:11:17 request = > 16:11:17 16:11:17 def execute(self, request: SubRequest) -> FixtureValue: 16:11:17 """Return the value of this fixture, executing it if not cached.""" 16:11:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:17 # This needs to be done before checking if we have a cached value, since 16:11:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:17 # parametrization, they finalize themselves and fixtures depending on it 16:11:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:17 # See #4871 16:11:17 requested_fixtures_that_should_finalize_us = [] 16:11:17 for argname in self.argnames: 16:11:17 fixturedef = request._get_active_fixturedef(argname) 16:11:17 # Saves requested fixtures in a list so we later can add our finalizer 16:11:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:17 # down first. This is generally handled by SetupState, but still currently 16:11:17 # needed when this fixture is not parametrized but depends on a parametrized 16:11:17 # fixture. 16:11:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:17 16:11:17 # Check for (and return) cached value/exception. 16:11:17 if self.cached_result is not None: 16:11:17 request_cache_key = self.cache_key(request) 16:11:17 cache_key = self.cached_result[1] 16:11:17 try: 16:11:17 # Attempt to make a normal == check: this might fail for objects 16:11:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:17 cache_hit = bool(request_cache_key == cache_key) 16:11:17 except (ValueError, RuntimeError): 16:11:17 # If the comparison raises, use 'is' as fallback. 16:11:17 cache_hit = request_cache_key is cache_key 16:11:17 16:11:17 if cache_hit: 16:11:17 if self.cached_result[2] is not None: 16:11:17 exc, exc_tb = self.cached_result[2] 16:11:17 raise exc.with_traceback(exc_tb) 16:11:17 else: 16:11:17 return self.cached_result[0] 16:11:17 # We have a previous but differently parametrized fixture instance 16:11:17 # so we need to tear it down before creating a new one. 16:11:17 self.finish(request) 16:11:17 assert self.cached_result is None 16:11:17 16:11:17 # Add finalizer to requested fixtures we saved previously. 16:11:17 # We make sure to do this after checking for cached value to avoid 16:11:17 # adding our finalizer multiple times. (#12135) 16:11:17 finalizer = functools.partial(self.finish, request=request) 16:11:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:17 parent_fixture.addfinalizer(finalizer) 16:11:17 16:11:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:17 # which is executed last. 16:11:17 > assert not self._finalizers 16:11:17 ^^^^^^^^^^^^^^^^^^^^ 16:11:17 E AssertionError 16:11:17 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:17 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 16:11:17 16:11:17 cls = 16:11:17 func = . at 0x7efc23f65080> 16:11:17 when = 'setup' 16:11:17 reraise = (, ) 16:11:17 16:11:17 @classmethod 16:11:17 def from_call( 16:11:17 cls, 16:11:17 func: Callable[[], TResult], 16:11:17 when: Literal["collect", "setup", "call", "teardown"], 16:11:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:17 ) -> CallInfo[TResult]: 16:11:17 """Call func, wrapping the result in a CallInfo. 16:11:17 16:11:17 :param func: 16:11:17 The function to call. Called without arguments. 16:11:17 :type func: Callable[[], _pytest.runner.TResult] 16:11:17 :param when: 16:11:17 The phase in which the function is called. 16:11:17 :param reraise: 16:11:17 Exception or exceptions that shall propagate if raised by the 16:11:17 function, instead of being wrapped in the CallInfo. 16:11:17 """ 16:11:17 excinfo = None 16:11:17 instant = timing.Instant() 16:11:17 try: 16:11:17 > result: TResult | None = func() 16:11:17 ^^^^^^ 16:11:17 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:17 lambda: runtest_hook(item=item, **kwds), 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:17 yield 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:17 return (yield) 16:11:17 ^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:17 item.session._setupstate.setup(item) 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:17 col.setup() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:17 super().setup() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:17 self._request._fillfixtures() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:17 fixturedef = self._get_active_fixturedef(argname) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:17 fixturedef.execute(request=subrequest) 16:11:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:17 16:11:17 self = 16:11:17 request = > 16:11:17 16:11:17 def execute(self, request: SubRequest) -> FixtureValue: 16:11:17 """Return the value of this fixture, executing it if not cached.""" 16:11:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:17 # This needs to be done before checking if we have a cached value, since 16:11:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:17 # parametrization, they finalize themselves and fixtures depending on it 16:11:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:17 # See #4871 16:11:17 requested_fixtures_that_should_finalize_us = [] 16:11:17 for argname in self.argnames: 16:11:17 fixturedef = request._get_active_fixturedef(argname) 16:11:17 # Saves requested fixtures in a list so we later can add our finalizer 16:11:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:17 # down first. This is generally handled by SetupState, but still currently 16:11:17 # needed when this fixture is not parametrized but depends on a parametrized 16:11:17 # fixture. 16:11:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:17 16:11:17 # Check for (and return) cached value/exception. 16:11:17 if self.cached_result is not None: 16:11:17 request_cache_key = self.cache_key(request) 16:11:17 cache_key = self.cached_result[1] 16:11:17 try: 16:11:17 # Attempt to make a normal == check: this might fail for objects 16:11:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:17 cache_hit = bool(request_cache_key == cache_key) 16:11:17 except (ValueError, RuntimeError): 16:11:17 # If the comparison raises, use 'is' as fallback. 16:11:17 cache_hit = request_cache_key is cache_key 16:11:17 16:11:17 if cache_hit: 16:11:17 if self.cached_result[2] is not None: 16:11:17 exc, exc_tb = self.cached_result[2] 16:11:17 raise exc.with_traceback(exc_tb) 16:11:17 else: 16:11:17 return self.cached_result[0] 16:11:17 # We have a previous but differently parametrized fixture instance 16:11:17 # so we need to tear it down before creating a new one. 16:11:17 self.finish(request) 16:11:17 assert self.cached_result is None 16:11:17 16:11:17 # Add finalizer to requested fixtures we saved previously. 16:11:17 # We make sure to do this after checking for cached value to avoid 16:11:17 # adding our finalizer multiple times. (#12135) 16:11:17 finalizer = functools.partial(self.finish, request=request) 16:11:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:17 parent_fixture.addfinalizer(finalizer) 16:11:17 16:11:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:17 # which is executed last. 16:11:17 > assert not self._finalizers 16:11:17 ^^^^^^^^^^^^^^^^^^^^ 16:11:17 E AssertionError 16:11:17 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:17 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 16:11:17 16:11:17 cls = 16:11:17 func = . at 0x7efc23f66d40> 16:11:17 when = 'setup' 16:11:17 reraise = (, ) 16:11:17 16:11:17 @classmethod 16:11:17 def from_call( 16:11:17 cls, 16:11:17 func: Callable[[], TResult], 16:11:17 when: Literal["collect", "setup", "call", "teardown"], 16:11:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:17 ) -> CallInfo[TResult]: 16:11:17 """Call func, wrapping the result in a CallInfo. 16:11:17 16:11:17 :param func: 16:11:17 The function to call. Called without arguments. 16:11:17 :type func: Callable[[], _pytest.runner.TResult] 16:11:17 :param when: 16:11:17 The phase in which the function is called. 16:11:17 :param reraise: 16:11:17 Exception or exceptions that shall propagate if raised by the 16:11:17 function, instead of being wrapped in the CallInfo. 16:11:17 """ 16:11:17 excinfo = None 16:11:17 instant = timing.Instant() 16:11:17 try: 16:11:17 > result: TResult | None = func() 16:11:17 ^^^^^^ 16:11:17 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:17 lambda: runtest_hook(item=item, **kwds), 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:17 yield 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:17 return (yield) 16:11:17 ^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:17 item.session._setupstate.setup(item) 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:17 col.setup() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:17 super().setup() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:17 self._request._fillfixtures() 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:17 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:17 fixturedef = self._get_active_fixturedef(argname) 16:11:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:17 fixturedef.execute(request=subrequest) 16:11:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:17 16:11:17 self = 16:11:17 request = > 16:11:17 16:11:17 def execute(self, request: SubRequest) -> FixtureValue: 16:11:17 """Return the value of this fixture, executing it if not cached.""" 16:11:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:17 # This needs to be done before checking if we have a cached value, since 16:11:17 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:17 # parametrization, they finalize themselves and fixtures depending on it 16:11:17 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:17 # See #4871 16:11:17 requested_fixtures_that_should_finalize_us = [] 16:11:17 for argname in self.argnames: 16:11:17 fixturedef = request._get_active_fixturedef(argname) 16:11:17 # Saves requested fixtures in a list so we later can add our finalizer 16:11:17 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:17 # down first. This is generally handled by SetupState, but still currently 16:11:17 # needed when this fixture is not parametrized but depends on a parametrized 16:11:17 # fixture. 16:11:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:17 16:11:17 # Check for (and return) cached value/exception. 16:11:17 if self.cached_result is not None: 16:11:17 request_cache_key = self.cache_key(request) 16:11:17 cache_key = self.cached_result[1] 16:11:17 try: 16:11:17 # Attempt to make a normal == check: this might fail for objects 16:11:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:17 cache_hit = bool(request_cache_key == cache_key) 16:11:17 except (ValueError, RuntimeError): 16:11:17 # If the comparison raises, use 'is' as fallback. 16:11:17 cache_hit = request_cache_key is cache_key 16:11:17 16:11:17 if cache_hit: 16:11:17 if self.cached_result[2] is not None: 16:11:17 exc, exc_tb = self.cached_result[2] 16:11:17 raise exc.with_traceback(exc_tb) 16:11:17 else: 16:11:17 return self.cached_result[0] 16:11:17 # We have a previous but differently parametrized fixture instance 16:11:17 # so we need to tear it down before creating a new one. 16:11:17 self.finish(request) 16:11:17 assert self.cached_result is None 16:11:17 16:11:17 # Add finalizer to requested fixtures we saved previously. 16:11:17 # We make sure to do this after checking for cached value to avoid 16:11:17 # adding our finalizer multiple times. (#12135) 16:11:17 finalizer = functools.partial(self.finish, request=request) 16:11:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:17 parent_fixture.addfinalizer(finalizer) 16:11:17 16:11:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:17 # which is executed last. 16:11:17 > assert not self._finalizers 16:11:17 ^^^^^^^^^^^^^^^^^^^^ 16:11:17 E AssertionError 16:11:17 16:11:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:17 =========================== short test summary info ============================ 16:11:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 16:11:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catalog_input_insertion 16:11:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 16:11:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 16:11:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 16:11:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 16:11:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 16:11:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 16:11:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 16:11:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 16:11:17 10 errors in 101.97s (0:01:41) 16:11:17 tests200: exit 1 (102.24 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 pid=5030 16:11:17 Etests200: FAIL ✖ in 1 minute 50.87 seconds 16:11:17 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 16:11:17 EEEEEEEEEEEEEEEEEEEEEEEEE [100%] 16:11:21 ==================================== ERRORS ==================================== 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 16:11:21 16:11:21 cls = 16:11:21 16:11:21 @classmethod 16:11:21 def setUpClass(cls): 16:11:21 > cls.processes = test_utils.start_tpce() 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 16:11:21 transportpce_tests/2.2.1/test01_portmapping.py:33: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 def start_tpce(): 16:11:21 if 'NO_ODL_STARTUP' in os.environ: 16:11:21 print('No OpenDaylight instance to start!') 16:11:21 return [] 16:11:21 print('starting OpenDaylight...') 16:11:21 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:11:21 process = start_lighty() 16:11:21 else: 16:11:21 process = start_karaf() 16:11:21 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:11:21 print('OpenDaylight started !') 16:11:21 else: 16:11:21 print('OpenDaylight failed to start !') 16:11:21 shutdown_process(process) 16:11:21 for pid in process_list: 16:11:21 shutdown_process(pid) 16:11:21 > sys.exit(1) 16:11:21 E SystemExit: 1 16:11:21 16:11:21 transportpce_tests/common/test_utils.py:234: SystemExit 16:11:21 ---------------------------- Captured stdout setup ----------------------------- 16:11:21 starting OpenDaylight... 16:11:21 starting KARAF (karaf221) TransportPCE build... 16:11:21 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:11:21 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d7186de0> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d71df380> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d989b240> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d7186de0> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d71dd3a0> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d989b240> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d71dd760> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d71df060> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d989b240> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d71de700> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d71dfd80> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d989b240> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d71df9c0> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d71df7e0> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d989b240> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d7185d00> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d71858a0> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d7185d00> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d71df7e0> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d71df380> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d71858a0> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d71dd580> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d71858a0> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d71deac0> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d71dd580> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d71dde40> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d71858a0> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d71de700> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d71de5c0> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d71dfb00> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d71df060> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d71858a0> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d71df9c0> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 16:11:21 16:11:21 cls = 16:11:21 func = . at 0x7f20d71dfb00> 16:11:21 when = 'setup' 16:11:21 reraise = (, ) 16:11:21 16:11:21 @classmethod 16:11:21 def from_call( 16:11:21 cls, 16:11:21 func: Callable[[], TResult], 16:11:21 when: Literal["collect", "setup", "call", "teardown"], 16:11:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:11:21 ) -> CallInfo[TResult]: 16:11:21 """Call func, wrapping the result in a CallInfo. 16:11:21 16:11:21 :param func: 16:11:21 The function to call. Called without arguments. 16:11:21 :type func: Callable[[], _pytest.runner.TResult] 16:11:21 :param when: 16:11:21 The phase in which the function is called. 16:11:21 :param reraise: 16:11:21 Exception or exceptions that shall propagate if raised by the 16:11:21 function, instead of being wrapped in the CallInfo. 16:11:21 """ 16:11:21 excinfo = None 16:11:21 instant = timing.Instant() 16:11:21 try: 16:11:21 > result: TResult | None = func() 16:11:21 ^^^^^^ 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:11:21 lambda: runtest_hook(item=item, **kwds), 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:11:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:11:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:11:21 yield 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:11:21 return (yield) 16:11:21 ^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:11:21 item.session._setupstate.setup(item) 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:11:21 col.setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:11:21 super().setup() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:11:21 self._request._fillfixtures() 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:11:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:11:21 fixturedef = self._get_active_fixturedef(argname) 16:11:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:11:21 fixturedef.execute(request=subrequest) 16:11:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:11:21 16:11:21 self = 16:11:21 request = > 16:11:21 16:11:21 def execute(self, request: SubRequest) -> FixtureValue: 16:11:21 """Return the value of this fixture, executing it if not cached.""" 16:11:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:11:21 # This needs to be done before checking if we have a cached value, since 16:11:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:11:21 # parametrization, they finalize themselves and fixtures depending on it 16:11:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:11:21 # See #4871 16:11:21 requested_fixtures_that_should_finalize_us = [] 16:11:21 for argname in self.argnames: 16:11:21 fixturedef = request._get_active_fixturedef(argname) 16:11:21 # Saves requested fixtures in a list so we later can add our finalizer 16:11:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:11:21 # down first. This is generally handled by SetupState, but still currently 16:11:21 # needed when this fixture is not parametrized but depends on a parametrized 16:11:21 # fixture. 16:11:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:11:21 16:11:21 # Check for (and return) cached value/exception. 16:11:21 if self.cached_result is not None: 16:11:21 request_cache_key = self.cache_key(request) 16:11:21 cache_key = self.cached_result[1] 16:11:21 try: 16:11:21 # Attempt to make a normal == check: this might fail for objects 16:11:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:11:21 cache_hit = bool(request_cache_key == cache_key) 16:11:21 except (ValueError, RuntimeError): 16:11:21 # If the comparison raises, use 'is' as fallback. 16:11:21 cache_hit = request_cache_key is cache_key 16:11:21 16:11:21 if cache_hit: 16:11:21 if self.cached_result[2] is not None: 16:11:21 exc, exc_tb = self.cached_result[2] 16:11:21 raise exc.with_traceback(exc_tb) 16:11:21 else: 16:11:21 return self.cached_result[0] 16:11:21 # We have a previous but differently parametrized fixture instance 16:11:21 # so we need to tear it down before creating a new one. 16:11:21 self.finish(request) 16:11:21 assert self.cached_result is None 16:11:21 16:11:21 # Add finalizer to requested fixtures we saved previously. 16:11:21 # We make sure to do this after checking for cached value to avoid 16:11:21 # adding our finalizer multiple times. (#12135) 16:11:21 finalizer = functools.partial(self.finish, request=request) 16:11:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:11:21 parent_fixture.addfinalizer(finalizer) 16:11:21 16:11:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:11:21 # which is executed last. 16:11:21 > assert not self._finalizers 16:11:21 ^^^^^^^^^^^^^^^^^^^^ 16:11:21 E AssertionError 16:11:21 16:11:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:11:21 =========================== short test summary info ============================ 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 16:11:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 16:11:21 35 errors in 106.64s (0:01:46) 16:11:21 tests221: exit 1 (106.93 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 pid=5041 16:11:22 tests221: FAIL ✖ in 1 minute 55.57 seconds 16:11:22 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 16:11:25 tests71: freeze> python -m pip freeze --all 16:11:25 tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 16:11:25 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 16:11:25 using environment variables from ./karaf71.env 16:11:25 pytest -q transportpce_tests/7.1/test01_portmapping.py 16:11:28 tests_hybrid: freeze> python -m pip freeze --all 16:11:28 tests_hybrid: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 16:11:28 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid 16:11:28 using environment variables from ./karaf221.env 16:11:28 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 16:13:05 EEEEEEEEEEEE [100%] 16:13:07 ==================================== ERRORS ==================================== 16:13:07 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 16:13:07 16:13:07 cls = 16:13:07 16:13:07 @classmethod 16:13:07 def setUpClass(cls): 16:13:07 > cls.processes = test_utils.start_tpce() 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 16:13:07 transportpce_tests/7.1/test01_portmapping.py:32: 16:13:07 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:07 16:13:07 def start_tpce(): 16:13:07 if 'NO_ODL_STARTUP' in os.environ: 16:13:07 print('No OpenDaylight instance to start!') 16:13:07 return [] 16:13:07 print('starting OpenDaylight...') 16:13:07 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:13:07 process = start_lighty() 16:13:07 else: 16:13:07 process = start_karaf() 16:13:07 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:13:07 print('OpenDaylight started !') 16:13:07 else: 16:13:07 print('OpenDaylight failed to start !') 16:13:07 shutdown_process(process) 16:13:07 for pid in process_list: 16:13:07 shutdown_process(pid) 16:13:07 > sys.exit(1) 16:13:07 E SystemExit: 1 16:13:07 16:13:07 transportpce_tests/common/test_utils.py:234: SystemExit 16:13:07 ---------------------------- Captured stdout setup ----------------------------- 16:13:07 starting OpenDaylight... 16:13:07 starting KARAF (karaf71) TransportPCE build... 16:13:07 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:13:07 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 16:13:07 16:13:07 cls = 16:13:07 func = . at 0x7f99e6395760> 16:13:07 when = 'setup' 16:13:07 reraise = (, ) 16:13:07 16:13:07 @classmethod 16:13:07 def from_call( 16:13:07 cls, 16:13:07 func: Callable[[], TResult], 16:13:07 when: Literal["collect", "setup", "call", "teardown"], 16:13:07 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:07 ) -> CallInfo[TResult]: 16:13:07 """Call func, wrapping the result in a CallInfo. 16:13:07 16:13:07 :param func: 16:13:07 The function to call. Called without arguments. 16:13:07 :type func: Callable[[], _pytest.runner.TResult] 16:13:07 :param when: 16:13:07 The phase in which the function is called. 16:13:07 :param reraise: 16:13:07 Exception or exceptions that shall propagate if raised by the 16:13:07 function, instead of being wrapped in the CallInfo. 16:13:07 """ 16:13:07 excinfo = None 16:13:07 instant = timing.Instant() 16:13:07 try: 16:13:07 > result: TResult | None = func() 16:13:07 ^^^^^^ 16:13:07 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:07 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:07 lambda: runtest_hook(item=item, **kwds), 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:07 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:07 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:07 yield 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:07 return (yield) 16:13:07 ^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:07 item.session._setupstate.setup(item) 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:07 col.setup() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:07 super().setup() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:07 self._request._fillfixtures() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:07 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:07 fixturedef = self._get_active_fixturedef(argname) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:07 fixturedef.execute(request=subrequest) 16:13:07 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:07 16:13:07 self = 16:13:07 request = > 16:13:07 16:13:07 def execute(self, request: SubRequest) -> FixtureValue: 16:13:07 """Return the value of this fixture, executing it if not cached.""" 16:13:07 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:07 # This needs to be done before checking if we have a cached value, since 16:13:07 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:07 # parametrization, they finalize themselves and fixtures depending on it 16:13:07 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:07 # See #4871 16:13:07 requested_fixtures_that_should_finalize_us = [] 16:13:07 for argname in self.argnames: 16:13:07 fixturedef = request._get_active_fixturedef(argname) 16:13:07 # Saves requested fixtures in a list so we later can add our finalizer 16:13:07 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:07 # down first. This is generally handled by SetupState, but still currently 16:13:07 # needed when this fixture is not parametrized but depends on a parametrized 16:13:07 # fixture. 16:13:07 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:07 16:13:07 # Check for (and return) cached value/exception. 16:13:07 if self.cached_result is not None: 16:13:07 request_cache_key = self.cache_key(request) 16:13:07 cache_key = self.cached_result[1] 16:13:07 try: 16:13:07 # Attempt to make a normal == check: this might fail for objects 16:13:07 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:07 cache_hit = bool(request_cache_key == cache_key) 16:13:07 except (ValueError, RuntimeError): 16:13:07 # If the comparison raises, use 'is' as fallback. 16:13:07 cache_hit = request_cache_key is cache_key 16:13:07 16:13:07 if cache_hit: 16:13:07 if self.cached_result[2] is not None: 16:13:07 exc, exc_tb = self.cached_result[2] 16:13:07 raise exc.with_traceback(exc_tb) 16:13:07 else: 16:13:07 return self.cached_result[0] 16:13:07 # We have a previous but differently parametrized fixture instance 16:13:07 # so we need to tear it down before creating a new one. 16:13:07 self.finish(request) 16:13:07 assert self.cached_result is None 16:13:07 16:13:07 # Add finalizer to requested fixtures we saved previously. 16:13:07 # We make sure to do this after checking for cached value to avoid 16:13:07 # adding our finalizer multiple times. (#12135) 16:13:07 finalizer = functools.partial(self.finish, request=request) 16:13:07 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:07 parent_fixture.addfinalizer(finalizer) 16:13:07 16:13:07 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:07 # which is executed last. 16:13:07 > assert not self._finalizers 16:13:07 ^^^^^^^^^^^^^^^^^^^^ 16:13:07 E AssertionError 16:13:07 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:07 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 16:13:07 16:13:07 cls = 16:13:07 func = . at 0x7f99e6397b00> 16:13:07 when = 'setup' 16:13:07 reraise = (, ) 16:13:07 16:13:07 @classmethod 16:13:07 def from_call( 16:13:07 cls, 16:13:07 func: Callable[[], TResult], 16:13:07 when: Literal["collect", "setup", "call", "teardown"], 16:13:07 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:07 ) -> CallInfo[TResult]: 16:13:07 """Call func, wrapping the result in a CallInfo. 16:13:07 16:13:07 :param func: 16:13:07 The function to call. Called without arguments. 16:13:07 :type func: Callable[[], _pytest.runner.TResult] 16:13:07 :param when: 16:13:07 The phase in which the function is called. 16:13:07 :param reraise: 16:13:07 Exception or exceptions that shall propagate if raised by the 16:13:07 function, instead of being wrapped in the CallInfo. 16:13:07 """ 16:13:07 excinfo = None 16:13:07 instant = timing.Instant() 16:13:07 try: 16:13:07 > result: TResult | None = func() 16:13:07 ^^^^^^ 16:13:07 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:07 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:07 lambda: runtest_hook(item=item, **kwds), 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:07 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:07 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:07 yield 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:07 return (yield) 16:13:07 ^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:07 item.session._setupstate.setup(item) 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:07 col.setup() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:07 super().setup() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:07 self._request._fillfixtures() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:07 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:07 fixturedef = self._get_active_fixturedef(argname) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:07 fixturedef.execute(request=subrequest) 16:13:07 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:07 16:13:07 self = 16:13:07 request = > 16:13:07 16:13:07 def execute(self, request: SubRequest) -> FixtureValue: 16:13:07 """Return the value of this fixture, executing it if not cached.""" 16:13:07 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:07 # This needs to be done before checking if we have a cached value, since 16:13:07 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:07 # parametrization, they finalize themselves and fixtures depending on it 16:13:07 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:07 # See #4871 16:13:07 requested_fixtures_that_should_finalize_us = [] 16:13:07 for argname in self.argnames: 16:13:07 fixturedef = request._get_active_fixturedef(argname) 16:13:07 # Saves requested fixtures in a list so we later can add our finalizer 16:13:07 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:07 # down first. This is generally handled by SetupState, but still currently 16:13:07 # needed when this fixture is not parametrized but depends on a parametrized 16:13:07 # fixture. 16:13:07 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:07 16:13:07 # Check for (and return) cached value/exception. 16:13:07 if self.cached_result is not None: 16:13:07 request_cache_key = self.cache_key(request) 16:13:07 cache_key = self.cached_result[1] 16:13:07 try: 16:13:07 # Attempt to make a normal == check: this might fail for objects 16:13:07 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:07 cache_hit = bool(request_cache_key == cache_key) 16:13:07 except (ValueError, RuntimeError): 16:13:07 # If the comparison raises, use 'is' as fallback. 16:13:07 cache_hit = request_cache_key is cache_key 16:13:07 16:13:07 if cache_hit: 16:13:07 if self.cached_result[2] is not None: 16:13:07 exc, exc_tb = self.cached_result[2] 16:13:07 raise exc.with_traceback(exc_tb) 16:13:07 else: 16:13:07 return self.cached_result[0] 16:13:07 # We have a previous but differently parametrized fixture instance 16:13:07 # so we need to tear it down before creating a new one. 16:13:07 self.finish(request) 16:13:07 assert self.cached_result is None 16:13:07 16:13:07 # Add finalizer to requested fixtures we saved previously. 16:13:07 # We make sure to do this after checking for cached value to avoid 16:13:07 # adding our finalizer multiple times. (#12135) 16:13:07 finalizer = functools.partial(self.finish, request=request) 16:13:07 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:07 parent_fixture.addfinalizer(finalizer) 16:13:07 16:13:07 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:07 # which is executed last. 16:13:07 > assert not self._finalizers 16:13:07 ^^^^^^^^^^^^^^^^^^^^ 16:13:07 E AssertionError 16:13:07 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:07 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 16:13:07 16:13:07 cls = 16:13:07 func = . at 0x7f99e8aab2e0> 16:13:07 when = 'setup' 16:13:07 reraise = (, ) 16:13:07 16:13:07 @classmethod 16:13:07 def from_call( 16:13:07 cls, 16:13:07 func: Callable[[], TResult], 16:13:07 when: Literal["collect", "setup", "call", "teardown"], 16:13:07 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:07 ) -> CallInfo[TResult]: 16:13:07 """Call func, wrapping the result in a CallInfo. 16:13:07 16:13:07 :param func: 16:13:07 The function to call. Called without arguments. 16:13:07 :type func: Callable[[], _pytest.runner.TResult] 16:13:07 :param when: 16:13:07 The phase in which the function is called. 16:13:07 :param reraise: 16:13:07 Exception or exceptions that shall propagate if raised by the 16:13:07 function, instead of being wrapped in the CallInfo. 16:13:07 """ 16:13:07 excinfo = None 16:13:07 instant = timing.Instant() 16:13:07 try: 16:13:07 > result: TResult | None = func() 16:13:07 ^^^^^^ 16:13:07 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:07 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:07 lambda: runtest_hook(item=item, **kwds), 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:07 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:07 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:07 yield 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:07 return (yield) 16:13:07 ^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:07 item.session._setupstate.setup(item) 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:07 col.setup() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:07 super().setup() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:07 self._request._fillfixtures() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:07 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:07 fixturedef = self._get_active_fixturedef(argname) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:07 fixturedef.execute(request=subrequest) 16:13:07 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:07 16:13:07 self = 16:13:07 request = > 16:13:07 16:13:07 def execute(self, request: SubRequest) -> FixtureValue: 16:13:07 """Return the value of this fixture, executing it if not cached.""" 16:13:07 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:07 # This needs to be done before checking if we have a cached value, since 16:13:07 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:07 # parametrization, they finalize themselves and fixtures depending on it 16:13:07 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:07 # See #4871 16:13:07 requested_fixtures_that_should_finalize_us = [] 16:13:07 for argname in self.argnames: 16:13:07 fixturedef = request._get_active_fixturedef(argname) 16:13:07 # Saves requested fixtures in a list so we later can add our finalizer 16:13:07 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:07 # down first. This is generally handled by SetupState, but still currently 16:13:07 # needed when this fixture is not parametrized but depends on a parametrized 16:13:07 # fixture. 16:13:07 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:07 16:13:07 # Check for (and return) cached value/exception. 16:13:07 if self.cached_result is not None: 16:13:07 request_cache_key = self.cache_key(request) 16:13:07 cache_key = self.cached_result[1] 16:13:07 try: 16:13:07 # Attempt to make a normal == check: this might fail for objects 16:13:07 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:07 cache_hit = bool(request_cache_key == cache_key) 16:13:07 except (ValueError, RuntimeError): 16:13:07 # If the comparison raises, use 'is' as fallback. 16:13:07 cache_hit = request_cache_key is cache_key 16:13:07 16:13:07 if cache_hit: 16:13:07 if self.cached_result[2] is not None: 16:13:07 exc, exc_tb = self.cached_result[2] 16:13:07 raise exc.with_traceback(exc_tb) 16:13:07 else: 16:13:07 return self.cached_result[0] 16:13:07 # We have a previous but differently parametrized fixture instance 16:13:07 # so we need to tear it down before creating a new one. 16:13:07 self.finish(request) 16:13:07 assert self.cached_result is None 16:13:07 16:13:07 # Add finalizer to requested fixtures we saved previously. 16:13:07 # We make sure to do this after checking for cached value to avoid 16:13:07 # adding our finalizer multiple times. (#12135) 16:13:07 finalizer = functools.partial(self.finish, request=request) 16:13:07 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:07 parent_fixture.addfinalizer(finalizer) 16:13:07 16:13:07 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:07 # which is executed last. 16:13:07 > assert not self._finalizers 16:13:07 ^^^^^^^^^^^^^^^^^^^^ 16:13:07 E AssertionError 16:13:07 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:07 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 16:13:07 16:13:07 cls = 16:13:07 func = . at 0x7f99e6397b00> 16:13:07 when = 'setup' 16:13:07 reraise = (, ) 16:13:07 16:13:07 @classmethod 16:13:07 def from_call( 16:13:07 cls, 16:13:07 func: Callable[[], TResult], 16:13:07 when: Literal["collect", "setup", "call", "teardown"], 16:13:07 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:07 ) -> CallInfo[TResult]: 16:13:07 """Call func, wrapping the result in a CallInfo. 16:13:07 16:13:07 :param func: 16:13:07 The function to call. Called without arguments. 16:13:07 :type func: Callable[[], _pytest.runner.TResult] 16:13:07 :param when: 16:13:07 The phase in which the function is called. 16:13:07 :param reraise: 16:13:07 Exception or exceptions that shall propagate if raised by the 16:13:07 function, instead of being wrapped in the CallInfo. 16:13:07 """ 16:13:07 excinfo = None 16:13:07 instant = timing.Instant() 16:13:07 try: 16:13:07 > result: TResult | None = func() 16:13:07 ^^^^^^ 16:13:07 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:07 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:07 lambda: runtest_hook(item=item, **kwds), 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:07 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:07 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:07 yield 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:07 return (yield) 16:13:07 ^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:07 item.session._setupstate.setup(item) 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:07 col.setup() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:07 super().setup() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:07 self._request._fillfixtures() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:07 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:07 fixturedef = self._get_active_fixturedef(argname) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:07 fixturedef.execute(request=subrequest) 16:13:07 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:07 16:13:07 self = 16:13:07 request = > 16:13:07 16:13:07 def execute(self, request: SubRequest) -> FixtureValue: 16:13:07 """Return the value of this fixture, executing it if not cached.""" 16:13:07 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:07 # This needs to be done before checking if we have a cached value, since 16:13:07 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:07 # parametrization, they finalize themselves and fixtures depending on it 16:13:07 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:07 # See #4871 16:13:07 requested_fixtures_that_should_finalize_us = [] 16:13:07 for argname in self.argnames: 16:13:07 fixturedef = request._get_active_fixturedef(argname) 16:13:07 # Saves requested fixtures in a list so we later can add our finalizer 16:13:07 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:07 # down first. This is generally handled by SetupState, but still currently 16:13:07 # needed when this fixture is not parametrized but depends on a parametrized 16:13:07 # fixture. 16:13:07 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:07 16:13:07 # Check for (and return) cached value/exception. 16:13:07 if self.cached_result is not None: 16:13:07 request_cache_key = self.cache_key(request) 16:13:07 cache_key = self.cached_result[1] 16:13:07 try: 16:13:07 # Attempt to make a normal == check: this might fail for objects 16:13:07 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:07 cache_hit = bool(request_cache_key == cache_key) 16:13:07 except (ValueError, RuntimeError): 16:13:07 # If the comparison raises, use 'is' as fallback. 16:13:07 cache_hit = request_cache_key is cache_key 16:13:07 16:13:07 if cache_hit: 16:13:07 if self.cached_result[2] is not None: 16:13:07 exc, exc_tb = self.cached_result[2] 16:13:07 raise exc.with_traceback(exc_tb) 16:13:07 else: 16:13:07 return self.cached_result[0] 16:13:07 # We have a previous but differently parametrized fixture instance 16:13:07 # so we need to tear it down before creating a new one. 16:13:07 self.finish(request) 16:13:07 assert self.cached_result is None 16:13:07 16:13:07 # Add finalizer to requested fixtures we saved previously. 16:13:07 # We make sure to do this after checking for cached value to avoid 16:13:07 # adding our finalizer multiple times. (#12135) 16:13:07 finalizer = functools.partial(self.finish, request=request) 16:13:07 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:07 parent_fixture.addfinalizer(finalizer) 16:13:07 16:13:07 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:07 # which is executed last. 16:13:07 > assert not self._finalizers 16:13:07 ^^^^^^^^^^^^^^^^^^^^ 16:13:07 E AssertionError 16:13:07 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:07 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 16:13:07 16:13:07 cls = 16:13:07 func = . at 0x7f99e6395760> 16:13:07 when = 'setup' 16:13:07 reraise = (, ) 16:13:07 16:13:07 @classmethod 16:13:07 def from_call( 16:13:07 cls, 16:13:07 func: Callable[[], TResult], 16:13:07 when: Literal["collect", "setup", "call", "teardown"], 16:13:07 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:07 ) -> CallInfo[TResult]: 16:13:07 """Call func, wrapping the result in a CallInfo. 16:13:07 16:13:07 :param func: 16:13:07 The function to call. Called without arguments. 16:13:07 :type func: Callable[[], _pytest.runner.TResult] 16:13:07 :param when: 16:13:07 The phase in which the function is called. 16:13:07 :param reraise: 16:13:07 Exception or exceptions that shall propagate if raised by the 16:13:07 function, instead of being wrapped in the CallInfo. 16:13:07 """ 16:13:07 excinfo = None 16:13:07 instant = timing.Instant() 16:13:07 try: 16:13:07 > result: TResult | None = func() 16:13:07 ^^^^^^ 16:13:07 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:07 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:07 lambda: runtest_hook(item=item, **kwds), 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:07 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:07 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:07 yield 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:07 return (yield) 16:13:07 ^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:07 item.session._setupstate.setup(item) 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:07 col.setup() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:07 super().setup() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:07 self._request._fillfixtures() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:07 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:07 fixturedef = self._get_active_fixturedef(argname) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:07 fixturedef.execute(request=subrequest) 16:13:07 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:07 16:13:07 self = 16:13:07 request = > 16:13:07 16:13:07 def execute(self, request: SubRequest) -> FixtureValue: 16:13:07 """Return the value of this fixture, executing it if not cached.""" 16:13:07 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:07 # This needs to be done before checking if we have a cached value, since 16:13:07 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:07 # parametrization, they finalize themselves and fixtures depending on it 16:13:07 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:07 # See #4871 16:13:07 requested_fixtures_that_should_finalize_us = [] 16:13:07 for argname in self.argnames: 16:13:07 fixturedef = request._get_active_fixturedef(argname) 16:13:07 # Saves requested fixtures in a list so we later can add our finalizer 16:13:07 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:07 # down first. This is generally handled by SetupState, but still currently 16:13:07 # needed when this fixture is not parametrized but depends on a parametrized 16:13:07 # fixture. 16:13:07 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:07 16:13:07 # Check for (and return) cached value/exception. 16:13:07 if self.cached_result is not None: 16:13:07 request_cache_key = self.cache_key(request) 16:13:07 cache_key = self.cached_result[1] 16:13:07 try: 16:13:07 # Attempt to make a normal == check: this might fail for objects 16:13:07 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:07 cache_hit = bool(request_cache_key == cache_key) 16:13:07 except (ValueError, RuntimeError): 16:13:07 # If the comparison raises, use 'is' as fallback. 16:13:07 cache_hit = request_cache_key is cache_key 16:13:07 16:13:07 if cache_hit: 16:13:07 if self.cached_result[2] is not None: 16:13:07 exc, exc_tb = self.cached_result[2] 16:13:07 raise exc.with_traceback(exc_tb) 16:13:07 else: 16:13:07 return self.cached_result[0] 16:13:07 # We have a previous but differently parametrized fixture instance 16:13:07 # so we need to tear it down before creating a new one. 16:13:07 self.finish(request) 16:13:07 assert self.cached_result is None 16:13:07 16:13:07 # Add finalizer to requested fixtures we saved previously. 16:13:07 # We make sure to do this after checking for cached value to avoid 16:13:07 # adding our finalizer multiple times. (#12135) 16:13:07 finalizer = functools.partial(self.finish, request=request) 16:13:07 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:07 parent_fixture.addfinalizer(finalizer) 16:13:07 16:13:07 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:07 # which is executed last. 16:13:07 > assert not self._finalizers 16:13:07 ^^^^^^^^^^^^^^^^^^^^ 16:13:07 E AssertionError 16:13:07 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:07 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 16:13:07 16:13:07 cls = 16:13:07 func = . at 0x7f99e8aab2e0> 16:13:07 when = 'setup' 16:13:07 reraise = (, ) 16:13:07 16:13:07 @classmethod 16:13:07 def from_call( 16:13:07 cls, 16:13:07 func: Callable[[], TResult], 16:13:07 when: Literal["collect", "setup", "call", "teardown"], 16:13:07 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:07 ) -> CallInfo[TResult]: 16:13:07 """Call func, wrapping the result in a CallInfo. 16:13:07 16:13:07 :param func: 16:13:07 The function to call. Called without arguments. 16:13:07 :type func: Callable[[], _pytest.runner.TResult] 16:13:07 :param when: 16:13:07 The phase in which the function is called. 16:13:07 :param reraise: 16:13:07 Exception or exceptions that shall propagate if raised by the 16:13:07 function, instead of being wrapped in the CallInfo. 16:13:07 """ 16:13:07 excinfo = None 16:13:07 instant = timing.Instant() 16:13:07 try: 16:13:07 > result: TResult | None = func() 16:13:07 ^^^^^^ 16:13:07 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:07 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:07 lambda: runtest_hook(item=item, **kwds), 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:07 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:07 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:07 yield 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:07 return (yield) 16:13:07 ^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:07 item.session._setupstate.setup(item) 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:07 col.setup() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:07 super().setup() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:07 self._request._fillfixtures() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:07 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:07 fixturedef = self._get_active_fixturedef(argname) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:07 fixturedef.execute(request=subrequest) 16:13:07 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:07 16:13:07 self = 16:13:07 request = > 16:13:07 16:13:07 def execute(self, request: SubRequest) -> FixtureValue: 16:13:07 """Return the value of this fixture, executing it if not cached.""" 16:13:07 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:07 # This needs to be done before checking if we have a cached value, since 16:13:07 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:07 # parametrization, they finalize themselves and fixtures depending on it 16:13:07 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:07 # See #4871 16:13:07 requested_fixtures_that_should_finalize_us = [] 16:13:07 for argname in self.argnames: 16:13:07 fixturedef = request._get_active_fixturedef(argname) 16:13:07 # Saves requested fixtures in a list so we later can add our finalizer 16:13:07 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:07 # down first. This is generally handled by SetupState, but still currently 16:13:07 # needed when this fixture is not parametrized but depends on a parametrized 16:13:07 # fixture. 16:13:07 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:07 16:13:07 # Check for (and return) cached value/exception. 16:13:07 if self.cached_result is not None: 16:13:07 request_cache_key = self.cache_key(request) 16:13:07 cache_key = self.cached_result[1] 16:13:07 try: 16:13:07 # Attempt to make a normal == check: this might fail for objects 16:13:07 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:07 cache_hit = bool(request_cache_key == cache_key) 16:13:07 except (ValueError, RuntimeError): 16:13:07 # If the comparison raises, use 'is' as fallback. 16:13:07 cache_hit = request_cache_key is cache_key 16:13:07 16:13:07 if cache_hit: 16:13:07 if self.cached_result[2] is not None: 16:13:07 exc, exc_tb = self.cached_result[2] 16:13:07 raise exc.with_traceback(exc_tb) 16:13:07 else: 16:13:07 return self.cached_result[0] 16:13:07 # We have a previous but differently parametrized fixture instance 16:13:07 # so we need to tear it down before creating a new one. 16:13:07 self.finish(request) 16:13:07 assert self.cached_result is None 16:13:07 16:13:07 # Add finalizer to requested fixtures we saved previously. 16:13:07 # We make sure to do this after checking for cached value to avoid 16:13:07 # adding our finalizer multiple times. (#12135) 16:13:07 finalizer = functools.partial(self.finish, request=request) 16:13:07 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:07 parent_fixture.addfinalizer(finalizer) 16:13:07 16:13:07 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:07 # which is executed last. 16:13:07 > assert not self._finalizers 16:13:07 ^^^^^^^^^^^^^^^^^^^^ 16:13:07 E AssertionError 16:13:07 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:07 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 16:13:07 16:13:07 cls = 16:13:07 func = . at 0x7f99e6396f20> 16:13:07 when = 'setup' 16:13:07 reraise = (, ) 16:13:07 16:13:07 @classmethod 16:13:07 def from_call( 16:13:07 cls, 16:13:07 func: Callable[[], TResult], 16:13:07 when: Literal["collect", "setup", "call", "teardown"], 16:13:07 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:07 ) -> CallInfo[TResult]: 16:13:07 """Call func, wrapping the result in a CallInfo. 16:13:07 16:13:07 :param func: 16:13:07 The function to call. Called without arguments. 16:13:07 :type func: Callable[[], _pytest.runner.TResult] 16:13:07 :param when: 16:13:07 The phase in which the function is called. 16:13:07 :param reraise: 16:13:07 Exception or exceptions that shall propagate if raised by the 16:13:07 function, instead of being wrapped in the CallInfo. 16:13:07 """ 16:13:07 excinfo = None 16:13:07 instant = timing.Instant() 16:13:07 try: 16:13:07 > result: TResult | None = func() 16:13:07 ^^^^^^ 16:13:07 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:07 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:07 lambda: runtest_hook(item=item, **kwds), 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:07 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:07 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:07 yield 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:07 return (yield) 16:13:07 ^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:07 item.session._setupstate.setup(item) 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:07 col.setup() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:07 super().setup() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:07 self._request._fillfixtures() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:07 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:07 fixturedef = self._get_active_fixturedef(argname) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:07 fixturedef.execute(request=subrequest) 16:13:07 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:07 16:13:07 self = 16:13:07 request = > 16:13:07 16:13:07 def execute(self, request: SubRequest) -> FixtureValue: 16:13:07 """Return the value of this fixture, executing it if not cached.""" 16:13:07 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:07 # This needs to be done before checking if we have a cached value, since 16:13:07 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:07 # parametrization, they finalize themselves and fixtures depending on it 16:13:07 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:07 # See #4871 16:13:07 requested_fixtures_that_should_finalize_us = [] 16:13:07 for argname in self.argnames: 16:13:07 fixturedef = request._get_active_fixturedef(argname) 16:13:07 # Saves requested fixtures in a list so we later can add our finalizer 16:13:07 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:07 # down first. This is generally handled by SetupState, but still currently 16:13:07 # needed when this fixture is not parametrized but depends on a parametrized 16:13:07 # fixture. 16:13:07 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:07 16:13:07 # Check for (and return) cached value/exception. 16:13:07 if self.cached_result is not None: 16:13:07 request_cache_key = self.cache_key(request) 16:13:07 cache_key = self.cached_result[1] 16:13:07 try: 16:13:07 # Attempt to make a normal == check: this might fail for objects 16:13:07 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:07 cache_hit = bool(request_cache_key == cache_key) 16:13:07 except (ValueError, RuntimeError): 16:13:07 # If the comparison raises, use 'is' as fallback. 16:13:07 cache_hit = request_cache_key is cache_key 16:13:07 16:13:07 if cache_hit: 16:13:07 if self.cached_result[2] is not None: 16:13:07 exc, exc_tb = self.cached_result[2] 16:13:07 raise exc.with_traceback(exc_tb) 16:13:07 else: 16:13:07 return self.cached_result[0] 16:13:07 # We have a previous but differently parametrized fixture instance 16:13:07 # so we need to tear it down before creating a new one. 16:13:07 self.finish(request) 16:13:07 assert self.cached_result is None 16:13:07 16:13:07 # Add finalizer to requested fixtures we saved previously. 16:13:07 # We make sure to do this after checking for cached value to avoid 16:13:07 # adding our finalizer multiple times. (#12135) 16:13:07 finalizer = functools.partial(self.finish, request=request) 16:13:07 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:07 parent_fixture.addfinalizer(finalizer) 16:13:07 16:13:07 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:07 # which is executed last. 16:13:07 > assert not self._finalizers 16:13:07 ^^^^^^^^^^^^^^^^^^^^ 16:13:07 E AssertionError 16:13:07 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:07 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 16:13:07 16:13:07 cls = 16:13:07 func = . at 0x7f99e6397100> 16:13:07 when = 'setup' 16:13:07 reraise = (, ) 16:13:07 16:13:07 @classmethod 16:13:07 def from_call( 16:13:07 cls, 16:13:07 func: Callable[[], TResult], 16:13:07 when: Literal["collect", "setup", "call", "teardown"], 16:13:07 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:07 ) -> CallInfo[TResult]: 16:13:07 """Call func, wrapping the result in a CallInfo. 16:13:07 16:13:07 :param func: 16:13:07 The function to call. Called without arguments. 16:13:07 :type func: Callable[[], _pytest.runner.TResult] 16:13:07 :param when: 16:13:07 The phase in which the function is called. 16:13:07 :param reraise: 16:13:07 Exception or exceptions that shall propagate if raised by the 16:13:07 function, instead of being wrapped in the CallInfo. 16:13:07 """ 16:13:07 excinfo = None 16:13:07 instant = timing.Instant() 16:13:07 try: 16:13:07 > result: TResult | None = func() 16:13:07 ^^^^^^ 16:13:07 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:07 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:07 lambda: runtest_hook(item=item, **kwds), 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:07 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:07 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:07 yield 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:07 return (yield) 16:13:07 ^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:07 item.session._setupstate.setup(item) 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:07 col.setup() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:07 super().setup() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:07 self._request._fillfixtures() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:07 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:07 fixturedef = self._get_active_fixturedef(argname) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:07 fixturedef.execute(request=subrequest) 16:13:07 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:07 16:13:07 self = 16:13:07 request = > 16:13:07 16:13:07 def execute(self, request: SubRequest) -> FixtureValue: 16:13:07 """Return the value of this fixture, executing it if not cached.""" 16:13:07 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:07 # This needs to be done before checking if we have a cached value, since 16:13:07 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:07 # parametrization, they finalize themselves and fixtures depending on it 16:13:07 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:07 # See #4871 16:13:07 requested_fixtures_that_should_finalize_us = [] 16:13:07 for argname in self.argnames: 16:13:07 fixturedef = request._get_active_fixturedef(argname) 16:13:07 # Saves requested fixtures in a list so we later can add our finalizer 16:13:07 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:07 # down first. This is generally handled by SetupState, but still currently 16:13:07 # needed when this fixture is not parametrized but depends on a parametrized 16:13:07 # fixture. 16:13:07 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:07 16:13:07 # Check for (and return) cached value/exception. 16:13:07 if self.cached_result is not None: 16:13:07 request_cache_key = self.cache_key(request) 16:13:07 cache_key = self.cached_result[1] 16:13:07 try: 16:13:07 # Attempt to make a normal == check: this might fail for objects 16:13:07 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:07 cache_hit = bool(request_cache_key == cache_key) 16:13:07 except (ValueError, RuntimeError): 16:13:07 # If the comparison raises, use 'is' as fallback. 16:13:07 cache_hit = request_cache_key is cache_key 16:13:07 16:13:07 if cache_hit: 16:13:07 if self.cached_result[2] is not None: 16:13:07 exc, exc_tb = self.cached_result[2] 16:13:07 raise exc.with_traceback(exc_tb) 16:13:07 else: 16:13:07 return self.cached_result[0] 16:13:07 # We have a previous but differently parametrized fixture instance 16:13:07 # so we need to tear it down before creating a new one. 16:13:07 self.finish(request) 16:13:07 assert self.cached_result is None 16:13:07 16:13:07 # Add finalizer to requested fixtures we saved previously. 16:13:07 # We make sure to do this after checking for cached value to avoid 16:13:07 # adding our finalizer multiple times. (#12135) 16:13:07 finalizer = functools.partial(self.finish, request=request) 16:13:07 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:07 parent_fixture.addfinalizer(finalizer) 16:13:07 16:13:07 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:07 # which is executed last. 16:13:07 > assert not self._finalizers 16:13:07 ^^^^^^^^^^^^^^^^^^^^ 16:13:07 E AssertionError 16:13:07 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:07 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 16:13:07 16:13:07 cls = 16:13:07 func = . at 0x7f99e6395760> 16:13:07 when = 'setup' 16:13:07 reraise = (, ) 16:13:07 16:13:07 @classmethod 16:13:07 def from_call( 16:13:07 cls, 16:13:07 func: Callable[[], TResult], 16:13:07 when: Literal["collect", "setup", "call", "teardown"], 16:13:07 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:07 ) -> CallInfo[TResult]: 16:13:07 """Call func, wrapping the result in a CallInfo. 16:13:07 16:13:07 :param func: 16:13:07 The function to call. Called without arguments. 16:13:07 :type func: Callable[[], _pytest.runner.TResult] 16:13:07 :param when: 16:13:07 The phase in which the function is called. 16:13:07 :param reraise: 16:13:07 Exception or exceptions that shall propagate if raised by the 16:13:07 function, instead of being wrapped in the CallInfo. 16:13:07 """ 16:13:07 excinfo = None 16:13:07 instant = timing.Instant() 16:13:07 try: 16:13:07 > result: TResult | None = func() 16:13:07 ^^^^^^ 16:13:07 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:07 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:07 lambda: runtest_hook(item=item, **kwds), 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:07 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:07 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:07 yield 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:07 return (yield) 16:13:07 ^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:07 item.session._setupstate.setup(item) 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:07 col.setup() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:07 super().setup() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:07 self._request._fillfixtures() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:07 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:07 fixturedef = self._get_active_fixturedef(argname) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:07 fixturedef.execute(request=subrequest) 16:13:07 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:07 16:13:07 self = 16:13:07 request = > 16:13:07 16:13:07 def execute(self, request: SubRequest) -> FixtureValue: 16:13:07 """Return the value of this fixture, executing it if not cached.""" 16:13:07 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:07 # This needs to be done before checking if we have a cached value, since 16:13:07 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:07 # parametrization, they finalize themselves and fixtures depending on it 16:13:07 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:07 # See #4871 16:13:07 requested_fixtures_that_should_finalize_us = [] 16:13:07 for argname in self.argnames: 16:13:07 fixturedef = request._get_active_fixturedef(argname) 16:13:07 # Saves requested fixtures in a list so we later can add our finalizer 16:13:07 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:07 # down first. This is generally handled by SetupState, but still currently 16:13:07 # needed when this fixture is not parametrized but depends on a parametrized 16:13:07 # fixture. 16:13:07 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:07 16:13:07 # Check for (and return) cached value/exception. 16:13:07 if self.cached_result is not None: 16:13:07 request_cache_key = self.cache_key(request) 16:13:07 cache_key = self.cached_result[1] 16:13:07 try: 16:13:07 # Attempt to make a normal == check: this might fail for objects 16:13:07 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:07 cache_hit = bool(request_cache_key == cache_key) 16:13:07 except (ValueError, RuntimeError): 16:13:07 # If the comparison raises, use 'is' as fallback. 16:13:07 cache_hit = request_cache_key is cache_key 16:13:07 16:13:07 if cache_hit: 16:13:07 if self.cached_result[2] is not None: 16:13:07 exc, exc_tb = self.cached_result[2] 16:13:07 raise exc.with_traceback(exc_tb) 16:13:07 else: 16:13:07 return self.cached_result[0] 16:13:07 # We have a previous but differently parametrized fixture instance 16:13:07 # so we need to tear it down before creating a new one. 16:13:07 self.finish(request) 16:13:07 assert self.cached_result is None 16:13:07 16:13:07 # Add finalizer to requested fixtures we saved previously. 16:13:07 # We make sure to do this after checking for cached value to avoid 16:13:07 # adding our finalizer multiple times. (#12135) 16:13:07 finalizer = functools.partial(self.finish, request=request) 16:13:07 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:07 parent_fixture.addfinalizer(finalizer) 16:13:07 16:13:07 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:07 # which is executed last. 16:13:07 > assert not self._finalizers 16:13:07 ^^^^^^^^^^^^^^^^^^^^ 16:13:07 E AssertionError 16:13:07 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:07 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 16:13:07 16:13:07 cls = 16:13:07 func = . at 0x7f99e63972e0> 16:13:07 when = 'setup' 16:13:07 reraise = (, ) 16:13:07 16:13:07 @classmethod 16:13:07 def from_call( 16:13:07 cls, 16:13:07 func: Callable[[], TResult], 16:13:07 when: Literal["collect", "setup", "call", "teardown"], 16:13:07 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:07 ) -> CallInfo[TResult]: 16:13:07 """Call func, wrapping the result in a CallInfo. 16:13:07 16:13:07 :param func: 16:13:07 The function to call. Called without arguments. 16:13:07 :type func: Callable[[], _pytest.runner.TResult] 16:13:07 :param when: 16:13:07 The phase in which the function is called. 16:13:07 :param reraise: 16:13:07 Exception or exceptions that shall propagate if raised by the 16:13:07 function, instead of being wrapped in the CallInfo. 16:13:07 """ 16:13:07 excinfo = None 16:13:07 instant = timing.Instant() 16:13:07 try: 16:13:07 > result: TResult | None = func() 16:13:07 ^^^^^^ 16:13:07 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:07 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:07 lambda: runtest_hook(item=item, **kwds), 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:07 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:07 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:07 yield 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:07 return (yield) 16:13:07 ^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:07 item.session._setupstate.setup(item) 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:07 col.setup() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:07 super().setup() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:07 self._request._fillfixtures() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:07 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:07 fixturedef = self._get_active_fixturedef(argname) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:07 fixturedef.execute(request=subrequest) 16:13:07 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:07 16:13:07 self = 16:13:07 request = > 16:13:07 16:13:07 def execute(self, request: SubRequest) -> FixtureValue: 16:13:07 """Return the value of this fixture, executing it if not cached.""" 16:13:07 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:07 # This needs to be done before checking if we have a cached value, since 16:13:07 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:07 # parametrization, they finalize themselves and fixtures depending on it 16:13:07 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:07 # See #4871 16:13:07 requested_fixtures_that_should_finalize_us = [] 16:13:07 for argname in self.argnames: 16:13:07 fixturedef = request._get_active_fixturedef(argname) 16:13:07 # Saves requested fixtures in a list so we later can add our finalizer 16:13:07 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:07 # down first. This is generally handled by SetupState, but still currently 16:13:07 # needed when this fixture is not parametrized but depends on a parametrized 16:13:07 # fixture. 16:13:07 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:07 16:13:07 # Check for (and return) cached value/exception. 16:13:07 if self.cached_result is not None: 16:13:07 request_cache_key = self.cache_key(request) 16:13:07 cache_key = self.cached_result[1] 16:13:07 try: 16:13:07 # Attempt to make a normal == check: this might fail for objects 16:13:07 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:07 cache_hit = bool(request_cache_key == cache_key) 16:13:07 except (ValueError, RuntimeError): 16:13:07 # If the comparison raises, use 'is' as fallback. 16:13:07 cache_hit = request_cache_key is cache_key 16:13:07 16:13:07 if cache_hit: 16:13:07 if self.cached_result[2] is not None: 16:13:07 exc, exc_tb = self.cached_result[2] 16:13:07 raise exc.with_traceback(exc_tb) 16:13:07 else: 16:13:07 return self.cached_result[0] 16:13:07 # We have a previous but differently parametrized fixture instance 16:13:07 # so we need to tear it down before creating a new one. 16:13:07 self.finish(request) 16:13:07 assert self.cached_result is None 16:13:07 16:13:07 # Add finalizer to requested fixtures we saved previously. 16:13:07 # We make sure to do this after checking for cached value to avoid 16:13:07 # adding our finalizer multiple times. (#12135) 16:13:07 finalizer = functools.partial(self.finish, request=request) 16:13:07 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:07 parent_fixture.addfinalizer(finalizer) 16:13:07 16:13:07 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:07 # which is executed last. 16:13:07 > assert not self._finalizers 16:13:07 ^^^^^^^^^^^^^^^^^^^^ 16:13:07 E AssertionError 16:13:07 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:07 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 16:13:07 16:13:07 cls = 16:13:07 func = . at 0x7f99e6395260> 16:13:07 when = 'setup' 16:13:07 reraise = (, ) 16:13:07 16:13:07 @classmethod 16:13:07 def from_call( 16:13:07 cls, 16:13:07 func: Callable[[], TResult], 16:13:07 when: Literal["collect", "setup", "call", "teardown"], 16:13:07 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:07 ) -> CallInfo[TResult]: 16:13:07 """Call func, wrapping the result in a CallInfo. 16:13:07 16:13:07 :param func: 16:13:07 The function to call. Called without arguments. 16:13:07 :type func: Callable[[], _pytest.runner.TResult] 16:13:07 :param when: 16:13:07 The phase in which the function is called. 16:13:07 :param reraise: 16:13:07 Exception or exceptions that shall propagate if raised by the 16:13:07 function, instead of being wrapped in the CallInfo. 16:13:07 """ 16:13:07 excinfo = None 16:13:07 instant = timing.Instant() 16:13:07 try: 16:13:07 > result: TResult | None = func() 16:13:07 ^^^^^^ 16:13:07 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:07 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:07 lambda: runtest_hook(item=item, **kwds), 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:07 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:07 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:07 yield 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:07 return (yield) 16:13:07 ^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:07 item.session._setupstate.setup(item) 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:07 col.setup() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:07 super().setup() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:07 self._request._fillfixtures() 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:07 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:07 fixturedef = self._get_active_fixturedef(argname) 16:13:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:07 fixturedef.execute(request=subrequest) 16:13:07 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:07 16:13:07 self = 16:13:07 request = > 16:13:07 16:13:07 def execute(self, request: SubRequest) -> FixtureValue: 16:13:07 """Return the value of this fixture, executing it if not cached.""" 16:13:07 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:07 # This needs to be done before checking if we have a cached value, since 16:13:07 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:07 # parametrization, they finalize themselves and fixtures depending on it 16:13:07 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:07 # See #4871 16:13:07 requested_fixtures_that_should_finalize_us = [] 16:13:07 for argname in self.argnames: 16:13:07 fixturedef = request._get_active_fixturedef(argname) 16:13:07 # Saves requested fixtures in a list so we later can add our finalizer 16:13:07 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:07 # down first. This is generally handled by SetupState, but still currently 16:13:07 # needed when this fixture is not parametrized but depends on a parametrized 16:13:07 # fixture. 16:13:07 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:07 16:13:07 # Check for (and return) cached value/exception. 16:13:07 if self.cached_result is not None: 16:13:07 request_cache_key = self.cache_key(request) 16:13:07 cache_key = self.cached_result[1] 16:13:07 try: 16:13:07 # Attempt to make a normal == check: this might fail for objects 16:13:07 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:07 cache_hit = bool(request_cache_key == cache_key) 16:13:07 except (ValueError, RuntimeError): 16:13:07 # If the comparison raises, use 'is' as fallback. 16:13:07 cache_hit = request_cache_key is cache_key 16:13:07 16:13:07 if cache_hit: 16:13:07 if self.cached_result[2] is not None: 16:13:07 exc, exc_tb = self.cached_result[2] 16:13:07 raise exc.with_traceback(exc_tb) 16:13:07 else: 16:13:07 return self.cached_result[0] 16:13:07 # We have a previous but differently parametrized fixture instance 16:13:07 # so we need to tear it down before creating a new one. 16:13:07 self.finish(request) 16:13:07 assert self.cached_result is None 16:13:07 16:13:07 # Add finalizer to requested fixtures we saved previously. 16:13:07 # We make sure to do this after checking for cached value to avoid 16:13:07 # adding our finalizer multiple times. (#12135) 16:13:07 finalizer = functools.partial(self.finish, request=request) 16:13:07 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:07 parent_fixture.addfinalizer(finalizer) 16:13:07 16:13:07 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:07 # which is executed last. 16:13:07 > assert not self._finalizers 16:13:07 ^^^^^^^^^^^^^^^^^^^^ 16:13:07 E AssertionError 16:13:07 16:13:07 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:07 =========================== short test summary info ============================ 16:13:07 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 16:13:07 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 16:13:07 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 16:13:07 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 16:13:07 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 16:13:07 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 16:13:07 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 16:13:07 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 16:13:07 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 16:13:07 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 16:13:07 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 16:13:07 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 16:13:07 12 errors in 102.29s (0:01:42) 16:13:07 tests71: exit 1 (102.56 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 pid=5173 16:13:08 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 16:13:18 ==================================== ERRORS ==================================== 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 16:13:18 16:13:18 cls = 16:13:18 16:13:18 @classmethod 16:13:18 def setUpClass(cls): 16:13:18 > cls.processes = test_utils.start_tpce() 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 16:13:18 transportpce_tests/hybrid/test01_device_change_notifications.py:76: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 def start_tpce(): 16:13:18 if 'NO_ODL_STARTUP' in os.environ: 16:13:18 print('No OpenDaylight instance to start!') 16:13:18 return [] 16:13:18 print('starting OpenDaylight...') 16:13:18 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:13:18 process = start_lighty() 16:13:18 else: 16:13:18 process = start_karaf() 16:13:18 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:13:18 print('OpenDaylight started !') 16:13:18 else: 16:13:18 print('OpenDaylight failed to start !') 16:13:18 shutdown_process(process) 16:13:18 for pid in process_list: 16:13:18 shutdown_process(pid) 16:13:18 > sys.exit(1) 16:13:18 E SystemExit: 1 16:13:18 16:13:18 transportpce_tests/common/test_utils.py:234: SystemExit 16:13:18 ---------------------------- Captured stdout setup ----------------------------- 16:13:18 starting OpenDaylight... 16:13:18 starting KARAF (karaf221) TransportPCE build... 16:13:18 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae84d04a0> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae84d3ec0> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcaeab6ef20> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae84d3600> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae847d1c0> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcaeab6ef20> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae84d1f80> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae84d2160> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae847d1c0> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcaeab6ef20> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae84d3d80> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae847d1c0> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcaeab6ef20> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae7f39620> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcaeab6ef20> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae84d3ba0> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae847d580> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcaeab6ef20> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae847d760> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae847d580> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae84d3ba0> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae7f39080> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae847d760> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae84d3ba0> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae7f393a0> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae847d760> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae7f39260> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae7f38b80> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae847d760> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae7f38ea0> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae7f396c0> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae847d760> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae7f380e0> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae847d760> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae7f39440> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae7f385e0> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae847d760> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae7f385e0> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae7f3a0c0> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae847d760> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae7f39940> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae7f3a3e0> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae847d760> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae7f380e0> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae7f38e00> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae847d760> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae7f39bc0> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae7f38e00> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae847d760> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 16:13:18 16:13:18 cls = 16:13:18 func = . at 0x7fcae7f38220> 16:13:18 when = 'setup' 16:13:18 reraise = (, ) 16:13:18 16:13:18 @classmethod 16:13:18 def from_call( 16:13:18 cls, 16:13:18 func: Callable[[], TResult], 16:13:18 when: Literal["collect", "setup", "call", "teardown"], 16:13:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:13:18 ) -> CallInfo[TResult]: 16:13:18 """Call func, wrapping the result in a CallInfo. 16:13:18 16:13:18 :param func: 16:13:18 The function to call. Called without arguments. 16:13:18 :type func: Callable[[], _pytest.runner.TResult] 16:13:18 :param when: 16:13:18 The phase in which the function is called. 16:13:18 :param reraise: 16:13:18 Exception or exceptions that shall propagate if raised by the 16:13:18 function, instead of being wrapped in the CallInfo. 16:13:18 """ 16:13:18 excinfo = None 16:13:18 instant = timing.Instant() 16:13:18 try: 16:13:18 > result: TResult | None = func() 16:13:18 ^^^^^^ 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:13:18 lambda: runtest_hook(item=item, **kwds), 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:13:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:13:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:13:18 yield 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:13:18 return (yield) 16:13:18 ^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:13:18 item.session._setupstate.setup(item) 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:13:18 col.setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:13:18 super().setup() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:13:18 self._request._fillfixtures() 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:13:18 item.funcargs[argname] = self.getfixturevalue(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:13:18 fixturedef = self._get_active_fixturedef(argname) 16:13:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:13:18 fixturedef.execute(request=subrequest) 16:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:13:18 16:13:18 self = 16:13:18 request = > 16:13:18 16:13:18 def execute(self, request: SubRequest) -> FixtureValue: 16:13:18 """Return the value of this fixture, executing it if not cached.""" 16:13:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:13:18 # This needs to be done before checking if we have a cached value, since 16:13:18 # if a dependent fixture has their cache invalidated, e.g. due to 16:13:18 # parametrization, they finalize themselves and fixtures depending on it 16:13:18 # (which will likely include this fixture) setting `self.cached_result = None`. 16:13:18 # See #4871 16:13:18 requested_fixtures_that_should_finalize_us = [] 16:13:18 for argname in self.argnames: 16:13:18 fixturedef = request._get_active_fixturedef(argname) 16:13:18 # Saves requested fixtures in a list so we later can add our finalizer 16:13:18 # to them, ensuring that if a requested fixture gets torn down we get torn 16:13:18 # down first. This is generally handled by SetupState, but still currently 16:13:18 # needed when this fixture is not parametrized but depends on a parametrized 16:13:18 # fixture. 16:13:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:13:18 16:13:18 # Check for (and return) cached value/exception. 16:13:18 if self.cached_result is not None: 16:13:18 request_cache_key = self.cache_key(request) 16:13:18 cache_key = self.cached_result[1] 16:13:18 try: 16:13:18 # Attempt to make a normal == check: this might fail for objects 16:13:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:13:18 cache_hit = bool(request_cache_key == cache_key) 16:13:18 except (ValueError, RuntimeError): 16:13:18 # If the comparison raises, use 'is' as fallback. 16:13:18 cache_hit = request_cache_key is cache_key 16:13:18 16:13:18 if cache_hit: 16:13:18 if self.cached_result[2] is not None: 16:13:18 exc, exc_tb = self.cached_result[2] 16:13:18 raise exc.with_traceback(exc_tb) 16:13:18 else: 16:13:18 return self.cached_result[0] 16:13:18 # We have a previous but differently parametrized fixture instance 16:13:18 # so we need to tear it down before creating a new one. 16:13:18 self.finish(request) 16:13:18 assert self.cached_result is None 16:13:18 16:13:18 # Add finalizer to requested fixtures we saved previously. 16:13:18 # We make sure to do this after checking for cached value to avoid 16:13:18 # adding our finalizer multiple times. (#12135) 16:13:18 finalizer = functools.partial(self.finish, request=request) 16:13:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:13:18 parent_fixture.addfinalizer(finalizer) 16:13:18 16:13:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:13:18 # which is executed last. 16:13:18 > assert not self._finalizers 16:13:18 ^^^^^^^^^^^^^^^^^^^^ 16:13:18 E AssertionError 16:13:18 16:13:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:13:18 =========================== short test summary info ============================ 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 16:13:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 16:13:18 51 errors in 109.51s (0:01:49) 16:13:18 tests71: FAIL ✖ in 1 minute 50.75 seconds 16:13:18 tests_hybrid: exit 1 (109.77 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid pid=5189 16:13:18 buildcontroller: FAIL code 1 (54.31=setup[10.12]+cmd[44.19] seconds) 16:13:18 sims: OK (11.68=setup[6.74]+cmd[4.94] seconds) 16:13:18 testsPCE: FAIL code 1 (173.20=setup[49.11]+cmd[124.08] seconds) 16:13:18 build_karaf_tests221: FAIL code 127 (20.10=setup[9.14]+cmd[10.97] seconds) 16:13:18 tests_tapi: FAIL code 1 (118.19=setup[8.39]+cmd[109.80] seconds) 16:13:18 tests221: FAIL code 1 (115.57=setup[8.64]+cmd[106.93] seconds) 16:13:18 build_karaf_tests71: FAIL code 127 (20.46=setup[9.80]+cmd[10.67] seconds) 16:13:18 tests71: FAIL code 1 (110.75=setup[8.19]+cmd[102.56] seconds) 16:13:18 build_karaf_tests200: FAIL code 127 (20.07=setup[9.52]+cmd[10.54] seconds) 16:13:18 tests200: FAIL code 1 (110.87=setup[8.63]+cmd[102.24] seconds) 16:13:18 tests_hybrid: FAIL code 1 (116.25=setup[6.47]+cmd[109.77] seconds) 16:13:18 buildlighty: FAIL code 9 (17.08=setup[6.68]+cmd[10.39] seconds) 16:13:18 docs: OK (23.57=setup[19.97]+cmd[3.60] seconds) 16:13:18 docs-linkcheck: OK (25.27=setup[19.38]+cmd[5.89] seconds) 16:13:18 checkbashisms: OK (3.47=setup[2.28]+cmd[0.00,0.04,1.15] seconds) 16:13:18 pre-commit: OK (76.32=setup[3.46]+cmd[0.01,0.01,59.17,13.67] seconds) 16:13:18 pylint: OK (28.68=setup[4.30]+cmd[24.38] seconds) 16:13:18 evaluation failed :( (598.03 seconds) 16:13:18 + tox_status=1 16:13:18 + echo '---> Completed tox runs' 16:13:18 ---> Completed tox runs 16:13:18 + for i in .tox/*/log 16:13:18 ++ echo .tox/build_karaf_tests200/log 16:13:18 ++ awk -F/ '{print $2}' 16:13:18 + tox_env=build_karaf_tests200 16:13:18 + cp -r .tox/build_karaf_tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests200 16:13:18 + for i in .tox/*/log 16:13:18 ++ echo .tox/build_karaf_tests221/log 16:13:18 ++ awk -F/ '{print $2}' 16:13:18 + tox_env=build_karaf_tests221 16:13:18 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests221 16:13:18 + for i in .tox/*/log 16:13:18 ++ echo .tox/build_karaf_tests71/log 16:13:18 ++ awk -F/ '{print $2}' 16:13:18 + tox_env=build_karaf_tests71 16:13:18 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests71 16:13:18 + for i in .tox/*/log 16:13:18 ++ echo .tox/buildcontroller/log 16:13:18 ++ awk -F/ '{print $2}' 16:13:18 + tox_env=buildcontroller 16:13:18 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildcontroller 16:13:18 + for i in .tox/*/log 16:13:18 ++ echo .tox/buildlighty/log 16:13:18 ++ awk -F/ '{print $2}' 16:13:18 + tox_env=buildlighty 16:13:18 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildlighty 16:13:18 + for i in .tox/*/log 16:13:18 ++ echo .tox/checkbashisms/log 16:13:18 ++ awk -F/ '{print $2}' 16:13:18 + tox_env=checkbashisms 16:13:18 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/checkbashisms 16:13:18 + for i in .tox/*/log 16:13:18 ++ echo .tox/docs-linkcheck/log 16:13:18 ++ awk -F/ '{print $2}' 16:13:18 + tox_env=docs-linkcheck 16:13:18 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs-linkcheck 16:13:18 + for i in .tox/*/log 16:13:18 ++ echo .tox/docs/log 16:13:18 ++ awk -F/ '{print $2}' 16:13:18 + tox_env=docs 16:13:18 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs 16:13:18 + for i in .tox/*/log 16:13:18 ++ echo .tox/pre-commit/log 16:13:18 ++ awk -F/ '{print $2}' 16:13:18 + tox_env=pre-commit 16:13:18 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pre-commit 16:13:18 + for i in .tox/*/log 16:13:18 ++ echo .tox/pylint/log 16:13:18 ++ awk -F/ '{print $2}' 16:13:18 + tox_env=pylint 16:13:18 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pylint 16:13:18 + for i in .tox/*/log 16:13:18 ++ echo .tox/sims/log 16:13:18 ++ awk -F/ '{print $2}' 16:13:18 + tox_env=sims 16:13:18 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/sims 16:13:18 + for i in .tox/*/log 16:13:18 ++ echo .tox/tests200/log 16:13:18 ++ awk -F/ '{print $2}' 16:13:18 + tox_env=tests200 16:13:18 + cp -r .tox/tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests200 16:13:18 + for i in .tox/*/log 16:13:18 ++ echo .tox/tests221/log 16:13:18 ++ awk -F/ '{print $2}' 16:13:18 + tox_env=tests221 16:13:18 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests221 16:13:18 + for i in .tox/*/log 16:13:18 ++ echo .tox/tests71/log 16:13:18 ++ awk -F/ '{print $2}' 16:13:18 + tox_env=tests71 16:13:18 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests71 16:13:18 + for i in .tox/*/log 16:13:18 ++ echo .tox/testsPCE/log 16:13:18 ++ awk -F/ '{print $2}' 16:13:18 + tox_env=testsPCE 16:13:18 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/testsPCE 16:13:18 + for i in .tox/*/log 16:13:18 ++ echo .tox/tests_hybrid/log 16:13:18 ++ awk -F/ '{print $2}' 16:13:18 + tox_env=tests_hybrid 16:13:18 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_hybrid 16:13:18 + for i in .tox/*/log 16:13:18 ++ echo .tox/tests_tapi/log 16:13:18 ++ awk -F/ '{print $2}' 16:13:18 + tox_env=tests_tapi 16:13:18 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_tapi 16:13:18 + DOC_DIR=docs/_build/html 16:13:18 + [[ -d docs/_build/html ]] 16:13:18 + echo '---> Archiving generated docs' 16:13:18 ---> Archiving generated docs 16:13:18 + mv docs/_build/html /w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 16:13:18 + echo '---> tox-run.sh ends' 16:13:18 ---> tox-run.sh ends 16:13:18 + test 1 -eq 0 16:13:18 + exit 1 16:13:18 ++ '[' 1 = 1 ']' 16:13:18 ++ '[' -x /usr/bin/clear_console ']' 16:13:18 ++ /usr/bin/clear_console -q 16:13:18 Build step 'Execute shell' marked build as failure 16:13:18 $ ssh-agent -k 16:13:18 unset SSH_AUTH_SOCK; 16:13:18 unset SSH_AGENT_PID; 16:13:18 echo Agent pid 1552 killed; 16:13:18 [ssh-agent] Stopped. 16:13:18 [PostBuildScript] - [INFO] Executing post build scripts. 16:13:18 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins17213367246755589743.sh 16:13:18 ---> sysstat.sh 16:13:19 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins8298041185585679032.sh 16:13:19 ---> package-listing.sh 16:13:19 ++ facter osfamily 16:13:19 ++ tr '[:upper:]' '[:lower:]' 16:13:19 + OS_FAMILY=debian 16:13:19 + workspace=/w/workspace/transportpce-tox-verify-transportpce-master 16:13:19 + START_PACKAGES=/tmp/packages_start.txt 16:13:19 + END_PACKAGES=/tmp/packages_end.txt 16:13:19 + DIFF_PACKAGES=/tmp/packages_diff.txt 16:13:19 + PACKAGES=/tmp/packages_start.txt 16:13:19 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 16:13:19 + PACKAGES=/tmp/packages_end.txt 16:13:19 + case "${OS_FAMILY}" in 16:13:19 + dpkg -l 16:13:19 + grep '^ii' 16:13:19 + '[' -f /tmp/packages_start.txt ']' 16:13:19 + '[' -f /tmp/packages_end.txt ']' 16:13:19 + diff /tmp/packages_start.txt /tmp/packages_end.txt 16:13:19 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 16:13:19 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 16:13:19 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 16:13:19 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins6241932257461431463.sh 16:13:19 ---> capture-instance-metadata.sh 16:13:19 Setup pyenv: 16:13:19 system 16:13:19 3.8.20 16:13:19 3.9.20 16:13:19 3.10.15 16:13:19 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 16:13:19 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-8sZp from file:/tmp/.os_lf_venv 16:13:19 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:13:21 lf-activate-venv(): INFO: Installing additional packages: lftools 16:13:37 lf-activate-venv(): INFO: Adding /tmp/venv-8sZp/bin to PATH 16:13:37 INFO: Running in OpenStack, capturing instance metadata 16:13:38 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins4656523740854425049.sh 16:13:38 provisioning config files... 16:13:38 Could not find credentials [logs] for transportpce-tox-verify-transportpce-master #6079 16:13:38 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-transportpce-master@tmp/config2488842763396335060tmp 16:13:38 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 16:13:38 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 16:13:38 provisioning config files... 16:13:39 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 16:13:39 [EnvInject] - Injecting environment variables from a build step. 16:13:39 [EnvInject] - Injecting as environment variables the properties content 16:13:39 SERVER_ID=logs 16:13:39 16:13:39 [EnvInject] - Variables injected successfully. 16:13:39 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins5131653140856027139.sh 16:13:39 ---> create-netrc.sh 16:13:39 WARN: Log server credential not found. 16:13:39 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins5013177674335153845.sh 16:13:39 ---> python-tools-install.sh 16:13:39 Setup pyenv: 16:13:39 system 16:13:39 3.8.20 16:13:39 3.9.20 16:13:39 3.10.15 16:13:39 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 16:13:39 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-8sZp from file:/tmp/.os_lf_venv 16:13:39 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:13:41 lf-activate-venv(): INFO: Installing additional packages: lftools 16:13:51 lf-activate-venv(): INFO: Adding /tmp/venv-8sZp/bin to PATH 16:13:51 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins17285146916269834323.sh 16:13:51 ---> uv-install.sh 16:13:51 uv 0.12.13 is already installed 16:13:51 uvx 0.12.13 (x86_64-unknown-linux-gnu) 16:13:51 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins5655513162077117263.sh 16:13:51 ---> sudo-logs.sh 16:13:51 Archiving 'sudo' log.. 16:13:51 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins10143089062587481484.sh 16:13:51 ---> job-cost.sh 16:13:51 INFO: Activating Python virtual environment... 16:13:51 Setup pyenv: 16:13:51 system 16:13:51 3.8.20 16:13:51 3.9.20 16:13:51 3.10.15 16:13:51 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 16:13:51 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-8sZp from file:/tmp/.os_lf_venv 16:13:51 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:13:53 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 16:14:01 lf-activate-venv(): INFO: Adding /tmp/venv-8sZp/bin to PATH 16:14:01 INFO: No stack-cost file found 16:14:01 INFO: Instance uptime: 783s 16:14:01 INFO: Fetching instance metadata (attempt 1 of 3)... 16:14:01 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 16:14:01 INFO: Successfully fetched instance metadata 16:14:01 INFO: Instance type: v3-standard-4 16:14:01 INFO: Retrieving pricing info for: v3-standard-4 16:14:01 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 16:14:01 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=783 16:14:01 INFO: Successfully fetched Vexxhost pricing API 16:14:01 INFO: Retrieved cost: 0.11 16:14:01 INFO: Retrieved resource: v3-standard-4 16:14:01 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost 16:14:01 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost.csv 16:14:01 INFO: Successfully archived job cost data 16:14:01 DEBUG: Cost data: transportpce-tox-verify-transportpce-master,6079,2026-09-14 16:14:01,v3-standard-4,783,0.11,0.00,FAILURE 16:14:02 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins13517217545928390916.sh 16:14:02 ---> logs-deploy.sh 16:14:02 Setup pyenv: 16:14:02 system 16:14:02 3.8.20 16:14:02 3.9.20 16:14:02 3.10.15 16:14:02 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 16:14:02 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-8sZp from file:/tmp/.os_lf_venv 16:14:02 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:14:04 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 16:14:13 lf-activate-venv(): INFO: Adding /tmp/venv-8sZp/bin to PATH 16:14:13 WARNING: Nexus logging server not set 16:14:13 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-transportpce-master/6079/ 16:14:13 INFO: archiving logs to S3 16:14:14 ---> uname -a: 16:14:14 Linux prd-ubuntu2204-docker-4c-16g-8215 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 16:14:14 16:14:14 16:14:14 ---> lscpu: 16:14:14 Architecture: x86_64 16:14:14 CPU op-mode(s): 32-bit, 64-bit 16:14:14 Address sizes: 40 bits physical, 48 bits virtual 16:14:14 Byte Order: Little Endian 16:14:14 CPU(s): 4 16:14:14 On-line CPU(s) list: 0-3 16:14:14 Vendor ID: AuthenticAMD 16:14:14 Model name: AMD EPYC-Rome Processor 16:14:14 CPU family: 23 16:14:14 Model: 49 16:14:14 Thread(s) per core: 1 16:14:14 Core(s) per socket: 1 16:14:14 Socket(s): 4 16:14:14 Stepping: 0 16:14:14 BogoMIPS: 5599.99 16:14:14 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 16:14:14 Virtualization: AMD-V 16:14:14 Hypervisor vendor: KVM 16:14:14 Virtualization type: full 16:14:14 L1d cache: 128 KiB (4 instances) 16:14:14 L1i cache: 128 KiB (4 instances) 16:14:14 L2 cache: 2 MiB (4 instances) 16:14:14 L3 cache: 64 MiB (4 instances) 16:14:14 NUMA node(s): 1 16:14:14 NUMA node0 CPU(s): 0-3 16:14:14 Vulnerability Gather data sampling: Not affected 16:14:14 Vulnerability Indirect target selection: Not affected 16:14:14 Vulnerability Itlb multihit: Not affected 16:14:14 Vulnerability L1tf: Not affected 16:14:14 Vulnerability Mds: Not affected 16:14:14 Vulnerability Meltdown: Not affected 16:14:14 Vulnerability Mmio stale data: Not affected 16:14:14 Vulnerability Reg file data sampling: Not affected 16:14:14 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 16:14:14 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 16:14:14 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 16:14:14 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 16:14:14 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 16:14:14 Vulnerability Srbds: Not affected 16:14:14 Vulnerability Tsa: Not affected 16:14:14 Vulnerability Tsx async abort: Not affected 16:14:14 Vulnerability Vmscape: Not affected 16:14:14 16:14:14 16:14:14 ---> nproc: 16:14:14 4 16:14:14 16:14:14 16:14:14 ---> df -h: 16:14:14 Filesystem Size Used Avail Use% Mounted on 16:14:14 tmpfs 1.6G 1.1M 1.6G 1% /run 16:14:14 /dev/vda1 78G 12G 66G 15% / 16:14:14 tmpfs 7.9G 0 7.9G 0% /dev/shm 16:14:14 tmpfs 5.0M 0 5.0M 0% /run/lock 16:14:14 /dev/vda15 105M 6.1M 99M 6% /boot/efi 16:14:14 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 16:14:14 16:14:14 16:14:14 ---> free -m: 16:14:14 total used free shared buff/cache available 16:14:14 Mem: 15989 717 9130 4 6141 14928 16:14:14 Swap: 1023 0 1023 16:14:14 16:14:14 16:14:14 ---> ip addr: 16:14:14 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 16:14:14 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 16:14:14 inet 127.0.0.1/8 scope host lo 16:14:14 valid_lft forever preferred_lft forever 16:14:14 inet6 ::1/128 scope host 16:14:14 valid_lft forever preferred_lft forever 16:14:14 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 16:14:14 link/ether fa:16:3e:5a:56:c1 brd ff:ff:ff:ff:ff:ff 16:14:14 altname enp0s3 16:14:14 inet 10.30.171.96/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 16:14:14 valid_lft 85612sec preferred_lft 85612sec 16:14:14 inet6 fe80::f816:3eff:fe5a:56c1/64 scope link 16:14:14 valid_lft forever preferred_lft forever 16:14:14 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 16:14:14 link/ether 76:d3:d7:b4:af:7b brd ff:ff:ff:ff:ff:ff 16:14:14 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 16:14:14 valid_lft forever preferred_lft forever 16:14:14 inet6 fe80::74d3:d7ff:feb4:af7b/64 scope link 16:14:14 valid_lft forever preferred_lft forever 16:14:14 16:14:14 16:14:14 ---> sar -b -r -n DEV: 16:14:14 Linux 5.15.0-190-generic (prd-ubuntu2204-docker-4c-16g-8215) 09/14/26 _x86_64_ (4 CPU) 16:14:14 16:14:14 16:01:09 LINUX RESTART (4 CPU) 16:14:14 16:14:14 16:14:14 ---> sar -P ALL: 16:14:14 Linux 5.15.0-190-generic (prd-ubuntu2204-docker-4c-16g-8215) 09/14/26 _x86_64_ (4 CPU) 16:14:14 16:14:14 16:01:09 LINUX RESTART (4 CPU) 16:14:14 16:14:14 16:14:14