01:46:46 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/126287 01:46:46 Running as SYSTEM 01:46:46 [EnvInject] - Loading node environment variables. 01:46:46 Building remotely on prd-ubuntu2204-docker-4c-16g-62847 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-transportpce-master 01:46:47 [ssh-agent] Looking for ssh-agent implementation... 01:46:47 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 01:46:47 $ ssh-agent 01:46:47 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXvG4aLe/agent.1571 01:46:47 SSH_AGENT_PID=1573 01:46:47 [ssh-agent] Started. 01:46:47 Running ssh-add (command line suppressed) 01:46:47 Identity added: /w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_6245029344662342193.key (/w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_6245029344662342193.key) 01:46:47 [ssh-agent] Using credentials jenkins (jenkins-ssh) 01:46:47 The recommended git tool is: NONE 01:46:49 using credential jenkins-ssh 01:46:49 Wiping out workspace first. 01:46:49 Cloning the remote Git repository 01:46:49 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 01:46:49 > git init /w/workspace/transportpce-tox-verify-transportpce-master # timeout=10 01:46:49 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 01:46:49 > git --version # timeout=10 01:46:49 > git --version # 'git version 2.34.1' 01:46:49 using GIT_SSH to set credentials jenkins-ssh 01:46:49 Verifying host key using known hosts file, will automatically accept unseen keys 01:46:49 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 01:46:53 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 01:46:53 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 01:46:54 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 01:46:54 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 01:46:54 using GIT_SSH to set credentials jenkins-ssh 01:46:54 Verifying host key using known hosts file, will automatically accept unseen keys 01:46:54 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/87/126287/3 # timeout=10 01:46:54 > git rev-parse b7dac518ce5b7725259786e97bfdda0d37bee2d0^{commit} # timeout=10 01:46:54 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script 01:46:54 Checking out Revision b7dac518ce5b7725259786e97bfdda0d37bee2d0 (refs/changes/87/126287/3) 01:46:54 > git config core.sparsecheckout # timeout=10 01:46:54 > git checkout -f b7dac518ce5b7725259786e97bfdda0d37bee2d0 # timeout=10 01:46:57 Commit message: "ci: add scheduled stable merge, fix legacy refs" 01:46:57 > git rev-parse FETCH_HEAD^{commit} # timeout=10 01:46:57 > git rev-list --no-walk 778c4831b98f585a845bf3baa723efd596bd713c # timeout=10 01:46:57 > git remote # timeout=10 01:46:57 > git submodule init # timeout=10 01:46:57 > git submodule sync # timeout=10 01:46:57 > git config --get remote.origin.url # timeout=10 01:46:57 > git submodule init # timeout=10 01:46:57 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 01:46:57 ERROR: No submodules found. 01:46:58 provisioning config files... 01:46:58 copy managed file [npmrc] to file:/home/jenkins/.npmrc 01:46:58 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 01:46:58 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins5578476652732480417.sh 01:46:58 ---> python-tools-install.sh 01:46:58 Setup pyenv: 01:46:58 * system (set by /opt/pyenv/version) 01:46:58 * 3.8.20 (set by /opt/pyenv/version) 01:46:58 * 3.9.20 (set by /opt/pyenv/version) 01:46:58 3.10.15 01:46:58 3.11.10 01:47:02 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-SgJa 01:47:02 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 01:47:02 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 01:47:07 lf-activate-venv(): INFO: Installing additional packages: lftools 01:47:31 lf-activate-venv(): INFO: Adding /tmp/venv-SgJa/bin to PATH 01:47:31 Generating Requirements File 01:47:59 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. 01:47:59 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 01:48:00 Python 3.11.10 01:48:00 pip 26.2.1 from /tmp/venv-SgJa/lib/python3.11/site-packages/pip (python 3.11) 01:48:00 aiohappyeyeballs==2.7.1 01:48:00 aiohttp==3.14.4 01:48:00 aiosignal==1.4.0 01:48:00 appdirs==1.4.4 01:48:00 argcomplete==3.7.2 01:48:00 aspy.yaml==1.3.0 01:48:00 attrs==26.1.0 01:48:00 autopage==0.6.0 01:48:00 beautifulsoup4==4.15.0 01:48:00 boto3==1.43.109 01:48:00 botocore==1.43.109 01:48:00 bs4==0.0.2 01:48:00 certifi==2026.7.22 01:48:00 cffi==2.1.1 01:48:00 cfgv==3.5.0 01:48:00 chardet==7.6.0 01:48:00 charset-normalizer==3.5.2 01:48:00 click==8.5.0 01:48:00 cliff==4.16.0 01:48:00 cmd2==4.2.4 01:48:00 cryptography==3.3.2 01:48:00 debtcollector==3.1.0 01:48:00 decorator==5.3.1 01:48:00 defusedxml==0.7.1 01:48:00 Deprecated==1.3.1 01:48:00 distlib==0.4.3 01:48:00 dnspython==2.8.0 01:48:00 docker==7.2.0 01:48:00 dogpile.cache==1.5.0 01:48:00 durationpy==0.11 01:48:00 email-validator==2.3.0 01:48:00 filelock==4.0.12 01:48:00 frozenlist==1.8.0 01:48:00 future==1.0.0 01:48:00 gitdb==4.0.12 01:48:00 GitPython==3.2.0 01:48:00 httplib2==0.30.2 01:48:00 identify==2.6.20 01:48:00 idna==3.20 01:48:00 importlib-resources==1.5.0 01:48:00 iso8601==2.1.0 01:48:00 Jinja2==3.1.6 01:48:00 jmespath==1.1.0 01:48:00 jsonpatch==1.33 01:48:00 jsonpointer==3.2.0 01:48:00 jsonschema==4.26.0 01:48:00 jsonschema-specifications==2025.9.1 01:48:00 keystoneauth1==5.18.0 01:48:00 kubernetes==36.0.3 01:48:00 lftools==0.37.23 01:48:00 lxml==6.1.3 01:48:00 markdown-it-py==4.2.0 01:48:00 MarkupSafe==3.0.4 01:48:00 mdurl==0.1.2 01:48:00 msgpack==1.2.3 01:48:00 multi_key_dict==2.0.3 01:48:00 multidict==6.9.1 01:48:00 munch==4.0.0 01:48:00 netaddr==1.3.0 01:48:00 niet==1.4.2 01:48:00 nodeenv==1.11.0 01:48:00 oauth2client==4.1.3 01:48:00 oauthlib==4.0.0 01:48:00 openstacksdk==4.21.0 01:48:00 os-service-types==1.9.0 01:48:00 osc-lib==4.7.0 01:48:00 oslo.config==10.7.0 01:48:00 oslo.context==6.5.0 01:48:00 oslo.i18n==6.9.0 01:48:00 oslo.log==8.3.2 01:48:00 oslo.serialization==5.11.0 01:48:00 oslo.utils==10.2.0 01:48:00 packaging==26.3 01:48:00 pbr==7.1.3 01:48:00 platformdirs==4.12.4 01:48:00 prettytable==3.18.0 01:48:00 prompt_toolkit==3.0.53 01:48:00 propcache==0.5.4 01:48:00 psutil==7.2.2 01:48:00 pyasn1==0.6.4 01:48:00 pyasn1_modules==0.4.2 01:48:00 pycparser==3.0 01:48:00 pygerrit2==2.0.15 01:48:00 PyGithub==2.10.0 01:48:00 Pygments==2.21.0 01:48:00 PyJWT==2.15.1 01:48:00 PyNaCl==1.6.2 01:48:00 pyparsing==2.4.7 01:48:00 pyperclip==1.11.0 01:48:00 pyrsistent==0.20.0 01:48:00 python-dateutil==2.9.0.post0 01:48:00 python-discovery==1.6.1 01:48:00 python-heatclient==5.3.0 01:48:00 python-jenkins==1.8.3 01:48:00 python-keystoneclient==6.0.0 01:48:00 python-magnumclient==5.0.0 01:48:00 python-manilaclient==6.3.0 01:48:00 python-openstackclient==10.3.0 01:48:00 python-swiftclient==4.11.0 01:48:00 PyYAML==6.0.3 01:48:00 referencing==0.37.0 01:48:00 requests==2.34.2 01:48:00 requests-oauthlib==2.0.0 01:48:00 rfc3986==2.0.0 01:48:00 rich==15.0.0 01:48:00 rich-argparse==1.8.0 01:48:00 rpds-py==2026.9.1 01:48:00 rsa==4.9.1 01:48:00 ruamel.yaml==0.19.1 01:48:00 ruamel.yaml.clib==0.2.15 01:48:00 s3transfer==0.19.2 01:48:00 simplejson==4.2.0 01:48:00 six==1.17.0 01:48:00 smmap==5.0.3 01:48:00 soupsieve==2.10 01:48:00 stevedore==5.9.1 01:48:00 tabulate==0.10.0 01:48:00 toml==0.10.2 01:48:00 tomlkit==0.15.1 01:48:00 tqdm==4.70.1 01:48:00 typing_extensions==4.16.0 01:48:00 urllib3==1.26.20 01:48:00 virtualenv==21.14.5 01:48:00 wcwidth==0.9.2 01:48:00 websocket-client==1.9.2 01:48:00 wrapt==2.5.0 01:48:00 xdg==6.0.0 01:48:00 xmltodict==1.0.4 01:48:00 yarl==1.25.1 01:48:00 yq==4.4.0 01:48:00 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins17302831584284704124.sh 01:48:00 ---> uv-install.sh 01:48:00 Installing uv/uvx (latest) using shell installer 01:48:00 2026-10-08 01:48:00 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71308/71308] -> "/tmp/uv-install-U0p7NG.sh" [1] 01:48:00 downloading uv 0.12.23 x86_64-unknown-linux-gnu 01:48:01 installing to /home/jenkins/.local/bin 01:48:01 uv 01:48:01 uvx 01:48:01 everything's installed! 01:48:01 01:48:01 To add $HOME/.local/bin to your PATH, either restart your shell or run: 01:48:01 01:48:01 source $HOME/.local/bin/env (sh, bash, zsh) 01:48:01 source $HOME/.local/bin/env.fish (fish) 01:48:01 Adding install location to PATH 01:48:01 ---> Validating uv/uvx install 01:48:01 uvx 0.12.23 (x86_64-unknown-linux-gnu) 01:48:01 [EnvInject] - Injecting environment variables from a build step. 01:48:01 [EnvInject] - Injecting as environment variables the properties content 01:48:01 PYTHON=python3 01:48:01 01:48:01 [EnvInject] - Variables injected successfully. 01:48:01 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins2810040605171341962.sh 01:48:01 ---> tox-install.sh 01:48:01 + source /home/jenkins/lf-env.sh 01:48:01 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 01:48:01 ++ mktemp -d /tmp/venv-XXXX 01:48:01 + lf_venv=/tmp/venv-Jn9q 01:48:01 + local venv_file=/tmp/.os_lf_venv 01:48:01 + local python=python3 01:48:01 + local options 01:48:01 + local set_path=true 01:48:01 + local install_args= 01:48:01 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 01:48:01 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 01:48:01 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 01:48:01 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 01:48:01 + true 01:48:01 + case $1 in 01:48:01 + venv_file=/tmp/.toxenv 01:48:01 + shift 2 01:48:01 + true 01:48:01 + case $1 in 01:48:01 + shift 01:48:01 + break 01:48:01 + case $python in 01:48:01 + local pkg_list= 01:48:01 + [[ -d /opt/pyenv ]] 01:48:01 + echo 'Setup pyenv:' 01:48:01 Setup pyenv: 01:48:01 + export PYENV_ROOT=/opt/pyenv 01:48:01 + PYENV_ROOT=/opt/pyenv 01:48:01 + 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 01:48:01 + 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 01:48:01 + pyenv versions 01:48:01 system 01:48:01 3.8.20 01:48:01 3.9.20 01:48:01 3.10.15 01:48:01 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 01:48:01 + command -v pyenv 01:48:01 ++ pyenv init - --no-rehash 01:48:01 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 01:48:01 for i in ${!paths[@]}; do 01:48:01 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 01:48:01 fi; done; 01:48:01 echo "${paths[*]}"'\'')" 01:48:01 export PATH="/opt/pyenv/shims:${PATH}" 01:48:01 export PYENV_SHELL=bash 01:48:01 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 01:48:01 pyenv() { 01:48:01 local command 01:48:01 command="${1:-}" 01:48:01 if [ "$#" -gt 0 ]; then 01:48:01 shift 01:48:01 fi 01:48:01 01:48:01 case "$command" in 01:48:01 rehash|shell) 01:48:01 eval "$(pyenv "sh-$command" "$@")" 01:48:01 ;; 01:48:01 *) 01:48:01 command pyenv "$command" "$@" 01:48:01 ;; 01:48:01 esac 01:48:01 }' 01:48:01 +++ bash --norc -ec 'IFS=:; paths=($PATH); 01:48:01 for i in ${!paths[@]}; do 01:48:01 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 01:48:01 fi; done; 01:48:01 echo "${paths[*]}"' 01:48:01 ++ 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 01:48:01 ++ 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 01:48:01 ++ 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 01:48:01 ++ export PYENV_SHELL=bash 01:48:01 ++ PYENV_SHELL=bash 01:48:01 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 01:48:01 +++ complete -F _pyenv pyenv 01:48:01 ++ lf-pyver python3 01:48:01 ++ local py_version_xy=python3 01:48:01 ++ local py_version_xyz= 01:48:01 ++ pyenv versions 01:48:01 ++ local command 01:48:01 ++ command=versions 01:48:01 ++ '[' 1 -gt 0 ']' 01:48:01 ++ shift 01:48:01 ++ case "$command" in 01:48:01 ++ command pyenv versions 01:48:01 ++ sed 's/^[ *]* //' 01:48:01 ++ awk '{ print $1 }' 01:48:01 ++ grep -E '^[0-9.]*[0-9]$' 01:48:02 ++ [[ ! -s /tmp/.pyenv_versions ]] 01:48:02 +++ grep '^3' /tmp/.pyenv_versions 01:48:02 +++ tail -n 1 01:48:02 +++ sort -V 01:48:02 ++ py_version_xyz=3.11.10 01:48:02 ++ [[ -z 3.11.10 ]] 01:48:02 ++ echo 3.11.10 01:48:02 ++ return 0 01:48:02 + pyenv local 3.11.10 01:48:02 + local command 01:48:02 + command=local 01:48:02 + '[' 2 -gt 0 ']' 01:48:02 + shift 01:48:02 + case "$command" in 01:48:02 + command pyenv local 3.11.10 01:48:02 + for arg in "$@" 01:48:02 + case $arg in 01:48:02 + pkg_list+='tox ' 01:48:02 + for arg in "$@" 01:48:02 + case $arg in 01:48:02 + pkg_list+='virtualenv ' 01:48:02 + for arg in "$@" 01:48:02 + case $arg in 01:48:02 + pkg_list+='urllib3~=1.26.15 ' 01:48:02 + [[ -f /tmp/.toxenv ]] 01:48:02 + [[ ! -f /tmp/.toxenv ]] 01:48:02 + [[ -n '' ]] 01:48:02 + python3 -m venv /tmp/venv-Jn9q 01:48:06 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-Jn9q' 01:48:06 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-Jn9q 01:48:06 + echo /tmp/venv-Jn9q 01:48:06 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 01:48:06 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 01:48:06 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 01:48:06 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 01:48:06 + local 'pip_opts=--upgrade --quiet' 01:48:06 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 01:48:06 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 01:48:06 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 01:48:06 + [[ -n '' ]] 01:48:06 + [[ -n '' ]] 01:48:06 + lf-venv-pip-install /tmp/venv-Jn9q/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 01:48:06 + local venv_python=/tmp/venv-Jn9q/bin/python3 01:48:06 + shift 01:48:06 + local upstream=https://pypi.org/simple 01:48:06 + /tmp/venv-Jn9q/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 01:48:10 + return 0 01:48:10 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 01:48:10 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 01:48:10 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 01:48:10 + lf-venv-pip-install /tmp/venv-Jn9q/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 01:48:10 + local venv_python=/tmp/venv-Jn9q/bin/python3 01:48:10 + shift 01:48:10 + local upstream=https://pypi.org/simple 01:48:10 + /tmp/venv-Jn9q/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 01:48:12 + return 0 01:48:12 + type python3 01:48:12 + true 01:48:12 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-Jn9q/bin to PATH' 01:48:12 lf-activate-venv(): INFO: Adding /tmp/venv-Jn9q/bin to PATH 01:48:12 + PATH=/tmp/venv-Jn9q/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 01:48:12 + return 0 01:48:12 + python3 --version 01:48:12 Python 3.11.10 01:48:12 + python3 -m pip --version 01:48:12 pip 26.2.1 from /tmp/venv-Jn9q/lib/python3.11/site-packages/pip (python 3.11) 01:48:12 + python3 -m pip freeze 01:48:12 cachetools==7.2.1 01:48:12 colorama==0.4.6 01:48:12 distlib==0.4.3 01:48:12 filelock==4.0.12 01:48:12 packaging==26.3 01:48:12 platformdirs==4.12.4 01:48:12 pluggy==1.6.0 01:48:12 pyproject-api==1.11.4 01:48:12 python-discovery==1.6.1 01:48:12 tomli_w==1.2.0 01:48:12 tox==4.64.9 01:48:12 typing_extensions==4.16.0 01:48:12 urllib3==1.26.20 01:48:12 virtualenv==21.14.5 01:48:12 [transportpce-tox-verify-transportpce-master] $ /bin/sh -xe /tmp/jenkins4213071036646035206.sh 01:48:12 [EnvInject] - Injecting environment variables from a build step. 01:48:12 [EnvInject] - Injecting as environment variables the properties content 01:48:12 PARALLEL=True 01:48:12 01:48:12 [EnvInject] - Variables injected successfully. 01:48:12 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins13008801910767346360.sh 01:48:12 ---> tox-run.sh 01:48:12 + 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 01:48:12 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 01:48:12 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 01:48:12 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 01:48:12 + cd /w/workspace/transportpce-tox-verify-transportpce-master/. 01:48:12 + source /home/jenkins/lf-env.sh 01:48:12 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 01:48:12 ++ mktemp -d /tmp/venv-XXXX 01:48:12 + lf_venv=/tmp/venv-wOzq 01:48:12 + local venv_file=/tmp/.os_lf_venv 01:48:12 + local python=python3 01:48:12 + local options 01:48:12 + local set_path=true 01:48:12 + local install_args= 01:48:12 ++ 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 01:48:12 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 01:48:12 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 01:48:12 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 01:48:12 + true 01:48:12 + case $1 in 01:48:12 + venv_file=/tmp/.toxenv 01:48:12 + shift 2 01:48:12 + true 01:48:12 + case $1 in 01:48:12 + shift 01:48:12 + break 01:48:12 + case $python in 01:48:12 + local pkg_list= 01:48:12 + [[ -d /opt/pyenv ]] 01:48:12 + echo 'Setup pyenv:' 01:48:12 Setup pyenv: 01:48:12 + export PYENV_ROOT=/opt/pyenv 01:48:12 + PYENV_ROOT=/opt/pyenv 01:48:12 + 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 01:48:12 + 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 01:48:12 + pyenv versions 01:48:13 system 01:48:13 3.8.20 01:48:13 3.9.20 01:48:13 3.10.15 01:48:13 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 01:48:13 + command -v pyenv 01:48:13 ++ pyenv init - --no-rehash 01:48:13 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 01:48:13 for i in ${!paths[@]}; do 01:48:13 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 01:48:13 fi; done; 01:48:13 echo "${paths[*]}"'\'')" 01:48:13 export PATH="/opt/pyenv/shims:${PATH}" 01:48:13 export PYENV_SHELL=bash 01:48:13 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 01:48:13 pyenv() { 01:48:13 local command 01:48:13 command="${1:-}" 01:48:13 if [ "$#" -gt 0 ]; then 01:48:13 shift 01:48:13 fi 01:48:13 01:48:13 case "$command" in 01:48:13 rehash|shell) 01:48:13 eval "$(pyenv "sh-$command" "$@")" 01:48:13 ;; 01:48:13 *) 01:48:13 command pyenv "$command" "$@" 01:48:13 ;; 01:48:13 esac 01:48:13 }' 01:48:13 +++ bash --norc -ec 'IFS=:; paths=($PATH); 01:48:13 for i in ${!paths[@]}; do 01:48:13 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 01:48:13 fi; done; 01:48:13 echo "${paths[*]}"' 01:48:13 ++ 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 01:48:13 ++ 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 01:48:13 ++ 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 01:48:13 ++ export PYENV_SHELL=bash 01:48:13 ++ PYENV_SHELL=bash 01:48:13 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 01:48:13 +++ complete -F _pyenv pyenv 01:48:13 ++ lf-pyver python3 01:48:13 ++ local py_version_xy=python3 01:48:13 ++ local py_version_xyz= 01:48:13 ++ pyenv versions 01:48:13 ++ awk '{ print $1 }' 01:48:13 ++ local command 01:48:13 ++ command=versions 01:48:13 ++ grep -E '^[0-9.]*[0-9]$' 01:48:13 ++ '[' 1 -gt 0 ']' 01:48:13 ++ shift 01:48:13 ++ case "$command" in 01:48:13 ++ sed 's/^[ *]* //' 01:48:13 ++ command pyenv versions 01:48:13 ++ [[ ! -s /tmp/.pyenv_versions ]] 01:48:13 +++ grep '^3' /tmp/.pyenv_versions 01:48:13 +++ sort -V 01:48:13 +++ tail -n 1 01:48:13 ++ py_version_xyz=3.11.10 01:48:13 ++ [[ -z 3.11.10 ]] 01:48:13 ++ echo 3.11.10 01:48:13 ++ return 0 01:48:13 + pyenv local 3.11.10 01:48:13 + local command 01:48:13 + command=local 01:48:13 + '[' 2 -gt 0 ']' 01:48:13 + shift 01:48:13 + case "$command" in 01:48:13 + command pyenv local 3.11.10 01:48:13 + for arg in "$@" 01:48:13 + case $arg in 01:48:13 + pkg_list+='tox ' 01:48:13 + for arg in "$@" 01:48:13 + case $arg in 01:48:13 + pkg_list+='virtualenv ' 01:48:13 + for arg in "$@" 01:48:13 + case $arg in 01:48:13 + pkg_list+='urllib3~=1.26.15 ' 01:48:13 + [[ -f /tmp/.toxenv ]] 01:48:13 ++ cat /tmp/.toxenv 01:48:13 + lf_venv=/tmp/venv-Jn9q 01:48:13 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-Jn9q from' file:/tmp/.toxenv 01:48:13 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-Jn9q from file:/tmp/.toxenv 01:48:13 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 01:48:13 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 01:48:13 + local 'pip_opts=--upgrade --quiet' 01:48:13 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 01:48:13 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 01:48:13 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 01:48:13 + [[ -n '' ]] 01:48:13 + [[ -n '' ]] 01:48:13 + lf-venv-pip-install /tmp/venv-Jn9q/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 01:48:13 + local venv_python=/tmp/venv-Jn9q/bin/python3 01:48:13 + shift 01:48:13 + local upstream=https://pypi.org/simple 01:48:13 + /tmp/venv-Jn9q/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 01:48:14 + return 0 01:48:14 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 01:48:14 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 01:48:14 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 01:48:14 + lf-venv-pip-install /tmp/venv-Jn9q/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 01:48:14 + local venv_python=/tmp/venv-Jn9q/bin/python3 01:48:14 + shift 01:48:14 + local upstream=https://pypi.org/simple 01:48:14 + /tmp/venv-Jn9q/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 01:48:15 + return 0 01:48:15 + type python3 01:48:15 + true 01:48:15 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-Jn9q/bin to PATH' 01:48:15 lf-activate-venv(): INFO: Adding /tmp/venv-Jn9q/bin to PATH 01:48:15 + PATH=/tmp/venv-Jn9q/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 01:48:15 + return 0 01:48:15 + [[ -d /opt/pyenv ]] 01:48:15 + echo '---> Setting up pyenv' 01:48:15 ---> Setting up pyenv 01:48:15 + export PYENV_ROOT=/opt/pyenv 01:48:15 + PYENV_ROOT=/opt/pyenv 01:48:15 + export PATH=/opt/pyenv/bin:/tmp/venv-Jn9q/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 01:48:15 + PATH=/opt/pyenv/bin:/tmp/venv-Jn9q/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 01:48:15 ++ pwd 01:48:15 + PYTHONPATH=/w/workspace/transportpce-tox-verify-transportpce-master 01:48:15 + export PYTHONPATH 01:48:15 + export TOX_TESTENV_PASSENV=PYTHONPATH 01:48:15 + TOX_TESTENV_PASSENV=PYTHONPATH 01:48:15 + tox --version 01:48:15 4.64.9 from /tmp/venv-Jn9q/lib/python3.11/site-packages/tox/__init__.py 01:48:15 + PARALLEL=True 01:48:15 + TOX_OPTIONS_LIST= 01:48:15 + [[ -n '' ]] 01:48:15 + case ${PARALLEL,,} in 01:48:15 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 01:48:15 + tox --parallel auto --parallel-live 01:48:15 + tee -a /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tox.log 01:48:17 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 01:48:17 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 01:48:17 docs: install_deps> python -I -m pip install -r docs/requirements.txt 01:48:17 checkbashisms: freeze> python -m pip freeze --all 01:48:17 checkbashisms: pip==26.2.1,setuptools==84.0.0 01:48:17 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 01:48:17 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)' 01:48:17 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 01:48:19 checkbashisms: OK ✔ in 3.03 seconds 01:48:19 pre-commit: install_deps> python -I -m pip install pre-commit 01:48:21 pre-commit: freeze> python -m pip freeze --all 01:48:21 pre-commit: cfgv==3.5.0,distlib==0.4.3,filelock==4.0.12,identify==2.6.20,nodeenv==1.11.0,packaging==26.3,pip==26.2.1,platformdirs==4.12.4,pre_commit==4.6.2,python-discovery==1.6.1,PyYAML==6.0.3,setuptools==84.0.0,virtualenv==21.14.5 01:48:21 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 01:48:21 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)' 01:48:21 /usr/bin/cpan 01:48:21 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure 01:48:22 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 01:48:22 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 01:48:22 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 01:48:23 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 01:48:23 [INFO] Initializing environment for https://github.com/hhatto/autopep8. 01:48:23 buildcontroller: freeze> python -m pip freeze --all 01:48:24 buildcontroller: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 01:48:24 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh 01:48:24 + update-java-alternatives -l 01:48:24 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 01:48:24 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 01:48:24 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 01:48:24 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 01:48:24 update-alternatives: error: no alternatives for jaotc 01:48:24 update-alternatives: error: no alternatives for rmic 01:48:24 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 01:48:24 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 01:48:24 + java -version 01:48:24 21.0 01:48:24 + JAVA_VER=21.0 01:48:24 + echo 21.0 01:48:24 + javac -version 01:48:24 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 01:48:24 21.0 01:48:24 + JAVAC_VER=21.0 01:48:24 + echo 21.0 01:48:24 + [ 21.0 -ge 21 ] 01:48:24 ./installMavenUbuntu.sh: 14: [: Illegal number: 21.0 01:48:24 + echo No java21 or newer available 01:48:24 + exit 1 01:48:24 No java21 or newer available 01:48:24 buildcontroller: exit 1 (0.60 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh pid=2781 01:48:24 buildcontroller: FAIL ✖ in 8.95 seconds 01:48:24 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 01:48:25 [INFO] Initializing environment for https://github.com/koalaman/shellcheck-precommit. 01:48:25 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier. 01:48:25 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@4.0.0-alpha.8. 01:48:26 [INFO] Initializing environment for https://github.com/adrienverge/yamllint. 01:48:26 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 01:48:26 [INFO] Once installed this environment will be reused. 01:48:26 [INFO] This may take a few minutes... 01:48:28 pylint: freeze> python -m pip freeze --all 01:48:29 pylint: astroid==4.3.3,dill==0.4.1,isort==9.0.2,mccabe==0.7.0,mypy_extensions==1.1.0,pip==26.2.1,platformdirs==4.12.4,pylint==4.1.2,setuptools==84.0.0,tomlkit==0.15.1 01:48:29 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}$' '{}' + 01:48:31 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 01:48:31 [INFO] Once installed this environment will be reused. 01:48:31 [INFO] This may take a few minutes... 01:48:31 docs: freeze> python -m pip freeze --all 01:48:31 docs: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.2,deepmerge==3.0.1,docutils==0.22.4,idna==3.20,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.52.1,lfdocs_conf==0.11.0,MarkupSafe==3.0.4,minijinja==2.24.0,mistune==3.3.4,packaging==26.3,picobox==4.0.0,pip==26.2.1,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==3.0.1,roman-numerals==4.1.0,rpds-py==2026.9.1,setuptools==84.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.5.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.1.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.9.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.8.0 01:48:31 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 01:48:31 docs-linkcheck: freeze> python -m pip freeze --all 01:48:31 docs-linkcheck: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.2,deepmerge==3.0.1,docutils==0.22.4,idna==3.20,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.52.1,lfdocs_conf==0.11.0,MarkupSafe==3.0.4,minijinja==2.24.0,mistune==3.3.4,packaging==26.3,picobox==4.0.0,pip==26.2.1,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==3.0.1,roman-numerals==4.1.0,rpds-py==2026.9.1,setuptools==84.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.5.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.1.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.9.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.8.0 01:48:31 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 01:48:34 docs: OK ✔ in 18.17 seconds 01:48:34 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 01:48:36 [INFO] Installing environment for https://github.com/hhatto/autopep8. 01:48:36 [INFO] Once installed this environment will be reused. 01:48:36 [INFO] This may take a few minutes... 01:48:37 docs-linkcheck: OK ✔ in 21.18 seconds 01:48:37 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 01:48:40 [INFO] Installing environment for https://github.com/perltidy/perltidy. 01:48:40 [INFO] Once installed this environment will be reused. 01:48:40 [INFO] This may take a few minutes... 01:48:41 build_karaf_tests221: freeze> python -m pip freeze --all 01:48:42 build_karaf_tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 01:48:42 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 01:48:42 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf221 01:48:42 ./build_karaf_for_tests.sh: 22: mvn: not found 01:48:42 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 01:48:42 build karaf in karaf221 with ./karaf221.env 01:48:42 build_karaf_tests221: exit 127 (0.01 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3340 01:48:42 build_karaf_tests221: FAIL ✖ in 8.19 seconds 01:48:42 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 01:48:43 build_karaf_tests71: freeze> python -m pip freeze --all 01:48:43 build_karaf_tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 01:48:43 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 01:48:43 build karaf in karaf71 with ./karaf71.env 01:48:43 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf71 01:48:43 ./build_karaf_for_tests.sh: 22: mvn: not found 01:48:43 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 01:48:43 build_karaf_tests71: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3362 01:48:43 build_karaf_tests71: FAIL ✖ in 6.65 seconds 01:48:43 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 01:48:44 ************* Module 2.2.1.test12_end2end 01:48:44 transportpce_tests/2.2.1/test12_end2end.py:435:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 01:48:44 ************* Module common.test_utils 01:48:44 transportpce_tests/common/test_utils.py:532:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 01:48:44 transportpce_tests/common/test_utils.py:555:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 01:48:44 transportpce_tests/common/test_utils.py:581:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 01:48:44 transportpce_tests/common/test_utils.py:617:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 01:48:44 transportpce_tests/common/test_utils.py:635:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 01:48:44 transportpce_tests/common/test_utils.py:666:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 01:48:44 transportpce_tests/common/test_utils.py:687:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 01:48:44 01:48:44 ----------------------------------- 01:48:44 Your code has been rated at 9.99/10 01:48:44 01:48:46 pylint: exit 1 (17.26 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> find transportpce_tests/ -name '*.py' -exec pylint --fail-under=10 --max-line-length=120 --disable=missing-docstring,import-error --disable=fixme --disable=duplicate-code '--module-rgx=([a-z0-9_]+$)|([0-9.]{1,30}$)' '--method-rgx=(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$' '--variable-rgx=[a-zA-Z_][a-zA-Z0-9_]{1,30}$' '{}' + pid=3223 01:48:46 pylint: FAIL ✖ in 21.53 seconds 01:48:46 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 01:48:48 build_karaf_tests200: freeze> python -m pip freeze --all 01:48:48 build_karaf_tests200: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 01:48:48 build_karaf_tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 01:48:48 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karafoc200 01:48:48 ./build_karaf_for_tests.sh: 22: mvn: not found 01:48:48 build karaf in karafoc200 with ./karafoc200.env 01:48:48 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 01:48:48 build_karaf_tests200: exit 127 (0.01 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3490 01:48:48 build_karaf_tests200: FAIL ✖ in 6.6 seconds 01:48:48 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 01:48:49 [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier. 01:48:49 [INFO] Once installed this environment will be reused. 01:48:49 [INFO] This may take a few minutes... 01:48:50 buildlighty: freeze> python -m pip freeze --all 01:48:50 buildlighty: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 01:48:50 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh 01:48:50 ./build.sh: 7: mvn: not found 01:48:50 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 01:48:50 buildlighty: exit 9 (0.01 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh pid=3530 01:48:52 [INFO] Installing environment for https://github.com/adrienverge/yamllint. 01:48:52 [INFO] Once installed this environment will be reused. 01:48:52 [INFO] This may take a few minutes... 01:48:53 buildlighty: FAIL ✖ in 6.88 seconds 01:48:53 sims: freeze> python -m pip freeze --all 01:48:53 sims: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 01:48:53 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh 01:48:53 Using lighynode version 22.1.0.7 01:48:53 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 01:48:57 trim trailing whitespace.................................................Passed 01:48:57 fix end of files.........................................................Passed 01:48:57 check for added large files..............................................Passed 01:48:57 check for merge conflicts................................................Passed 01:48:58 check for case conflicts.................................................Passed 01:48:58 check json...............................................................Passed 01:48:58 mixed line ending........................................................Passed 01:48:58 Tabs remover.............................................................Passed 01:48:58 autopep8.................................................................Passed 01:49:00 perltidy.................................................................Passed 01:49:01 ShellCheck v0.11.0.......................................................Passed 01:49:06 prettier.................................................................Passed 01:49:08 yamllint.................................................................Passed 01:49:08 sims: OK ✔ in 9.67 seconds 01:49:08 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual 01:49:08 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 01:49:08 [INFO] Once installed this environment will be reused. 01:49:08 [INFO] This may take a few minutes... 01:49:17 gitlint..................................................................Passed 01:49:38 pre-commit: OK ✔ in 58.91 seconds 01:49:38 testsPCE: freeze> python -m pip freeze --all 01:49:38 testsPCE: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,click==8.5.0,contourpy==1.3.3,cryptography==3.3.2,cycler==0.12.1,dict2xml==1.7.8,Flask==2.1.3,Flask-Injector==0.14.0,fonttools==4.66.1,gnpy4tpce==2.4.7,idna==3.20,iniconfig==2.3.1,injector==0.24.0,invoke==3.0.3,itsdangerous==2.2.0,Jinja2==3.1.6,kiwisolver==1.5.1,lxml==6.1.3,MarkupSafe==3.0.4,matplotlib==3.11.2,netconf-client==3.6.0,networkx==2.8.8,numpy==1.26.4,packaging==26.3,pandas==1.5.3,paramiko==5.0.0,pbr==5.11.1,pillow==12.3.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pyparsing==3.3.3,pytest==9.1.1,python-dateutil==2.9.0.post0,pytz==2026.5,requests==2.34.2,scipy==1.17.1,setuptools==50.3.2,six==1.17.0,urllib3==2.8.0,Werkzeug==2.0.3,xlrd==1.2.0 01:49:38 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce 01:49:38 pytest -q transportpce_tests/pce/test01_pce.py 01:51:39 EEEEEEEEEEEEEEEEEEEE [100%] 01:51:42 ==================================== ERRORS ==================================== 01:51:42 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 01:51:42 01:51:42 cls = 01:51:42 01:51:42 @classmethod 01:51:42 def setUpClass(cls): 01:51:42 # pylint: disable=bare-except 01:51:42 sample_files_parsed = False 01:51:42 time.sleep(20) 01:51:42 try: 01:51:42 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 01:51:42 "..", "..", "sample_configs", "honeynode-topo.json") 01:51:42 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 01:51:42 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 01:51:42 01:51:42 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 01:51:42 "..", "..", "sample_configs", "NW-simple-topology.json") 01:51:42 01:51:42 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 01:51:42 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 01:51:42 01:51:42 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 01:51:42 "..", "..", "sample_configs", "NW-for-test-5-4.json") 01:51:42 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 01:51:42 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 01:51:42 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 01:51:42 "..", "..", "sample_configs", "pce_portmapping_221.json") 01:51:42 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 01:51:42 cls.port_mapping_data = port_mapping.read() 01:51:42 sample_files_parsed = True 01:51:42 except PermissionError as err: 01:51:42 print("Permission Error when trying to read sample files\n", err) 01:51:42 sys.exit(2) 01:51:42 except FileNotFoundError as err: 01:51:42 print("File Not found Error when trying to read sample files\n", err) 01:51:42 sys.exit(2) 01:51:42 except: 01:51:42 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 01:51:42 sys.exit(2) 01:51:42 finally: 01:51:42 if sample_files_parsed: 01:51:42 print("sample files content loaded") 01:51:42 01:51:42 > cls.processes = test_utils.start_tpce() 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 01:51:42 transportpce_tests/pce/test01_pce.py:93: 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 01:51:42 def start_tpce(): 01:51:42 if 'NO_ODL_STARTUP' in os.environ: 01:51:42 print('No OpenDaylight instance to start!') 01:51:42 return [] 01:51:42 print('starting OpenDaylight...') 01:51:42 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 01:51:42 process = start_lighty() 01:51:42 else: 01:51:42 process = start_karaf() 01:51:42 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 01:51:42 print('OpenDaylight started !') 01:51:42 else: 01:51:42 print('OpenDaylight failed to start !') 01:51:42 shutdown_process(process) 01:51:42 for pid in process_list: 01:51:42 shutdown_process(pid) 01:51:42 > sys.exit(1) 01:51:42 E SystemExit: 1 01:51:42 01:51:42 transportpce_tests/common/test_utils.py:234: SystemExit 01:51:42 ---------------------------- Captured stdout setup ----------------------------- 01:51:42 sample files content loaded 01:51:42 starting OpenDaylight... 01:51:42 starting KARAF (karaf) TransportPCE build... 01:51:42 Pattern not found after 100 seconds! OpenDaylight failed to start ! 01:51:42 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 01:51:42 01:51:42 cls = 01:51:42 func = . at 0x7f46d8373380> 01:51:42 when = 'setup' 01:51:42 reraise = (, ) 01:51:42 01:51:42 @classmethod 01:51:42 def from_call( 01:51:42 cls, 01:51:42 func: Callable[[], TResult], 01:51:42 when: Literal["collect", "setup", "call", "teardown"], 01:51:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:51:42 ) -> CallInfo[TResult]: 01:51:42 """Call func, wrapping the result in a CallInfo. 01:51:42 01:51:42 :param func: 01:51:42 The function to call. Called without arguments. 01:51:42 :type func: Callable[[], _pytest.runner.TResult] 01:51:42 :param when: 01:51:42 The phase in which the function is called. 01:51:42 :param reraise: 01:51:42 Exception or exceptions that shall propagate if raised by the 01:51:42 function, instead of being wrapped in the CallInfo. 01:51:42 """ 01:51:42 excinfo = None 01:51:42 instant = timing.Instant() 01:51:42 try: 01:51:42 > result: TResult | None = func() 01:51:42 ^^^^^^ 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:51:42 lambda: runtest_hook(item=item, **kwds), 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:51:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:51:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:51:42 yield 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:51:42 return (yield) 01:51:42 ^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:51:42 item.session._setupstate.setup(item) 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:51:42 col.setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:51:42 super().setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:51:42 self._request._fillfixtures() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:51:42 item.funcargs[argname] = self.getfixturevalue(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:51:42 fixturedef = self._get_active_fixturedef(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:51:42 fixturedef.execute(request=subrequest) 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 01:51:42 self = 01:51:42 request = > 01:51:42 01:51:42 def execute(self, request: SubRequest) -> FixtureValue: 01:51:42 """Return the value of this fixture, executing it if not cached.""" 01:51:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:51:42 # This needs to be done before checking if we have a cached value, since 01:51:42 # if a dependent fixture has their cache invalidated, e.g. due to 01:51:42 # parametrization, they finalize themselves and fixtures depending on it 01:51:42 # (which will likely include this fixture) setting `self.cached_result = None`. 01:51:42 # See #4871 01:51:42 requested_fixtures_that_should_finalize_us = [] 01:51:42 for argname in self.argnames: 01:51:42 fixturedef = request._get_active_fixturedef(argname) 01:51:42 # Saves requested fixtures in a list so we later can add our finalizer 01:51:42 # to them, ensuring that if a requested fixture gets torn down we get torn 01:51:42 # down first. This is generally handled by SetupState, but still currently 01:51:42 # needed when this fixture is not parametrized but depends on a parametrized 01:51:42 # fixture. 01:51:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:51:42 01:51:42 # Check for (and return) cached value/exception. 01:51:42 if self.cached_result is not None: 01:51:42 request_cache_key = self.cache_key(request) 01:51:42 cache_key = self.cached_result[1] 01:51:42 try: 01:51:42 # Attempt to make a normal == check: this might fail for objects 01:51:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:51:42 cache_hit = bool(request_cache_key == cache_key) 01:51:42 except (ValueError, RuntimeError): 01:51:42 # If the comparison raises, use 'is' as fallback. 01:51:42 cache_hit = request_cache_key is cache_key 01:51:42 01:51:42 if cache_hit: 01:51:42 if self.cached_result[2] is not None: 01:51:42 exc, exc_tb = self.cached_result[2] 01:51:42 raise exc.with_traceback(exc_tb) 01:51:42 else: 01:51:42 return self.cached_result[0] 01:51:42 # We have a previous but differently parametrized fixture instance 01:51:42 # so we need to tear it down before creating a new one. 01:51:42 self.finish(request) 01:51:42 assert self.cached_result is None 01:51:42 01:51:42 # Add finalizer to requested fixtures we saved previously. 01:51:42 # We make sure to do this after checking for cached value to avoid 01:51:42 # adding our finalizer multiple times. (#12135) 01:51:42 finalizer = functools.partial(self.finish, request=request) 01:51:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:51:42 parent_fixture.addfinalizer(finalizer) 01:51:42 01:51:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:51:42 # which is executed last. 01:51:42 > assert not self._finalizers 01:51:42 ^^^^^^^^^^^^^^^^^^^^ 01:51:42 E AssertionError 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:51:42 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 01:51:42 01:51:42 cls = 01:51:42 func = . at 0x7f46d8387c40> 01:51:42 when = 'setup' 01:51:42 reraise = (, ) 01:51:42 01:51:42 @classmethod 01:51:42 def from_call( 01:51:42 cls, 01:51:42 func: Callable[[], TResult], 01:51:42 when: Literal["collect", "setup", "call", "teardown"], 01:51:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:51:42 ) -> CallInfo[TResult]: 01:51:42 """Call func, wrapping the result in a CallInfo. 01:51:42 01:51:42 :param func: 01:51:42 The function to call. Called without arguments. 01:51:42 :type func: Callable[[], _pytest.runner.TResult] 01:51:42 :param when: 01:51:42 The phase in which the function is called. 01:51:42 :param reraise: 01:51:42 Exception or exceptions that shall propagate if raised by the 01:51:42 function, instead of being wrapped in the CallInfo. 01:51:42 """ 01:51:42 excinfo = None 01:51:42 instant = timing.Instant() 01:51:42 try: 01:51:42 > result: TResult | None = func() 01:51:42 ^^^^^^ 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:51:42 lambda: runtest_hook(item=item, **kwds), 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:51:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:51:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:51:42 yield 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:51:42 return (yield) 01:51:42 ^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:51:42 item.session._setupstate.setup(item) 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:51:42 col.setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:51:42 super().setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:51:42 self._request._fillfixtures() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:51:42 item.funcargs[argname] = self.getfixturevalue(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:51:42 fixturedef = self._get_active_fixturedef(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:51:42 fixturedef.execute(request=subrequest) 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 01:51:42 self = 01:51:42 request = > 01:51:42 01:51:42 def execute(self, request: SubRequest) -> FixtureValue: 01:51:42 """Return the value of this fixture, executing it if not cached.""" 01:51:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:51:42 # This needs to be done before checking if we have a cached value, since 01:51:42 # if a dependent fixture has their cache invalidated, e.g. due to 01:51:42 # parametrization, they finalize themselves and fixtures depending on it 01:51:42 # (which will likely include this fixture) setting `self.cached_result = None`. 01:51:42 # See #4871 01:51:42 requested_fixtures_that_should_finalize_us = [] 01:51:42 for argname in self.argnames: 01:51:42 fixturedef = request._get_active_fixturedef(argname) 01:51:42 # Saves requested fixtures in a list so we later can add our finalizer 01:51:42 # to them, ensuring that if a requested fixture gets torn down we get torn 01:51:42 # down first. This is generally handled by SetupState, but still currently 01:51:42 # needed when this fixture is not parametrized but depends on a parametrized 01:51:42 # fixture. 01:51:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:51:42 01:51:42 # Check for (and return) cached value/exception. 01:51:42 if self.cached_result is not None: 01:51:42 request_cache_key = self.cache_key(request) 01:51:42 cache_key = self.cached_result[1] 01:51:42 try: 01:51:42 # Attempt to make a normal == check: this might fail for objects 01:51:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:51:42 cache_hit = bool(request_cache_key == cache_key) 01:51:42 except (ValueError, RuntimeError): 01:51:42 # If the comparison raises, use 'is' as fallback. 01:51:42 cache_hit = request_cache_key is cache_key 01:51:42 01:51:42 if cache_hit: 01:51:42 if self.cached_result[2] is not None: 01:51:42 exc, exc_tb = self.cached_result[2] 01:51:42 raise exc.with_traceback(exc_tb) 01:51:42 else: 01:51:42 return self.cached_result[0] 01:51:42 # We have a previous but differently parametrized fixture instance 01:51:42 # so we need to tear it down before creating a new one. 01:51:42 self.finish(request) 01:51:42 assert self.cached_result is None 01:51:42 01:51:42 # Add finalizer to requested fixtures we saved previously. 01:51:42 # We make sure to do this after checking for cached value to avoid 01:51:42 # adding our finalizer multiple times. (#12135) 01:51:42 finalizer = functools.partial(self.finish, request=request) 01:51:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:51:42 parent_fixture.addfinalizer(finalizer) 01:51:42 01:51:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:51:42 # which is executed last. 01:51:42 > assert not self._finalizers 01:51:42 ^^^^^^^^^^^^^^^^^^^^ 01:51:42 E AssertionError 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:51:42 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 01:51:42 01:51:42 cls = 01:51:42 func = . at 0x7f46d8387420> 01:51:42 when = 'setup' 01:51:42 reraise = (, ) 01:51:42 01:51:42 @classmethod 01:51:42 def from_call( 01:51:42 cls, 01:51:42 func: Callable[[], TResult], 01:51:42 when: Literal["collect", "setup", "call", "teardown"], 01:51:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:51:42 ) -> CallInfo[TResult]: 01:51:42 """Call func, wrapping the result in a CallInfo. 01:51:42 01:51:42 :param func: 01:51:42 The function to call. Called without arguments. 01:51:42 :type func: Callable[[], _pytest.runner.TResult] 01:51:42 :param when: 01:51:42 The phase in which the function is called. 01:51:42 :param reraise: 01:51:42 Exception or exceptions that shall propagate if raised by the 01:51:42 function, instead of being wrapped in the CallInfo. 01:51:42 """ 01:51:42 excinfo = None 01:51:42 instant = timing.Instant() 01:51:42 try: 01:51:42 > result: TResult | None = func() 01:51:42 ^^^^^^ 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:51:42 lambda: runtest_hook(item=item, **kwds), 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:51:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:51:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:51:42 yield 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:51:42 return (yield) 01:51:42 ^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:51:42 item.session._setupstate.setup(item) 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:51:42 col.setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:51:42 super().setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:51:42 self._request._fillfixtures() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:51:42 item.funcargs[argname] = self.getfixturevalue(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:51:42 fixturedef = self._get_active_fixturedef(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:51:42 fixturedef.execute(request=subrequest) 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 01:51:42 self = 01:51:42 request = > 01:51:42 01:51:42 def execute(self, request: SubRequest) -> FixtureValue: 01:51:42 """Return the value of this fixture, executing it if not cached.""" 01:51:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:51:42 # This needs to be done before checking if we have a cached value, since 01:51:42 # if a dependent fixture has their cache invalidated, e.g. due to 01:51:42 # parametrization, they finalize themselves and fixtures depending on it 01:51:42 # (which will likely include this fixture) setting `self.cached_result = None`. 01:51:42 # See #4871 01:51:42 requested_fixtures_that_should_finalize_us = [] 01:51:42 for argname in self.argnames: 01:51:42 fixturedef = request._get_active_fixturedef(argname) 01:51:42 # Saves requested fixtures in a list so we later can add our finalizer 01:51:42 # to them, ensuring that if a requested fixture gets torn down we get torn 01:51:42 # down first. This is generally handled by SetupState, but still currently 01:51:42 # needed when this fixture is not parametrized but depends on a parametrized 01:51:42 # fixture. 01:51:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:51:42 01:51:42 # Check for (and return) cached value/exception. 01:51:42 if self.cached_result is not None: 01:51:42 request_cache_key = self.cache_key(request) 01:51:42 cache_key = self.cached_result[1] 01:51:42 try: 01:51:42 # Attempt to make a normal == check: this might fail for objects 01:51:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:51:42 cache_hit = bool(request_cache_key == cache_key) 01:51:42 except (ValueError, RuntimeError): 01:51:42 # If the comparison raises, use 'is' as fallback. 01:51:42 cache_hit = request_cache_key is cache_key 01:51:42 01:51:42 if cache_hit: 01:51:42 if self.cached_result[2] is not None: 01:51:42 exc, exc_tb = self.cached_result[2] 01:51:42 raise exc.with_traceback(exc_tb) 01:51:42 else: 01:51:42 return self.cached_result[0] 01:51:42 # We have a previous but differently parametrized fixture instance 01:51:42 # so we need to tear it down before creating a new one. 01:51:42 self.finish(request) 01:51:42 assert self.cached_result is None 01:51:42 01:51:42 # Add finalizer to requested fixtures we saved previously. 01:51:42 # We make sure to do this after checking for cached value to avoid 01:51:42 # adding our finalizer multiple times. (#12135) 01:51:42 finalizer = functools.partial(self.finish, request=request) 01:51:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:51:42 parent_fixture.addfinalizer(finalizer) 01:51:42 01:51:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:51:42 # which is executed last. 01:51:42 > assert not self._finalizers 01:51:42 ^^^^^^^^^^^^^^^^^^^^ 01:51:42 E AssertionError 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:51:42 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 01:51:42 01:51:42 cls = 01:51:42 func = . at 0x7f46d8373380> 01:51:42 when = 'setup' 01:51:42 reraise = (, ) 01:51:42 01:51:42 @classmethod 01:51:42 def from_call( 01:51:42 cls, 01:51:42 func: Callable[[], TResult], 01:51:42 when: Literal["collect", "setup", "call", "teardown"], 01:51:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:51:42 ) -> CallInfo[TResult]: 01:51:42 """Call func, wrapping the result in a CallInfo. 01:51:42 01:51:42 :param func: 01:51:42 The function to call. Called without arguments. 01:51:42 :type func: Callable[[], _pytest.runner.TResult] 01:51:42 :param when: 01:51:42 The phase in which the function is called. 01:51:42 :param reraise: 01:51:42 Exception or exceptions that shall propagate if raised by the 01:51:42 function, instead of being wrapped in the CallInfo. 01:51:42 """ 01:51:42 excinfo = None 01:51:42 instant = timing.Instant() 01:51:42 try: 01:51:42 > result: TResult | None = func() 01:51:42 ^^^^^^ 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:51:42 lambda: runtest_hook(item=item, **kwds), 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:51:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:51:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:51:42 yield 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:51:42 return (yield) 01:51:42 ^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:51:42 item.session._setupstate.setup(item) 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:51:42 col.setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:51:42 super().setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:51:42 self._request._fillfixtures() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:51:42 item.funcargs[argname] = self.getfixturevalue(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:51:42 fixturedef = self._get_active_fixturedef(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:51:42 fixturedef.execute(request=subrequest) 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 01:51:42 self = 01:51:42 request = > 01:51:42 01:51:42 def execute(self, request: SubRequest) -> FixtureValue: 01:51:42 """Return the value of this fixture, executing it if not cached.""" 01:51:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:51:42 # This needs to be done before checking if we have a cached value, since 01:51:42 # if a dependent fixture has their cache invalidated, e.g. due to 01:51:42 # parametrization, they finalize themselves and fixtures depending on it 01:51:42 # (which will likely include this fixture) setting `self.cached_result = None`. 01:51:42 # See #4871 01:51:42 requested_fixtures_that_should_finalize_us = [] 01:51:42 for argname in self.argnames: 01:51:42 fixturedef = request._get_active_fixturedef(argname) 01:51:42 # Saves requested fixtures in a list so we later can add our finalizer 01:51:42 # to them, ensuring that if a requested fixture gets torn down we get torn 01:51:42 # down first. This is generally handled by SetupState, but still currently 01:51:42 # needed when this fixture is not parametrized but depends on a parametrized 01:51:42 # fixture. 01:51:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:51:42 01:51:42 # Check for (and return) cached value/exception. 01:51:42 if self.cached_result is not None: 01:51:42 request_cache_key = self.cache_key(request) 01:51:42 cache_key = self.cached_result[1] 01:51:42 try: 01:51:42 # Attempt to make a normal == check: this might fail for objects 01:51:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:51:42 cache_hit = bool(request_cache_key == cache_key) 01:51:42 except (ValueError, RuntimeError): 01:51:42 # If the comparison raises, use 'is' as fallback. 01:51:42 cache_hit = request_cache_key is cache_key 01:51:42 01:51:42 if cache_hit: 01:51:42 if self.cached_result[2] is not None: 01:51:42 exc, exc_tb = self.cached_result[2] 01:51:42 raise exc.with_traceback(exc_tb) 01:51:42 else: 01:51:42 return self.cached_result[0] 01:51:42 # We have a previous but differently parametrized fixture instance 01:51:42 # so we need to tear it down before creating a new one. 01:51:42 self.finish(request) 01:51:42 assert self.cached_result is None 01:51:42 01:51:42 # Add finalizer to requested fixtures we saved previously. 01:51:42 # We make sure to do this after checking for cached value to avoid 01:51:42 # adding our finalizer multiple times. (#12135) 01:51:42 finalizer = functools.partial(self.finish, request=request) 01:51:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:51:42 parent_fixture.addfinalizer(finalizer) 01:51:42 01:51:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:51:42 # which is executed last. 01:51:42 > assert not self._finalizers 01:51:42 ^^^^^^^^^^^^^^^^^^^^ 01:51:42 E AssertionError 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:51:42 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 01:51:42 01:51:42 cls = 01:51:42 func = . at 0x7f46d83871a0> 01:51:42 when = 'setup' 01:51:42 reraise = (, ) 01:51:42 01:51:42 @classmethod 01:51:42 def from_call( 01:51:42 cls, 01:51:42 func: Callable[[], TResult], 01:51:42 when: Literal["collect", "setup", "call", "teardown"], 01:51:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:51:42 ) -> CallInfo[TResult]: 01:51:42 """Call func, wrapping the result in a CallInfo. 01:51:42 01:51:42 :param func: 01:51:42 The function to call. Called without arguments. 01:51:42 :type func: Callable[[], _pytest.runner.TResult] 01:51:42 :param when: 01:51:42 The phase in which the function is called. 01:51:42 :param reraise: 01:51:42 Exception or exceptions that shall propagate if raised by the 01:51:42 function, instead of being wrapped in the CallInfo. 01:51:42 """ 01:51:42 excinfo = None 01:51:42 instant = timing.Instant() 01:51:42 try: 01:51:42 > result: TResult | None = func() 01:51:42 ^^^^^^ 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:51:42 lambda: runtest_hook(item=item, **kwds), 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:51:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:51:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:51:42 yield 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:51:42 return (yield) 01:51:42 ^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:51:42 item.session._setupstate.setup(item) 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:51:42 col.setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:51:42 super().setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:51:42 self._request._fillfixtures() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:51:42 item.funcargs[argname] = self.getfixturevalue(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:51:42 fixturedef = self._get_active_fixturedef(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:51:42 fixturedef.execute(request=subrequest) 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 01:51:42 self = 01:51:42 request = > 01:51:42 01:51:42 def execute(self, request: SubRequest) -> FixtureValue: 01:51:42 """Return the value of this fixture, executing it if not cached.""" 01:51:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:51:42 # This needs to be done before checking if we have a cached value, since 01:51:42 # if a dependent fixture has their cache invalidated, e.g. due to 01:51:42 # parametrization, they finalize themselves and fixtures depending on it 01:51:42 # (which will likely include this fixture) setting `self.cached_result = None`. 01:51:42 # See #4871 01:51:42 requested_fixtures_that_should_finalize_us = [] 01:51:42 for argname in self.argnames: 01:51:42 fixturedef = request._get_active_fixturedef(argname) 01:51:42 # Saves requested fixtures in a list so we later can add our finalizer 01:51:42 # to them, ensuring that if a requested fixture gets torn down we get torn 01:51:42 # down first. This is generally handled by SetupState, but still currently 01:51:42 # needed when this fixture is not parametrized but depends on a parametrized 01:51:42 # fixture. 01:51:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:51:42 01:51:42 # Check for (and return) cached value/exception. 01:51:42 if self.cached_result is not None: 01:51:42 request_cache_key = self.cache_key(request) 01:51:42 cache_key = self.cached_result[1] 01:51:42 try: 01:51:42 # Attempt to make a normal == check: this might fail for objects 01:51:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:51:42 cache_hit = bool(request_cache_key == cache_key) 01:51:42 except (ValueError, RuntimeError): 01:51:42 # If the comparison raises, use 'is' as fallback. 01:51:42 cache_hit = request_cache_key is cache_key 01:51:42 01:51:42 if cache_hit: 01:51:42 if self.cached_result[2] is not None: 01:51:42 exc, exc_tb = self.cached_result[2] 01:51:42 raise exc.with_traceback(exc_tb) 01:51:42 else: 01:51:42 return self.cached_result[0] 01:51:42 # We have a previous but differently parametrized fixture instance 01:51:42 # so we need to tear it down before creating a new one. 01:51:42 self.finish(request) 01:51:42 assert self.cached_result is None 01:51:42 01:51:42 # Add finalizer to requested fixtures we saved previously. 01:51:42 # We make sure to do this after checking for cached value to avoid 01:51:42 # adding our finalizer multiple times. (#12135) 01:51:42 finalizer = functools.partial(self.finish, request=request) 01:51:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:51:42 parent_fixture.addfinalizer(finalizer) 01:51:42 01:51:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:51:42 # which is executed last. 01:51:42 > assert not self._finalizers 01:51:42 ^^^^^^^^^^^^^^^^^^^^ 01:51:42 E AssertionError 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:51:42 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 01:51:42 01:51:42 cls = 01:51:42 func = . at 0x7f46d83876a0> 01:51:42 when = 'setup' 01:51:42 reraise = (, ) 01:51:42 01:51:42 @classmethod 01:51:42 def from_call( 01:51:42 cls, 01:51:42 func: Callable[[], TResult], 01:51:42 when: Literal["collect", "setup", "call", "teardown"], 01:51:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:51:42 ) -> CallInfo[TResult]: 01:51:42 """Call func, wrapping the result in a CallInfo. 01:51:42 01:51:42 :param func: 01:51:42 The function to call. Called without arguments. 01:51:42 :type func: Callable[[], _pytest.runner.TResult] 01:51:42 :param when: 01:51:42 The phase in which the function is called. 01:51:42 :param reraise: 01:51:42 Exception or exceptions that shall propagate if raised by the 01:51:42 function, instead of being wrapped in the CallInfo. 01:51:42 """ 01:51:42 excinfo = None 01:51:42 instant = timing.Instant() 01:51:42 try: 01:51:42 > result: TResult | None = func() 01:51:42 ^^^^^^ 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:51:42 lambda: runtest_hook(item=item, **kwds), 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:51:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:51:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:51:42 yield 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:51:42 return (yield) 01:51:42 ^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:51:42 item.session._setupstate.setup(item) 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:51:42 col.setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:51:42 super().setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:51:42 self._request._fillfixtures() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:51:42 item.funcargs[argname] = self.getfixturevalue(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:51:42 fixturedef = self._get_active_fixturedef(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:51:42 fixturedef.execute(request=subrequest) 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 01:51:42 self = 01:51:42 request = > 01:51:42 01:51:42 def execute(self, request: SubRequest) -> FixtureValue: 01:51:42 """Return the value of this fixture, executing it if not cached.""" 01:51:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:51:42 # This needs to be done before checking if we have a cached value, since 01:51:42 # if a dependent fixture has their cache invalidated, e.g. due to 01:51:42 # parametrization, they finalize themselves and fixtures depending on it 01:51:42 # (which will likely include this fixture) setting `self.cached_result = None`. 01:51:42 # See #4871 01:51:42 requested_fixtures_that_should_finalize_us = [] 01:51:42 for argname in self.argnames: 01:51:42 fixturedef = request._get_active_fixturedef(argname) 01:51:42 # Saves requested fixtures in a list so we later can add our finalizer 01:51:42 # to them, ensuring that if a requested fixture gets torn down we get torn 01:51:42 # down first. This is generally handled by SetupState, but still currently 01:51:42 # needed when this fixture is not parametrized but depends on a parametrized 01:51:42 # fixture. 01:51:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:51:42 01:51:42 # Check for (and return) cached value/exception. 01:51:42 if self.cached_result is not None: 01:51:42 request_cache_key = self.cache_key(request) 01:51:42 cache_key = self.cached_result[1] 01:51:42 try: 01:51:42 # Attempt to make a normal == check: this might fail for objects 01:51:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:51:42 cache_hit = bool(request_cache_key == cache_key) 01:51:42 except (ValueError, RuntimeError): 01:51:42 # If the comparison raises, use 'is' as fallback. 01:51:42 cache_hit = request_cache_key is cache_key 01:51:42 01:51:42 if cache_hit: 01:51:42 if self.cached_result[2] is not None: 01:51:42 exc, exc_tb = self.cached_result[2] 01:51:42 raise exc.with_traceback(exc_tb) 01:51:42 else: 01:51:42 return self.cached_result[0] 01:51:42 # We have a previous but differently parametrized fixture instance 01:51:42 # so we need to tear it down before creating a new one. 01:51:42 self.finish(request) 01:51:42 assert self.cached_result is None 01:51:42 01:51:42 # Add finalizer to requested fixtures we saved previously. 01:51:42 # We make sure to do this after checking for cached value to avoid 01:51:42 # adding our finalizer multiple times. (#12135) 01:51:42 finalizer = functools.partial(self.finish, request=request) 01:51:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:51:42 parent_fixture.addfinalizer(finalizer) 01:51:42 01:51:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:51:42 # which is executed last. 01:51:42 > assert not self._finalizers 01:51:42 ^^^^^^^^^^^^^^^^^^^^ 01:51:42 E AssertionError 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:51:42 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 01:51:42 01:51:42 cls = 01:51:42 func = . at 0x7f46d7cc9da0> 01:51:42 when = 'setup' 01:51:42 reraise = (, ) 01:51:42 01:51:42 @classmethod 01:51:42 def from_call( 01:51:42 cls, 01:51:42 func: Callable[[], TResult], 01:51:42 when: Literal["collect", "setup", "call", "teardown"], 01:51:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:51:42 ) -> CallInfo[TResult]: 01:51:42 """Call func, wrapping the result in a CallInfo. 01:51:42 01:51:42 :param func: 01:51:42 The function to call. Called without arguments. 01:51:42 :type func: Callable[[], _pytest.runner.TResult] 01:51:42 :param when: 01:51:42 The phase in which the function is called. 01:51:42 :param reraise: 01:51:42 Exception or exceptions that shall propagate if raised by the 01:51:42 function, instead of being wrapped in the CallInfo. 01:51:42 """ 01:51:42 excinfo = None 01:51:42 instant = timing.Instant() 01:51:42 try: 01:51:42 > result: TResult | None = func() 01:51:42 ^^^^^^ 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:51:42 lambda: runtest_hook(item=item, **kwds), 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:51:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:51:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:51:42 yield 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:51:42 return (yield) 01:51:42 ^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:51:42 item.session._setupstate.setup(item) 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:51:42 col.setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:51:42 super().setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:51:42 self._request._fillfixtures() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:51:42 item.funcargs[argname] = self.getfixturevalue(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:51:42 fixturedef = self._get_active_fixturedef(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:51:42 fixturedef.execute(request=subrequest) 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 01:51:42 self = 01:51:42 request = > 01:51:42 01:51:42 def execute(self, request: SubRequest) -> FixtureValue: 01:51:42 """Return the value of this fixture, executing it if not cached.""" 01:51:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:51:42 # This needs to be done before checking if we have a cached value, since 01:51:42 # if a dependent fixture has their cache invalidated, e.g. due to 01:51:42 # parametrization, they finalize themselves and fixtures depending on it 01:51:42 # (which will likely include this fixture) setting `self.cached_result = None`. 01:51:42 # See #4871 01:51:42 requested_fixtures_that_should_finalize_us = [] 01:51:42 for argname in self.argnames: 01:51:42 fixturedef = request._get_active_fixturedef(argname) 01:51:42 # Saves requested fixtures in a list so we later can add our finalizer 01:51:42 # to them, ensuring that if a requested fixture gets torn down we get torn 01:51:42 # down first. This is generally handled by SetupState, but still currently 01:51:42 # needed when this fixture is not parametrized but depends on a parametrized 01:51:42 # fixture. 01:51:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:51:42 01:51:42 # Check for (and return) cached value/exception. 01:51:42 if self.cached_result is not None: 01:51:42 request_cache_key = self.cache_key(request) 01:51:42 cache_key = self.cached_result[1] 01:51:42 try: 01:51:42 # Attempt to make a normal == check: this might fail for objects 01:51:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:51:42 cache_hit = bool(request_cache_key == cache_key) 01:51:42 except (ValueError, RuntimeError): 01:51:42 # If the comparison raises, use 'is' as fallback. 01:51:42 cache_hit = request_cache_key is cache_key 01:51:42 01:51:42 if cache_hit: 01:51:42 if self.cached_result[2] is not None: 01:51:42 exc, exc_tb = self.cached_result[2] 01:51:42 raise exc.with_traceback(exc_tb) 01:51:42 else: 01:51:42 return self.cached_result[0] 01:51:42 # We have a previous but differently parametrized fixture instance 01:51:42 # so we need to tear it down before creating a new one. 01:51:42 self.finish(request) 01:51:42 assert self.cached_result is None 01:51:42 01:51:42 # Add finalizer to requested fixtures we saved previously. 01:51:42 # We make sure to do this after checking for cached value to avoid 01:51:42 # adding our finalizer multiple times. (#12135) 01:51:42 finalizer = functools.partial(self.finish, request=request) 01:51:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:51:42 parent_fixture.addfinalizer(finalizer) 01:51:42 01:51:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:51:42 # which is executed last. 01:51:42 > assert not self._finalizers 01:51:42 ^^^^^^^^^^^^^^^^^^^^ 01:51:42 E AssertionError 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:51:42 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 01:51:42 01:51:42 cls = 01:51:42 func = . at 0x7f46d8373ec0> 01:51:42 when = 'setup' 01:51:42 reraise = (, ) 01:51:42 01:51:42 @classmethod 01:51:42 def from_call( 01:51:42 cls, 01:51:42 func: Callable[[], TResult], 01:51:42 when: Literal["collect", "setup", "call", "teardown"], 01:51:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:51:42 ) -> CallInfo[TResult]: 01:51:42 """Call func, wrapping the result in a CallInfo. 01:51:42 01:51:42 :param func: 01:51:42 The function to call. Called without arguments. 01:51:42 :type func: Callable[[], _pytest.runner.TResult] 01:51:42 :param when: 01:51:42 The phase in which the function is called. 01:51:42 :param reraise: 01:51:42 Exception or exceptions that shall propagate if raised by the 01:51:42 function, instead of being wrapped in the CallInfo. 01:51:42 """ 01:51:42 excinfo = None 01:51:42 instant = timing.Instant() 01:51:42 try: 01:51:42 > result: TResult | None = func() 01:51:42 ^^^^^^ 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:51:42 lambda: runtest_hook(item=item, **kwds), 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:51:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:51:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:51:42 yield 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:51:42 return (yield) 01:51:42 ^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:51:42 item.session._setupstate.setup(item) 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:51:42 col.setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:51:42 super().setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:51:42 self._request._fillfixtures() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:51:42 item.funcargs[argname] = self.getfixturevalue(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:51:42 fixturedef = self._get_active_fixturedef(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:51:42 fixturedef.execute(request=subrequest) 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 01:51:42 self = 01:51:42 request = > 01:51:42 01:51:42 def execute(self, request: SubRequest) -> FixtureValue: 01:51:42 """Return the value of this fixture, executing it if not cached.""" 01:51:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:51:42 # This needs to be done before checking if we have a cached value, since 01:51:42 # if a dependent fixture has their cache invalidated, e.g. due to 01:51:42 # parametrization, they finalize themselves and fixtures depending on it 01:51:42 # (which will likely include this fixture) setting `self.cached_result = None`. 01:51:42 # See #4871 01:51:42 requested_fixtures_that_should_finalize_us = [] 01:51:42 for argname in self.argnames: 01:51:42 fixturedef = request._get_active_fixturedef(argname) 01:51:42 # Saves requested fixtures in a list so we later can add our finalizer 01:51:42 # to them, ensuring that if a requested fixture gets torn down we get torn 01:51:42 # down first. This is generally handled by SetupState, but still currently 01:51:42 # needed when this fixture is not parametrized but depends on a parametrized 01:51:42 # fixture. 01:51:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:51:42 01:51:42 # Check for (and return) cached value/exception. 01:51:42 if self.cached_result is not None: 01:51:42 request_cache_key = self.cache_key(request) 01:51:42 cache_key = self.cached_result[1] 01:51:42 try: 01:51:42 # Attempt to make a normal == check: this might fail for objects 01:51:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:51:42 cache_hit = bool(request_cache_key == cache_key) 01:51:42 except (ValueError, RuntimeError): 01:51:42 # If the comparison raises, use 'is' as fallback. 01:51:42 cache_hit = request_cache_key is cache_key 01:51:42 01:51:42 if cache_hit: 01:51:42 if self.cached_result[2] is not None: 01:51:42 exc, exc_tb = self.cached_result[2] 01:51:42 raise exc.with_traceback(exc_tb) 01:51:42 else: 01:51:42 return self.cached_result[0] 01:51:42 # We have a previous but differently parametrized fixture instance 01:51:42 # so we need to tear it down before creating a new one. 01:51:42 self.finish(request) 01:51:42 assert self.cached_result is None 01:51:42 01:51:42 # Add finalizer to requested fixtures we saved previously. 01:51:42 # We make sure to do this after checking for cached value to avoid 01:51:42 # adding our finalizer multiple times. (#12135) 01:51:42 finalizer = functools.partial(self.finish, request=request) 01:51:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:51:42 parent_fixture.addfinalizer(finalizer) 01:51:42 01:51:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:51:42 # which is executed last. 01:51:42 > assert not self._finalizers 01:51:42 ^^^^^^^^^^^^^^^^^^^^ 01:51:42 E AssertionError 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:51:42 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 01:51:42 01:51:42 cls = 01:51:42 func = . at 0x7f46d8373380> 01:51:42 when = 'setup' 01:51:42 reraise = (, ) 01:51:42 01:51:42 @classmethod 01:51:42 def from_call( 01:51:42 cls, 01:51:42 func: Callable[[], TResult], 01:51:42 when: Literal["collect", "setup", "call", "teardown"], 01:51:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:51:42 ) -> CallInfo[TResult]: 01:51:42 """Call func, wrapping the result in a CallInfo. 01:51:42 01:51:42 :param func: 01:51:42 The function to call. Called without arguments. 01:51:42 :type func: Callable[[], _pytest.runner.TResult] 01:51:42 :param when: 01:51:42 The phase in which the function is called. 01:51:42 :param reraise: 01:51:42 Exception or exceptions that shall propagate if raised by the 01:51:42 function, instead of being wrapped in the CallInfo. 01:51:42 """ 01:51:42 excinfo = None 01:51:42 instant = timing.Instant() 01:51:42 try: 01:51:42 > result: TResult | None = func() 01:51:42 ^^^^^^ 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:51:42 lambda: runtest_hook(item=item, **kwds), 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:51:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:51:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:51:42 yield 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:51:42 return (yield) 01:51:42 ^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:51:42 item.session._setupstate.setup(item) 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:51:42 col.setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:51:42 super().setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:51:42 self._request._fillfixtures() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:51:42 item.funcargs[argname] = self.getfixturevalue(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:51:42 fixturedef = self._get_active_fixturedef(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:51:42 fixturedef.execute(request=subrequest) 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 01:51:42 self = 01:51:42 request = > 01:51:42 01:51:42 def execute(self, request: SubRequest) -> FixtureValue: 01:51:42 """Return the value of this fixture, executing it if not cached.""" 01:51:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:51:42 # This needs to be done before checking if we have a cached value, since 01:51:42 # if a dependent fixture has their cache invalidated, e.g. due to 01:51:42 # parametrization, they finalize themselves and fixtures depending on it 01:51:42 # (which will likely include this fixture) setting `self.cached_result = None`. 01:51:42 # See #4871 01:51:42 requested_fixtures_that_should_finalize_us = [] 01:51:42 for argname in self.argnames: 01:51:42 fixturedef = request._get_active_fixturedef(argname) 01:51:42 # Saves requested fixtures in a list so we later can add our finalizer 01:51:42 # to them, ensuring that if a requested fixture gets torn down we get torn 01:51:42 # down first. This is generally handled by SetupState, but still currently 01:51:42 # needed when this fixture is not parametrized but depends on a parametrized 01:51:42 # fixture. 01:51:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:51:42 01:51:42 # Check for (and return) cached value/exception. 01:51:42 if self.cached_result is not None: 01:51:42 request_cache_key = self.cache_key(request) 01:51:42 cache_key = self.cached_result[1] 01:51:42 try: 01:51:42 # Attempt to make a normal == check: this might fail for objects 01:51:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:51:42 cache_hit = bool(request_cache_key == cache_key) 01:51:42 except (ValueError, RuntimeError): 01:51:42 # If the comparison raises, use 'is' as fallback. 01:51:42 cache_hit = request_cache_key is cache_key 01:51:42 01:51:42 if cache_hit: 01:51:42 if self.cached_result[2] is not None: 01:51:42 exc, exc_tb = self.cached_result[2] 01:51:42 raise exc.with_traceback(exc_tb) 01:51:42 else: 01:51:42 return self.cached_result[0] 01:51:42 # We have a previous but differently parametrized fixture instance 01:51:42 # so we need to tear it down before creating a new one. 01:51:42 self.finish(request) 01:51:42 assert self.cached_result is None 01:51:42 01:51:42 # Add finalizer to requested fixtures we saved previously. 01:51:42 # We make sure to do this after checking for cached value to avoid 01:51:42 # adding our finalizer multiple times. (#12135) 01:51:42 finalizer = functools.partial(self.finish, request=request) 01:51:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:51:42 parent_fixture.addfinalizer(finalizer) 01:51:42 01:51:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:51:42 # which is executed last. 01:51:42 > assert not self._finalizers 01:51:42 ^^^^^^^^^^^^^^^^^^^^ 01:51:42 E AssertionError 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:51:42 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 01:51:42 01:51:42 cls = 01:51:42 func = . at 0x7f46d8373ec0> 01:51:42 when = 'setup' 01:51:42 reraise = (, ) 01:51:42 01:51:42 @classmethod 01:51:42 def from_call( 01:51:42 cls, 01:51:42 func: Callable[[], TResult], 01:51:42 when: Literal["collect", "setup", "call", "teardown"], 01:51:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:51:42 ) -> CallInfo[TResult]: 01:51:42 """Call func, wrapping the result in a CallInfo. 01:51:42 01:51:42 :param func: 01:51:42 The function to call. Called without arguments. 01:51:42 :type func: Callable[[], _pytest.runner.TResult] 01:51:42 :param when: 01:51:42 The phase in which the function is called. 01:51:42 :param reraise: 01:51:42 Exception or exceptions that shall propagate if raised by the 01:51:42 function, instead of being wrapped in the CallInfo. 01:51:42 """ 01:51:42 excinfo = None 01:51:42 instant = timing.Instant() 01:51:42 try: 01:51:42 > result: TResult | None = func() 01:51:42 ^^^^^^ 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:51:42 lambda: runtest_hook(item=item, **kwds), 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:51:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:51:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:51:42 yield 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:51:42 return (yield) 01:51:42 ^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:51:42 item.session._setupstate.setup(item) 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:51:42 col.setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:51:42 super().setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:51:42 self._request._fillfixtures() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:51:42 item.funcargs[argname] = self.getfixturevalue(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:51:42 fixturedef = self._get_active_fixturedef(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:51:42 fixturedef.execute(request=subrequest) 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 01:51:42 self = 01:51:42 request = > 01:51:42 01:51:42 def execute(self, request: SubRequest) -> FixtureValue: 01:51:42 """Return the value of this fixture, executing it if not cached.""" 01:51:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:51:42 # This needs to be done before checking if we have a cached value, since 01:51:42 # if a dependent fixture has their cache invalidated, e.g. due to 01:51:42 # parametrization, they finalize themselves and fixtures depending on it 01:51:42 # (which will likely include this fixture) setting `self.cached_result = None`. 01:51:42 # See #4871 01:51:42 requested_fixtures_that_should_finalize_us = [] 01:51:42 for argname in self.argnames: 01:51:42 fixturedef = request._get_active_fixturedef(argname) 01:51:42 # Saves requested fixtures in a list so we later can add our finalizer 01:51:42 # to them, ensuring that if a requested fixture gets torn down we get torn 01:51:42 # down first. This is generally handled by SetupState, but still currently 01:51:42 # needed when this fixture is not parametrized but depends on a parametrized 01:51:42 # fixture. 01:51:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:51:42 01:51:42 # Check for (and return) cached value/exception. 01:51:42 if self.cached_result is not None: 01:51:42 request_cache_key = self.cache_key(request) 01:51:42 cache_key = self.cached_result[1] 01:51:42 try: 01:51:42 # Attempt to make a normal == check: this might fail for objects 01:51:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:51:42 cache_hit = bool(request_cache_key == cache_key) 01:51:42 except (ValueError, RuntimeError): 01:51:42 # If the comparison raises, use 'is' as fallback. 01:51:42 cache_hit = request_cache_key is cache_key 01:51:42 01:51:42 if cache_hit: 01:51:42 if self.cached_result[2] is not None: 01:51:42 exc, exc_tb = self.cached_result[2] 01:51:42 raise exc.with_traceback(exc_tb) 01:51:42 else: 01:51:42 return self.cached_result[0] 01:51:42 # We have a previous but differently parametrized fixture instance 01:51:42 # so we need to tear it down before creating a new one. 01:51:42 self.finish(request) 01:51:42 assert self.cached_result is None 01:51:42 01:51:42 # Add finalizer to requested fixtures we saved previously. 01:51:42 # We make sure to do this after checking for cached value to avoid 01:51:42 # adding our finalizer multiple times. (#12135) 01:51:42 finalizer = functools.partial(self.finish, request=request) 01:51:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:51:42 parent_fixture.addfinalizer(finalizer) 01:51:42 01:51:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:51:42 # which is executed last. 01:51:42 > assert not self._finalizers 01:51:42 ^^^^^^^^^^^^^^^^^^^^ 01:51:42 E AssertionError 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:51:42 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 01:51:42 01:51:42 cls = 01:51:42 func = . at 0x7f46d7cc9940> 01:51:42 when = 'setup' 01:51:42 reraise = (, ) 01:51:42 01:51:42 @classmethod 01:51:42 def from_call( 01:51:42 cls, 01:51:42 func: Callable[[], TResult], 01:51:42 when: Literal["collect", "setup", "call", "teardown"], 01:51:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:51:42 ) -> CallInfo[TResult]: 01:51:42 """Call func, wrapping the result in a CallInfo. 01:51:42 01:51:42 :param func: 01:51:42 The function to call. Called without arguments. 01:51:42 :type func: Callable[[], _pytest.runner.TResult] 01:51:42 :param when: 01:51:42 The phase in which the function is called. 01:51:42 :param reraise: 01:51:42 Exception or exceptions that shall propagate if raised by the 01:51:42 function, instead of being wrapped in the CallInfo. 01:51:42 """ 01:51:42 excinfo = None 01:51:42 instant = timing.Instant() 01:51:42 try: 01:51:42 > result: TResult | None = func() 01:51:42 ^^^^^^ 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:51:42 lambda: runtest_hook(item=item, **kwds), 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:51:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:51:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:51:42 yield 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:51:42 return (yield) 01:51:42 ^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:51:42 item.session._setupstate.setup(item) 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:51:42 col.setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:51:42 super().setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:51:42 self._request._fillfixtures() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:51:42 item.funcargs[argname] = self.getfixturevalue(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:51:42 fixturedef = self._get_active_fixturedef(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:51:42 fixturedef.execute(request=subrequest) 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 01:51:42 self = 01:51:42 request = > 01:51:42 01:51:42 def execute(self, request: SubRequest) -> FixtureValue: 01:51:42 """Return the value of this fixture, executing it if not cached.""" 01:51:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:51:42 # This needs to be done before checking if we have a cached value, since 01:51:42 # if a dependent fixture has their cache invalidated, e.g. due to 01:51:42 # parametrization, they finalize themselves and fixtures depending on it 01:51:42 # (which will likely include this fixture) setting `self.cached_result = None`. 01:51:42 # See #4871 01:51:42 requested_fixtures_that_should_finalize_us = [] 01:51:42 for argname in self.argnames: 01:51:42 fixturedef = request._get_active_fixturedef(argname) 01:51:42 # Saves requested fixtures in a list so we later can add our finalizer 01:51:42 # to them, ensuring that if a requested fixture gets torn down we get torn 01:51:42 # down first. This is generally handled by SetupState, but still currently 01:51:42 # needed when this fixture is not parametrized but depends on a parametrized 01:51:42 # fixture. 01:51:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:51:42 01:51:42 # Check for (and return) cached value/exception. 01:51:42 if self.cached_result is not None: 01:51:42 request_cache_key = self.cache_key(request) 01:51:42 cache_key = self.cached_result[1] 01:51:42 try: 01:51:42 # Attempt to make a normal == check: this might fail for objects 01:51:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:51:42 cache_hit = bool(request_cache_key == cache_key) 01:51:42 except (ValueError, RuntimeError): 01:51:42 # If the comparison raises, use 'is' as fallback. 01:51:42 cache_hit = request_cache_key is cache_key 01:51:42 01:51:42 if cache_hit: 01:51:42 if self.cached_result[2] is not None: 01:51:42 exc, exc_tb = self.cached_result[2] 01:51:42 raise exc.with_traceback(exc_tb) 01:51:42 else: 01:51:42 return self.cached_result[0] 01:51:42 # We have a previous but differently parametrized fixture instance 01:51:42 # so we need to tear it down before creating a new one. 01:51:42 self.finish(request) 01:51:42 assert self.cached_result is None 01:51:42 01:51:42 # Add finalizer to requested fixtures we saved previously. 01:51:42 # We make sure to do this after checking for cached value to avoid 01:51:42 # adding our finalizer multiple times. (#12135) 01:51:42 finalizer = functools.partial(self.finish, request=request) 01:51:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:51:42 parent_fixture.addfinalizer(finalizer) 01:51:42 01:51:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:51:42 # which is executed last. 01:51:42 > assert not self._finalizers 01:51:42 ^^^^^^^^^^^^^^^^^^^^ 01:51:42 E AssertionError 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:51:42 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 01:51:42 01:51:42 cls = 01:51:42 func = . at 0x7f46d83871a0> 01:51:42 when = 'setup' 01:51:42 reraise = (, ) 01:51:42 01:51:42 @classmethod 01:51:42 def from_call( 01:51:42 cls, 01:51:42 func: Callable[[], TResult], 01:51:42 when: Literal["collect", "setup", "call", "teardown"], 01:51:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:51:42 ) -> CallInfo[TResult]: 01:51:42 """Call func, wrapping the result in a CallInfo. 01:51:42 01:51:42 :param func: 01:51:42 The function to call. Called without arguments. 01:51:42 :type func: Callable[[], _pytest.runner.TResult] 01:51:42 :param when: 01:51:42 The phase in which the function is called. 01:51:42 :param reraise: 01:51:42 Exception or exceptions that shall propagate if raised by the 01:51:42 function, instead of being wrapped in the CallInfo. 01:51:42 """ 01:51:42 excinfo = None 01:51:42 instant = timing.Instant() 01:51:42 try: 01:51:42 > result: TResult | None = func() 01:51:42 ^^^^^^ 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:51:42 lambda: runtest_hook(item=item, **kwds), 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:51:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:51:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:51:42 yield 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:51:42 return (yield) 01:51:42 ^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:51:42 item.session._setupstate.setup(item) 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:51:42 col.setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:51:42 super().setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:51:42 self._request._fillfixtures() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:51:42 item.funcargs[argname] = self.getfixturevalue(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:51:42 fixturedef = self._get_active_fixturedef(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:51:42 fixturedef.execute(request=subrequest) 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 01:51:42 self = 01:51:42 request = > 01:51:42 01:51:42 def execute(self, request: SubRequest) -> FixtureValue: 01:51:42 """Return the value of this fixture, executing it if not cached.""" 01:51:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:51:42 # This needs to be done before checking if we have a cached value, since 01:51:42 # if a dependent fixture has their cache invalidated, e.g. due to 01:51:42 # parametrization, they finalize themselves and fixtures depending on it 01:51:42 # (which will likely include this fixture) setting `self.cached_result = None`. 01:51:42 # See #4871 01:51:42 requested_fixtures_that_should_finalize_us = [] 01:51:42 for argname in self.argnames: 01:51:42 fixturedef = request._get_active_fixturedef(argname) 01:51:42 # Saves requested fixtures in a list so we later can add our finalizer 01:51:42 # to them, ensuring that if a requested fixture gets torn down we get torn 01:51:42 # down first. This is generally handled by SetupState, but still currently 01:51:42 # needed when this fixture is not parametrized but depends on a parametrized 01:51:42 # fixture. 01:51:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:51:42 01:51:42 # Check for (and return) cached value/exception. 01:51:42 if self.cached_result is not None: 01:51:42 request_cache_key = self.cache_key(request) 01:51:42 cache_key = self.cached_result[1] 01:51:42 try: 01:51:42 # Attempt to make a normal == check: this might fail for objects 01:51:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:51:42 cache_hit = bool(request_cache_key == cache_key) 01:51:42 except (ValueError, RuntimeError): 01:51:42 # If the comparison raises, use 'is' as fallback. 01:51:42 cache_hit = request_cache_key is cache_key 01:51:42 01:51:42 if cache_hit: 01:51:42 if self.cached_result[2] is not None: 01:51:42 exc, exc_tb = self.cached_result[2] 01:51:42 raise exc.with_traceback(exc_tb) 01:51:42 else: 01:51:42 return self.cached_result[0] 01:51:42 # We have a previous but differently parametrized fixture instance 01:51:42 # so we need to tear it down before creating a new one. 01:51:42 self.finish(request) 01:51:42 assert self.cached_result is None 01:51:42 01:51:42 # Add finalizer to requested fixtures we saved previously. 01:51:42 # We make sure to do this after checking for cached value to avoid 01:51:42 # adding our finalizer multiple times. (#12135) 01:51:42 finalizer = functools.partial(self.finish, request=request) 01:51:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:51:42 parent_fixture.addfinalizer(finalizer) 01:51:42 01:51:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:51:42 # which is executed last. 01:51:42 > assert not self._finalizers 01:51:42 ^^^^^^^^^^^^^^^^^^^^ 01:51:42 E AssertionError 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:51:42 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 01:51:42 01:51:42 cls = 01:51:42 func = . at 0x7f46d8373380> 01:51:42 when = 'setup' 01:51:42 reraise = (, ) 01:51:42 01:51:42 @classmethod 01:51:42 def from_call( 01:51:42 cls, 01:51:42 func: Callable[[], TResult], 01:51:42 when: Literal["collect", "setup", "call", "teardown"], 01:51:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:51:42 ) -> CallInfo[TResult]: 01:51:42 """Call func, wrapping the result in a CallInfo. 01:51:42 01:51:42 :param func: 01:51:42 The function to call. Called without arguments. 01:51:42 :type func: Callable[[], _pytest.runner.TResult] 01:51:42 :param when: 01:51:42 The phase in which the function is called. 01:51:42 :param reraise: 01:51:42 Exception or exceptions that shall propagate if raised by the 01:51:42 function, instead of being wrapped in the CallInfo. 01:51:42 """ 01:51:42 excinfo = None 01:51:42 instant = timing.Instant() 01:51:42 try: 01:51:42 > result: TResult | None = func() 01:51:42 ^^^^^^ 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:51:42 lambda: runtest_hook(item=item, **kwds), 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:51:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:51:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:51:42 yield 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:51:42 return (yield) 01:51:42 ^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:51:42 item.session._setupstate.setup(item) 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:51:42 col.setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:51:42 super().setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:51:42 self._request._fillfixtures() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:51:42 item.funcargs[argname] = self.getfixturevalue(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:51:42 fixturedef = self._get_active_fixturedef(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:51:42 fixturedef.execute(request=subrequest) 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 01:51:42 self = 01:51:42 request = > 01:51:42 01:51:42 def execute(self, request: SubRequest) -> FixtureValue: 01:51:42 """Return the value of this fixture, executing it if not cached.""" 01:51:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:51:42 # This needs to be done before checking if we have a cached value, since 01:51:42 # if a dependent fixture has their cache invalidated, e.g. due to 01:51:42 # parametrization, they finalize themselves and fixtures depending on it 01:51:42 # (which will likely include this fixture) setting `self.cached_result = None`. 01:51:42 # See #4871 01:51:42 requested_fixtures_that_should_finalize_us = [] 01:51:42 for argname in self.argnames: 01:51:42 fixturedef = request._get_active_fixturedef(argname) 01:51:42 # Saves requested fixtures in a list so we later can add our finalizer 01:51:42 # to them, ensuring that if a requested fixture gets torn down we get torn 01:51:42 # down first. This is generally handled by SetupState, but still currently 01:51:42 # needed when this fixture is not parametrized but depends on a parametrized 01:51:42 # fixture. 01:51:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:51:42 01:51:42 # Check for (and return) cached value/exception. 01:51:42 if self.cached_result is not None: 01:51:42 request_cache_key = self.cache_key(request) 01:51:42 cache_key = self.cached_result[1] 01:51:42 try: 01:51:42 # Attempt to make a normal == check: this might fail for objects 01:51:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:51:42 cache_hit = bool(request_cache_key == cache_key) 01:51:42 except (ValueError, RuntimeError): 01:51:42 # If the comparison raises, use 'is' as fallback. 01:51:42 cache_hit = request_cache_key is cache_key 01:51:42 01:51:42 if cache_hit: 01:51:42 if self.cached_result[2] is not None: 01:51:42 exc, exc_tb = self.cached_result[2] 01:51:42 raise exc.with_traceback(exc_tb) 01:51:42 else: 01:51:42 return self.cached_result[0] 01:51:42 # We have a previous but differently parametrized fixture instance 01:51:42 # so we need to tear it down before creating a new one. 01:51:42 self.finish(request) 01:51:42 assert self.cached_result is None 01:51:42 01:51:42 # Add finalizer to requested fixtures we saved previously. 01:51:42 # We make sure to do this after checking for cached value to avoid 01:51:42 # adding our finalizer multiple times. (#12135) 01:51:42 finalizer = functools.partial(self.finish, request=request) 01:51:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:51:42 parent_fixture.addfinalizer(finalizer) 01:51:42 01:51:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:51:42 # which is executed last. 01:51:42 > assert not self._finalizers 01:51:42 ^^^^^^^^^^^^^^^^^^^^ 01:51:42 E AssertionError 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:51:42 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 01:51:42 01:51:42 cls = 01:51:42 func = . at 0x7f46d7cca980> 01:51:42 when = 'setup' 01:51:42 reraise = (, ) 01:51:42 01:51:42 @classmethod 01:51:42 def from_call( 01:51:42 cls, 01:51:42 func: Callable[[], TResult], 01:51:42 when: Literal["collect", "setup", "call", "teardown"], 01:51:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:51:42 ) -> CallInfo[TResult]: 01:51:42 """Call func, wrapping the result in a CallInfo. 01:51:42 01:51:42 :param func: 01:51:42 The function to call. Called without arguments. 01:51:42 :type func: Callable[[], _pytest.runner.TResult] 01:51:42 :param when: 01:51:42 The phase in which the function is called. 01:51:42 :param reraise: 01:51:42 Exception or exceptions that shall propagate if raised by the 01:51:42 function, instead of being wrapped in the CallInfo. 01:51:42 """ 01:51:42 excinfo = None 01:51:42 instant = timing.Instant() 01:51:42 try: 01:51:42 > result: TResult | None = func() 01:51:42 ^^^^^^ 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:51:42 lambda: runtest_hook(item=item, **kwds), 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:51:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:51:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:51:42 yield 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:51:42 return (yield) 01:51:42 ^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:51:42 item.session._setupstate.setup(item) 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:51:42 col.setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:51:42 super().setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:51:42 self._request._fillfixtures() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:51:42 item.funcargs[argname] = self.getfixturevalue(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:51:42 fixturedef = self._get_active_fixturedef(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:51:42 fixturedef.execute(request=subrequest) 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 01:51:42 self = 01:51:42 request = > 01:51:42 01:51:42 def execute(self, request: SubRequest) -> FixtureValue: 01:51:42 """Return the value of this fixture, executing it if not cached.""" 01:51:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:51:42 # This needs to be done before checking if we have a cached value, since 01:51:42 # if a dependent fixture has their cache invalidated, e.g. due to 01:51:42 # parametrization, they finalize themselves and fixtures depending on it 01:51:42 # (which will likely include this fixture) setting `self.cached_result = None`. 01:51:42 # See #4871 01:51:42 requested_fixtures_that_should_finalize_us = [] 01:51:42 for argname in self.argnames: 01:51:42 fixturedef = request._get_active_fixturedef(argname) 01:51:42 # Saves requested fixtures in a list so we later can add our finalizer 01:51:42 # to them, ensuring that if a requested fixture gets torn down we get torn 01:51:42 # down first. This is generally handled by SetupState, but still currently 01:51:42 # needed when this fixture is not parametrized but depends on a parametrized 01:51:42 # fixture. 01:51:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:51:42 01:51:42 # Check for (and return) cached value/exception. 01:51:42 if self.cached_result is not None: 01:51:42 request_cache_key = self.cache_key(request) 01:51:42 cache_key = self.cached_result[1] 01:51:42 try: 01:51:42 # Attempt to make a normal == check: this might fail for objects 01:51:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:51:42 cache_hit = bool(request_cache_key == cache_key) 01:51:42 except (ValueError, RuntimeError): 01:51:42 # If the comparison raises, use 'is' as fallback. 01:51:42 cache_hit = request_cache_key is cache_key 01:51:42 01:51:42 if cache_hit: 01:51:42 if self.cached_result[2] is not None: 01:51:42 exc, exc_tb = self.cached_result[2] 01:51:42 raise exc.with_traceback(exc_tb) 01:51:42 else: 01:51:42 return self.cached_result[0] 01:51:42 # We have a previous but differently parametrized fixture instance 01:51:42 # so we need to tear it down before creating a new one. 01:51:42 self.finish(request) 01:51:42 assert self.cached_result is None 01:51:42 01:51:42 # Add finalizer to requested fixtures we saved previously. 01:51:42 # We make sure to do this after checking for cached value to avoid 01:51:42 # adding our finalizer multiple times. (#12135) 01:51:42 finalizer = functools.partial(self.finish, request=request) 01:51:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:51:42 parent_fixture.addfinalizer(finalizer) 01:51:42 01:51:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:51:42 # which is executed last. 01:51:42 > assert not self._finalizers 01:51:42 ^^^^^^^^^^^^^^^^^^^^ 01:51:42 E AssertionError 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:51:42 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 01:51:42 01:51:42 cls = 01:51:42 func = . at 0x7f46d8384540> 01:51:42 when = 'setup' 01:51:42 reraise = (, ) 01:51:42 01:51:42 @classmethod 01:51:42 def from_call( 01:51:42 cls, 01:51:42 func: Callable[[], TResult], 01:51:42 when: Literal["collect", "setup", "call", "teardown"], 01:51:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:51:42 ) -> CallInfo[TResult]: 01:51:42 """Call func, wrapping the result in a CallInfo. 01:51:42 01:51:42 :param func: 01:51:42 The function to call. Called without arguments. 01:51:42 :type func: Callable[[], _pytest.runner.TResult] 01:51:42 :param when: 01:51:42 The phase in which the function is called. 01:51:42 :param reraise: 01:51:42 Exception or exceptions that shall propagate if raised by the 01:51:42 function, instead of being wrapped in the CallInfo. 01:51:42 """ 01:51:42 excinfo = None 01:51:42 instant = timing.Instant() 01:51:42 try: 01:51:42 > result: TResult | None = func() 01:51:42 ^^^^^^ 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:51:42 lambda: runtest_hook(item=item, **kwds), 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:51:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:51:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:51:42 yield 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:51:42 return (yield) 01:51:42 ^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:51:42 item.session._setupstate.setup(item) 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:51:42 col.setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:51:42 super().setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:51:42 self._request._fillfixtures() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:51:42 item.funcargs[argname] = self.getfixturevalue(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:51:42 fixturedef = self._get_active_fixturedef(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:51:42 fixturedef.execute(request=subrequest) 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 01:51:42 self = 01:51:42 request = > 01:51:42 01:51:42 def execute(self, request: SubRequest) -> FixtureValue: 01:51:42 """Return the value of this fixture, executing it if not cached.""" 01:51:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:51:42 # This needs to be done before checking if we have a cached value, since 01:51:42 # if a dependent fixture has their cache invalidated, e.g. due to 01:51:42 # parametrization, they finalize themselves and fixtures depending on it 01:51:42 # (which will likely include this fixture) setting `self.cached_result = None`. 01:51:42 # See #4871 01:51:42 requested_fixtures_that_should_finalize_us = [] 01:51:42 for argname in self.argnames: 01:51:42 fixturedef = request._get_active_fixturedef(argname) 01:51:42 # Saves requested fixtures in a list so we later can add our finalizer 01:51:42 # to them, ensuring that if a requested fixture gets torn down we get torn 01:51:42 # down first. This is generally handled by SetupState, but still currently 01:51:42 # needed when this fixture is not parametrized but depends on a parametrized 01:51:42 # fixture. 01:51:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:51:42 01:51:42 # Check for (and return) cached value/exception. 01:51:42 if self.cached_result is not None: 01:51:42 request_cache_key = self.cache_key(request) 01:51:42 cache_key = self.cached_result[1] 01:51:42 try: 01:51:42 # Attempt to make a normal == check: this might fail for objects 01:51:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:51:42 cache_hit = bool(request_cache_key == cache_key) 01:51:42 except (ValueError, RuntimeError): 01:51:42 # If the comparison raises, use 'is' as fallback. 01:51:42 cache_hit = request_cache_key is cache_key 01:51:42 01:51:42 if cache_hit: 01:51:42 if self.cached_result[2] is not None: 01:51:42 exc, exc_tb = self.cached_result[2] 01:51:42 raise exc.with_traceback(exc_tb) 01:51:42 else: 01:51:42 return self.cached_result[0] 01:51:42 # We have a previous but differently parametrized fixture instance 01:51:42 # so we need to tear it down before creating a new one. 01:51:42 self.finish(request) 01:51:42 assert self.cached_result is None 01:51:42 01:51:42 # Add finalizer to requested fixtures we saved previously. 01:51:42 # We make sure to do this after checking for cached value to avoid 01:51:42 # adding our finalizer multiple times. (#12135) 01:51:42 finalizer = functools.partial(self.finish, request=request) 01:51:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:51:42 parent_fixture.addfinalizer(finalizer) 01:51:42 01:51:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:51:42 # which is executed last. 01:51:42 > assert not self._finalizers 01:51:42 ^^^^^^^^^^^^^^^^^^^^ 01:51:42 E AssertionError 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:51:42 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 01:51:42 01:51:42 cls = 01:51:42 func = . at 0x7f46d8373380> 01:51:42 when = 'setup' 01:51:42 reraise = (, ) 01:51:42 01:51:42 @classmethod 01:51:42 def from_call( 01:51:42 cls, 01:51:42 func: Callable[[], TResult], 01:51:42 when: Literal["collect", "setup", "call", "teardown"], 01:51:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:51:42 ) -> CallInfo[TResult]: 01:51:42 """Call func, wrapping the result in a CallInfo. 01:51:42 01:51:42 :param func: 01:51:42 The function to call. Called without arguments. 01:51:42 :type func: Callable[[], _pytest.runner.TResult] 01:51:42 :param when: 01:51:42 The phase in which the function is called. 01:51:42 :param reraise: 01:51:42 Exception or exceptions that shall propagate if raised by the 01:51:42 function, instead of being wrapped in the CallInfo. 01:51:42 """ 01:51:42 excinfo = None 01:51:42 instant = timing.Instant() 01:51:42 try: 01:51:42 > result: TResult | None = func() 01:51:42 ^^^^^^ 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:51:42 lambda: runtest_hook(item=item, **kwds), 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:51:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:51:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:51:42 yield 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:51:42 return (yield) 01:51:42 ^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:51:42 item.session._setupstate.setup(item) 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:51:42 col.setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:51:42 super().setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:51:42 self._request._fillfixtures() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:51:42 item.funcargs[argname] = self.getfixturevalue(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:51:42 fixturedef = self._get_active_fixturedef(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:51:42 fixturedef.execute(request=subrequest) 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 01:51:42 self = 01:51:42 request = > 01:51:42 01:51:42 def execute(self, request: SubRequest) -> FixtureValue: 01:51:42 """Return the value of this fixture, executing it if not cached.""" 01:51:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:51:42 # This needs to be done before checking if we have a cached value, since 01:51:42 # if a dependent fixture has their cache invalidated, e.g. due to 01:51:42 # parametrization, they finalize themselves and fixtures depending on it 01:51:42 # (which will likely include this fixture) setting `self.cached_result = None`. 01:51:42 # See #4871 01:51:42 requested_fixtures_that_should_finalize_us = [] 01:51:42 for argname in self.argnames: 01:51:42 fixturedef = request._get_active_fixturedef(argname) 01:51:42 # Saves requested fixtures in a list so we later can add our finalizer 01:51:42 # to them, ensuring that if a requested fixture gets torn down we get torn 01:51:42 # down first. This is generally handled by SetupState, but still currently 01:51:42 # needed when this fixture is not parametrized but depends on a parametrized 01:51:42 # fixture. 01:51:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:51:42 01:51:42 # Check for (and return) cached value/exception. 01:51:42 if self.cached_result is not None: 01:51:42 request_cache_key = self.cache_key(request) 01:51:42 cache_key = self.cached_result[1] 01:51:42 try: 01:51:42 # Attempt to make a normal == check: this might fail for objects 01:51:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:51:42 cache_hit = bool(request_cache_key == cache_key) 01:51:42 except (ValueError, RuntimeError): 01:51:42 # If the comparison raises, use 'is' as fallback. 01:51:42 cache_hit = request_cache_key is cache_key 01:51:42 01:51:42 if cache_hit: 01:51:42 if self.cached_result[2] is not None: 01:51:42 exc, exc_tb = self.cached_result[2] 01:51:42 raise exc.with_traceback(exc_tb) 01:51:42 else: 01:51:42 return self.cached_result[0] 01:51:42 # We have a previous but differently parametrized fixture instance 01:51:42 # so we need to tear it down before creating a new one. 01:51:42 self.finish(request) 01:51:42 assert self.cached_result is None 01:51:42 01:51:42 # Add finalizer to requested fixtures we saved previously. 01:51:42 # We make sure to do this after checking for cached value to avoid 01:51:42 # adding our finalizer multiple times. (#12135) 01:51:42 finalizer = functools.partial(self.finish, request=request) 01:51:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:51:42 parent_fixture.addfinalizer(finalizer) 01:51:42 01:51:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:51:42 # which is executed last. 01:51:42 > assert not self._finalizers 01:51:42 ^^^^^^^^^^^^^^^^^^^^ 01:51:42 E AssertionError 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:51:42 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 01:51:42 01:51:42 cls = 01:51:42 func = . at 0x7f46d7cca2a0> 01:51:42 when = 'setup' 01:51:42 reraise = (, ) 01:51:42 01:51:42 @classmethod 01:51:42 def from_call( 01:51:42 cls, 01:51:42 func: Callable[[], TResult], 01:51:42 when: Literal["collect", "setup", "call", "teardown"], 01:51:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:51:42 ) -> CallInfo[TResult]: 01:51:42 """Call func, wrapping the result in a CallInfo. 01:51:42 01:51:42 :param func: 01:51:42 The function to call. Called without arguments. 01:51:42 :type func: Callable[[], _pytest.runner.TResult] 01:51:42 :param when: 01:51:42 The phase in which the function is called. 01:51:42 :param reraise: 01:51:42 Exception or exceptions that shall propagate if raised by the 01:51:42 function, instead of being wrapped in the CallInfo. 01:51:42 """ 01:51:42 excinfo = None 01:51:42 instant = timing.Instant() 01:51:42 try: 01:51:42 > result: TResult | None = func() 01:51:42 ^^^^^^ 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:51:42 lambda: runtest_hook(item=item, **kwds), 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:51:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:51:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:51:42 yield 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:51:42 return (yield) 01:51:42 ^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:51:42 item.session._setupstate.setup(item) 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:51:42 col.setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:51:42 super().setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:51:42 self._request._fillfixtures() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:51:42 item.funcargs[argname] = self.getfixturevalue(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:51:42 fixturedef = self._get_active_fixturedef(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:51:42 fixturedef.execute(request=subrequest) 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 01:51:42 self = 01:51:42 request = > 01:51:42 01:51:42 def execute(self, request: SubRequest) -> FixtureValue: 01:51:42 """Return the value of this fixture, executing it if not cached.""" 01:51:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:51:42 # This needs to be done before checking if we have a cached value, since 01:51:42 # if a dependent fixture has their cache invalidated, e.g. due to 01:51:42 # parametrization, they finalize themselves and fixtures depending on it 01:51:42 # (which will likely include this fixture) setting `self.cached_result = None`. 01:51:42 # See #4871 01:51:42 requested_fixtures_that_should_finalize_us = [] 01:51:42 for argname in self.argnames: 01:51:42 fixturedef = request._get_active_fixturedef(argname) 01:51:42 # Saves requested fixtures in a list so we later can add our finalizer 01:51:42 # to them, ensuring that if a requested fixture gets torn down we get torn 01:51:42 # down first. This is generally handled by SetupState, but still currently 01:51:42 # needed when this fixture is not parametrized but depends on a parametrized 01:51:42 # fixture. 01:51:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:51:42 01:51:42 # Check for (and return) cached value/exception. 01:51:42 if self.cached_result is not None: 01:51:42 request_cache_key = self.cache_key(request) 01:51:42 cache_key = self.cached_result[1] 01:51:42 try: 01:51:42 # Attempt to make a normal == check: this might fail for objects 01:51:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:51:42 cache_hit = bool(request_cache_key == cache_key) 01:51:42 except (ValueError, RuntimeError): 01:51:42 # If the comparison raises, use 'is' as fallback. 01:51:42 cache_hit = request_cache_key is cache_key 01:51:42 01:51:42 if cache_hit: 01:51:42 if self.cached_result[2] is not None: 01:51:42 exc, exc_tb = self.cached_result[2] 01:51:42 raise exc.with_traceback(exc_tb) 01:51:42 else: 01:51:42 return self.cached_result[0] 01:51:42 # We have a previous but differently parametrized fixture instance 01:51:42 # so we need to tear it down before creating a new one. 01:51:42 self.finish(request) 01:51:42 assert self.cached_result is None 01:51:42 01:51:42 # Add finalizer to requested fixtures we saved previously. 01:51:42 # We make sure to do this after checking for cached value to avoid 01:51:42 # adding our finalizer multiple times. (#12135) 01:51:42 finalizer = functools.partial(self.finish, request=request) 01:51:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:51:42 parent_fixture.addfinalizer(finalizer) 01:51:42 01:51:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:51:42 # which is executed last. 01:51:42 > assert not self._finalizers 01:51:42 ^^^^^^^^^^^^^^^^^^^^ 01:51:42 E AssertionError 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:51:42 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 01:51:42 01:51:42 cls = 01:51:42 func = . at 0x7f46d83871a0> 01:51:42 when = 'setup' 01:51:42 reraise = (, ) 01:51:42 01:51:42 @classmethod 01:51:42 def from_call( 01:51:42 cls, 01:51:42 func: Callable[[], TResult], 01:51:42 when: Literal["collect", "setup", "call", "teardown"], 01:51:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:51:42 ) -> CallInfo[TResult]: 01:51:42 """Call func, wrapping the result in a CallInfo. 01:51:42 01:51:42 :param func: 01:51:42 The function to call. Called without arguments. 01:51:42 :type func: Callable[[], _pytest.runner.TResult] 01:51:42 :param when: 01:51:42 The phase in which the function is called. 01:51:42 :param reraise: 01:51:42 Exception or exceptions that shall propagate if raised by the 01:51:42 function, instead of being wrapped in the CallInfo. 01:51:42 """ 01:51:42 excinfo = None 01:51:42 instant = timing.Instant() 01:51:42 try: 01:51:42 > result: TResult | None = func() 01:51:42 ^^^^^^ 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:51:42 lambda: runtest_hook(item=item, **kwds), 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:51:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:51:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:51:42 yield 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:51:42 return (yield) 01:51:42 ^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:51:42 item.session._setupstate.setup(item) 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:51:42 col.setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:51:42 super().setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:51:42 self._request._fillfixtures() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:51:42 item.funcargs[argname] = self.getfixturevalue(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:51:42 fixturedef = self._get_active_fixturedef(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:51:42 fixturedef.execute(request=subrequest) 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 01:51:42 self = 01:51:42 request = > 01:51:42 01:51:42 def execute(self, request: SubRequest) -> FixtureValue: 01:51:42 """Return the value of this fixture, executing it if not cached.""" 01:51:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:51:42 # This needs to be done before checking if we have a cached value, since 01:51:42 # if a dependent fixture has their cache invalidated, e.g. due to 01:51:42 # parametrization, they finalize themselves and fixtures depending on it 01:51:42 # (which will likely include this fixture) setting `self.cached_result = None`. 01:51:42 # See #4871 01:51:42 requested_fixtures_that_should_finalize_us = [] 01:51:42 for argname in self.argnames: 01:51:42 fixturedef = request._get_active_fixturedef(argname) 01:51:42 # Saves requested fixtures in a list so we later can add our finalizer 01:51:42 # to them, ensuring that if a requested fixture gets torn down we get torn 01:51:42 # down first. This is generally handled by SetupState, but still currently 01:51:42 # needed when this fixture is not parametrized but depends on a parametrized 01:51:42 # fixture. 01:51:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:51:42 01:51:42 # Check for (and return) cached value/exception. 01:51:42 if self.cached_result is not None: 01:51:42 request_cache_key = self.cache_key(request) 01:51:42 cache_key = self.cached_result[1] 01:51:42 try: 01:51:42 # Attempt to make a normal == check: this might fail for objects 01:51:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:51:42 cache_hit = bool(request_cache_key == cache_key) 01:51:42 except (ValueError, RuntimeError): 01:51:42 # If the comparison raises, use 'is' as fallback. 01:51:42 cache_hit = request_cache_key is cache_key 01:51:42 01:51:42 if cache_hit: 01:51:42 if self.cached_result[2] is not None: 01:51:42 exc, exc_tb = self.cached_result[2] 01:51:42 raise exc.with_traceback(exc_tb) 01:51:42 else: 01:51:42 return self.cached_result[0] 01:51:42 # We have a previous but differently parametrized fixture instance 01:51:42 # so we need to tear it down before creating a new one. 01:51:42 self.finish(request) 01:51:42 assert self.cached_result is None 01:51:42 01:51:42 # Add finalizer to requested fixtures we saved previously. 01:51:42 # We make sure to do this after checking for cached value to avoid 01:51:42 # adding our finalizer multiple times. (#12135) 01:51:42 finalizer = functools.partial(self.finish, request=request) 01:51:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:51:42 parent_fixture.addfinalizer(finalizer) 01:51:42 01:51:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:51:42 # which is executed last. 01:51:42 > assert not self._finalizers 01:51:42 ^^^^^^^^^^^^^^^^^^^^ 01:51:42 E AssertionError 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:51:42 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 01:51:42 01:51:42 cls = 01:51:42 func = . at 0x7f46d83842c0> 01:51:42 when = 'setup' 01:51:42 reraise = (, ) 01:51:42 01:51:42 @classmethod 01:51:42 def from_call( 01:51:42 cls, 01:51:42 func: Callable[[], TResult], 01:51:42 when: Literal["collect", "setup", "call", "teardown"], 01:51:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:51:42 ) -> CallInfo[TResult]: 01:51:42 """Call func, wrapping the result in a CallInfo. 01:51:42 01:51:42 :param func: 01:51:42 The function to call. Called without arguments. 01:51:42 :type func: Callable[[], _pytest.runner.TResult] 01:51:42 :param when: 01:51:42 The phase in which the function is called. 01:51:42 :param reraise: 01:51:42 Exception or exceptions that shall propagate if raised by the 01:51:42 function, instead of being wrapped in the CallInfo. 01:51:42 """ 01:51:42 excinfo = None 01:51:42 instant = timing.Instant() 01:51:42 try: 01:51:42 > result: TResult | None = func() 01:51:42 ^^^^^^ 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:51:42 lambda: runtest_hook(item=item, **kwds), 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:51:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:51:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:51:42 yield 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:51:42 return (yield) 01:51:42 ^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:51:42 item.session._setupstate.setup(item) 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:51:42 col.setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:51:42 super().setup() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:51:42 self._request._fillfixtures() 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:51:42 item.funcargs[argname] = self.getfixturevalue(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:51:42 fixturedef = self._get_active_fixturedef(argname) 01:51:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:51:42 fixturedef.execute(request=subrequest) 01:51:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:51:42 01:51:42 self = 01:51:42 request = > 01:51:42 01:51:42 def execute(self, request: SubRequest) -> FixtureValue: 01:51:42 """Return the value of this fixture, executing it if not cached.""" 01:51:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:51:42 # This needs to be done before checking if we have a cached value, since 01:51:42 # if a dependent fixture has their cache invalidated, e.g. due to 01:51:42 # parametrization, they finalize themselves and fixtures depending on it 01:51:42 # (which will likely include this fixture) setting `self.cached_result = None`. 01:51:42 # See #4871 01:51:42 requested_fixtures_that_should_finalize_us = [] 01:51:42 for argname in self.argnames: 01:51:42 fixturedef = request._get_active_fixturedef(argname) 01:51:42 # Saves requested fixtures in a list so we later can add our finalizer 01:51:42 # to them, ensuring that if a requested fixture gets torn down we get torn 01:51:42 # down first. This is generally handled by SetupState, but still currently 01:51:42 # needed when this fixture is not parametrized but depends on a parametrized 01:51:42 # fixture. 01:51:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:51:42 01:51:42 # Check for (and return) cached value/exception. 01:51:42 if self.cached_result is not None: 01:51:42 request_cache_key = self.cache_key(request) 01:51:42 cache_key = self.cached_result[1] 01:51:42 try: 01:51:42 # Attempt to make a normal == check: this might fail for objects 01:51:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:51:42 cache_hit = bool(request_cache_key == cache_key) 01:51:42 except (ValueError, RuntimeError): 01:51:42 # If the comparison raises, use 'is' as fallback. 01:51:42 cache_hit = request_cache_key is cache_key 01:51:42 01:51:42 if cache_hit: 01:51:42 if self.cached_result[2] is not None: 01:51:42 exc, exc_tb = self.cached_result[2] 01:51:42 raise exc.with_traceback(exc_tb) 01:51:42 else: 01:51:42 return self.cached_result[0] 01:51:42 # We have a previous but differently parametrized fixture instance 01:51:42 # so we need to tear it down before creating a new one. 01:51:42 self.finish(request) 01:51:42 assert self.cached_result is None 01:51:42 01:51:42 # Add finalizer to requested fixtures we saved previously. 01:51:42 # We make sure to do this after checking for cached value to avoid 01:51:42 # adding our finalizer multiple times. (#12135) 01:51:42 finalizer = functools.partial(self.finish, request=request) 01:51:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:51:42 parent_fixture.addfinalizer(finalizer) 01:51:42 01:51:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:51:42 # which is executed last. 01:51:42 > assert not self._finalizers 01:51:42 ^^^^^^^^^^^^^^^^^^^^ 01:51:42 E AssertionError 01:51:42 01:51:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:51:42 =========================== short test summary info ============================ 01:51:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 01:51:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 01:51:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 01:51:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 01:51:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 01:51:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 01:51:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 01:51:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 01:51:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 01:51:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 01:51:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 01:51:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 01:51:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 01:51:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 01:51:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 01:51:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 01:51:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 01:51:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 01:51:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 01:51:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 01:51:42 20 errors in 123.75s (0:02:03) 01:51:42 testsPCE: exit 1 (124.05 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce pid=4169 01:51:43 testsPCE: FAIL ✖ in 2 minutes 54.15 seconds 01:51:43 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 01:51:50 tests_tapi: freeze> python -m pip freeze --all 01:51:50 tests_tapi: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 01:51:50 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi 01:51:50 using environment variables from ./karaf221.env 01:51:50 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 01:53:31 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 01:53:40 ==================================== ERRORS ==================================== 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 01:53:40 01:53:40 cls = 01:53:40 01:53:40 @classmethod 01:53:40 def setUpClass(cls): 01:53:40 cls.init_failed = False 01:53:40 os.environ['JAVA_MIN_MEM'] = '1024M' 01:53:40 os.environ['JAVA_MAX_MEM'] = '4096M' 01:53:40 > cls.processes = test_utils.start_tpce() 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 01:53:40 transportpce_tests/tapi/test01_abstracted_topology.py:148: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 def start_tpce(): 01:53:40 if 'NO_ODL_STARTUP' in os.environ: 01:53:40 print('No OpenDaylight instance to start!') 01:53:40 return [] 01:53:40 print('starting OpenDaylight...') 01:53:40 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 01:53:40 process = start_lighty() 01:53:40 else: 01:53:40 process = start_karaf() 01:53:40 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 01:53:40 print('OpenDaylight started !') 01:53:40 else: 01:53:40 print('OpenDaylight failed to start !') 01:53:40 shutdown_process(process) 01:53:40 for pid in process_list: 01:53:40 shutdown_process(pid) 01:53:40 > sys.exit(1) 01:53:40 E SystemExit: 1 01:53:40 01:53:40 transportpce_tests/common/test_utils.py:234: SystemExit 01:53:40 ---------------------------- Captured stdout setup ----------------------------- 01:53:40 starting OpenDaylight... 01:53:40 starting KARAF (karaf221) TransportPCE build... 01:53:40 Pattern not found after 100 seconds! OpenDaylight failed to start ! 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d53b740> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d58fc40> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023fc37060> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023ee8f060> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d58f100> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d539b20> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d58f6a0> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023fc37060> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d53a2a0> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023fc37060> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d176020> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023fc37060> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d539a80> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d1765c0> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d53a8e0> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d53a480> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d58f100> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d53a480> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023fc37060> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d53a8e0> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023fc37060> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d175bc0> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d53a8e0> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d175bc0> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d174d60> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d53a8e0> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d1747c0> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d176ac0> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d53a8e0> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d175300> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d176ac0> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d53a8e0> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d175a80> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d176fc0> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d53a8e0> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d175e40> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d53a8e0> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d176020> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d176340> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d53a8e0> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d176340> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d177240> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d53a8e0> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d177420> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d177560> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d53a8e0> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d1763e0> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d175a80> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d53a8e0> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 01:53:40 01:53:40 cls = 01:53:40 func = . at 0x7f023d177060> 01:53:40 when = 'setup' 01:53:40 reraise = (, ) 01:53:40 01:53:40 @classmethod 01:53:40 def from_call( 01:53:40 cls, 01:53:40 func: Callable[[], TResult], 01:53:40 when: Literal["collect", "setup", "call", "teardown"], 01:53:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:53:40 ) -> CallInfo[TResult]: 01:53:40 """Call func, wrapping the result in a CallInfo. 01:53:40 01:53:40 :param func: 01:53:40 The function to call. Called without arguments. 01:53:40 :type func: Callable[[], _pytest.runner.TResult] 01:53:40 :param when: 01:53:40 The phase in which the function is called. 01:53:40 :param reraise: 01:53:40 Exception or exceptions that shall propagate if raised by the 01:53:40 function, instead of being wrapped in the CallInfo. 01:53:40 """ 01:53:40 excinfo = None 01:53:40 instant = timing.Instant() 01:53:40 try: 01:53:40 > result: TResult | None = func() 01:53:40 ^^^^^^ 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:53:40 lambda: runtest_hook(item=item, **kwds), 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:53:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:53:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:53:40 yield 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:53:40 return (yield) 01:53:40 ^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:53:40 item.session._setupstate.setup(item) 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:53:40 col.setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:53:40 super().setup() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:53:40 self._request._fillfixtures() 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:53:40 item.funcargs[argname] = self.getfixturevalue(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:53:40 fixturedef = self._get_active_fixturedef(argname) 01:53:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:53:40 fixturedef.execute(request=subrequest) 01:53:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:53:40 01:53:40 self = 01:53:40 request = > 01:53:40 01:53:40 def execute(self, request: SubRequest) -> FixtureValue: 01:53:40 """Return the value of this fixture, executing it if not cached.""" 01:53:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:53:40 # This needs to be done before checking if we have a cached value, since 01:53:40 # if a dependent fixture has their cache invalidated, e.g. due to 01:53:40 # parametrization, they finalize themselves and fixtures depending on it 01:53:40 # (which will likely include this fixture) setting `self.cached_result = None`. 01:53:40 # See #4871 01:53:40 requested_fixtures_that_should_finalize_us = [] 01:53:40 for argname in self.argnames: 01:53:40 fixturedef = request._get_active_fixturedef(argname) 01:53:40 # Saves requested fixtures in a list so we later can add our finalizer 01:53:40 # to them, ensuring that if a requested fixture gets torn down we get torn 01:53:40 # down first. This is generally handled by SetupState, but still currently 01:53:40 # needed when this fixture is not parametrized but depends on a parametrized 01:53:40 # fixture. 01:53:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:53:40 01:53:40 # Check for (and return) cached value/exception. 01:53:40 if self.cached_result is not None: 01:53:40 request_cache_key = self.cache_key(request) 01:53:40 cache_key = self.cached_result[1] 01:53:40 try: 01:53:40 # Attempt to make a normal == check: this might fail for objects 01:53:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:53:40 cache_hit = bool(request_cache_key == cache_key) 01:53:40 except (ValueError, RuntimeError): 01:53:40 # If the comparison raises, use 'is' as fallback. 01:53:40 cache_hit = request_cache_key is cache_key 01:53:40 01:53:40 if cache_hit: 01:53:40 if self.cached_result[2] is not None: 01:53:40 exc, exc_tb = self.cached_result[2] 01:53:40 raise exc.with_traceback(exc_tb) 01:53:40 else: 01:53:40 return self.cached_result[0] 01:53:40 # We have a previous but differently parametrized fixture instance 01:53:40 # so we need to tear it down before creating a new one. 01:53:40 self.finish(request) 01:53:40 assert self.cached_result is None 01:53:40 01:53:40 # Add finalizer to requested fixtures we saved previously. 01:53:40 # We make sure to do this after checking for cached value to avoid 01:53:40 # adding our finalizer multiple times. (#12135) 01:53:40 finalizer = functools.partial(self.finish, request=request) 01:53:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:53:40 parent_fixture.addfinalizer(finalizer) 01:53:40 01:53:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:53:40 # which is executed last. 01:53:40 > assert not self._finalizers 01:53:40 ^^^^^^^^^^^^^^^^^^^^ 01:53:40 E AssertionError 01:53:40 01:53:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:53:40 =========================== short test summary info ============================ 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 01:53:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 01:53:40 51 errors in 110.05s (0:01:50) 01:53:40 tests_tapi: exit 1 (110.35 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi pid=4251 01:53:41 tests_tapi: FAIL ✖ in 1 minute 57.8 seconds 01:53:41 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 01:53:41 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 01:53:49 tests221: freeze> python -m pip freeze --all 01:53:49 tests200: freeze> python -m pip freeze --all 01:53:50 tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 01:53:50 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 01:53:50 using environment variables from ./karaf221.env 01:53:50 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 01:53:50 tests200: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 01:53:50 tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 01:53:50 using environment variables from ./karafoc200.env 01:53:50 pytest -q transportpce_tests/oc200/test01_portmapping.py 01:55:30 EEEEEEEEEEEEEEEEEEE [100%] 01:55:32 ==================================== ERRORS ==================================== 01:55:32 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 01:55:32 01:55:32 cls = 01:55:32 01:55:32 @classmethod 01:55:32 def setUpClass(cls): 01:55:32 > cls.processes = test_utils.start_tpce() 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 01:55:32 transportpce_tests/oc200/test01_portmapping.py:29: 01:55:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:32 01:55:32 def start_tpce(): 01:55:32 if 'NO_ODL_STARTUP' in os.environ: 01:55:32 print('No OpenDaylight instance to start!') 01:55:32 return [] 01:55:32 print('starting OpenDaylight...') 01:55:32 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 01:55:32 process = start_lighty() 01:55:32 else: 01:55:32 process = start_karaf() 01:55:32 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 01:55:32 print('OpenDaylight started !') 01:55:32 else: 01:55:32 print('OpenDaylight failed to start !') 01:55:32 shutdown_process(process) 01:55:32 for pid in process_list: 01:55:32 shutdown_process(pid) 01:55:32 > sys.exit(1) 01:55:32 E SystemExit: 1 01:55:32 01:55:32 transportpce_tests/common/test_utils.py:234: SystemExit 01:55:32 ---------------------------- Captured stdout setup ----------------------------- 01:55:32 starting OpenDaylight... 01:55:32 starting KARAF (karafoc200) TransportPCE build... 01:55:32 Pattern not found after 100 seconds! OpenDaylight failed to start ! 01:55:32 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catalog_input_insertion _ 01:55:32 01:55:32 cls = 01:55:32 func = . at 0x7ff28165b420> 01:55:32 when = 'setup' 01:55:32 reraise = (, ) 01:55:32 01:55:32 @classmethod 01:55:32 def from_call( 01:55:32 cls, 01:55:32 func: Callable[[], TResult], 01:55:32 when: Literal["collect", "setup", "call", "teardown"], 01:55:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:32 ) -> CallInfo[TResult]: 01:55:32 """Call func, wrapping the result in a CallInfo. 01:55:32 01:55:32 :param func: 01:55:32 The function to call. Called without arguments. 01:55:32 :type func: Callable[[], _pytest.runner.TResult] 01:55:32 :param when: 01:55:32 The phase in which the function is called. 01:55:32 :param reraise: 01:55:32 Exception or exceptions that shall propagate if raised by the 01:55:32 function, instead of being wrapped in the CallInfo. 01:55:32 """ 01:55:32 excinfo = None 01:55:32 instant = timing.Instant() 01:55:32 try: 01:55:32 > result: TResult | None = func() 01:55:32 ^^^^^^ 01:55:32 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:32 lambda: runtest_hook(item=item, **kwds), 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:32 yield 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:32 return (yield) 01:55:32 ^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:32 item.session._setupstate.setup(item) 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:32 col.setup() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:32 super().setup() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:32 self._request._fillfixtures() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:32 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:32 fixturedef = self._get_active_fixturedef(argname) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:32 fixturedef.execute(request=subrequest) 01:55:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:32 01:55:32 self = 01:55:32 request = > 01:55:32 01:55:32 def execute(self, request: SubRequest) -> FixtureValue: 01:55:32 """Return the value of this fixture, executing it if not cached.""" 01:55:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:32 # This needs to be done before checking if we have a cached value, since 01:55:32 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:32 # parametrization, they finalize themselves and fixtures depending on it 01:55:32 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:32 # See #4871 01:55:32 requested_fixtures_that_should_finalize_us = [] 01:55:32 for argname in self.argnames: 01:55:32 fixturedef = request._get_active_fixturedef(argname) 01:55:32 # Saves requested fixtures in a list so we later can add our finalizer 01:55:32 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:32 # down first. This is generally handled by SetupState, but still currently 01:55:32 # needed when this fixture is not parametrized but depends on a parametrized 01:55:32 # fixture. 01:55:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:32 01:55:32 # Check for (and return) cached value/exception. 01:55:32 if self.cached_result is not None: 01:55:32 request_cache_key = self.cache_key(request) 01:55:32 cache_key = self.cached_result[1] 01:55:32 try: 01:55:32 # Attempt to make a normal == check: this might fail for objects 01:55:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:32 cache_hit = bool(request_cache_key == cache_key) 01:55:32 except (ValueError, RuntimeError): 01:55:32 # If the comparison raises, use 'is' as fallback. 01:55:32 cache_hit = request_cache_key is cache_key 01:55:32 01:55:32 if cache_hit: 01:55:32 if self.cached_result[2] is not None: 01:55:32 exc, exc_tb = self.cached_result[2] 01:55:32 raise exc.with_traceback(exc_tb) 01:55:32 else: 01:55:32 return self.cached_result[0] 01:55:32 # We have a previous but differently parametrized fixture instance 01:55:32 # so we need to tear it down before creating a new one. 01:55:32 self.finish(request) 01:55:32 assert self.cached_result is None 01:55:32 01:55:32 # Add finalizer to requested fixtures we saved previously. 01:55:32 # We make sure to do this after checking for cached value to avoid 01:55:32 # adding our finalizer multiple times. (#12135) 01:55:32 finalizer = functools.partial(self.finish, request=request) 01:55:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:32 parent_fixture.addfinalizer(finalizer) 01:55:32 01:55:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:32 # which is executed last. 01:55:32 > assert not self._finalizers 01:55:32 ^^^^^^^^^^^^^^^^^^^^ 01:55:32 E AssertionError 01:55:32 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:32 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 01:55:32 01:55:32 cls = 01:55:32 func = . at 0x7ff27ef73ec0> 01:55:32 when = 'setup' 01:55:32 reraise = (, ) 01:55:32 01:55:32 @classmethod 01:55:32 def from_call( 01:55:32 cls, 01:55:32 func: Callable[[], TResult], 01:55:32 when: Literal["collect", "setup", "call", "teardown"], 01:55:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:32 ) -> CallInfo[TResult]: 01:55:32 """Call func, wrapping the result in a CallInfo. 01:55:32 01:55:32 :param func: 01:55:32 The function to call. Called without arguments. 01:55:32 :type func: Callable[[], _pytest.runner.TResult] 01:55:32 :param when: 01:55:32 The phase in which the function is called. 01:55:32 :param reraise: 01:55:32 Exception or exceptions that shall propagate if raised by the 01:55:32 function, instead of being wrapped in the CallInfo. 01:55:32 """ 01:55:32 excinfo = None 01:55:32 instant = timing.Instant() 01:55:32 try: 01:55:32 > result: TResult | None = func() 01:55:32 ^^^^^^ 01:55:32 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:32 lambda: runtest_hook(item=item, **kwds), 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:32 yield 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:32 return (yield) 01:55:32 ^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:32 item.session._setupstate.setup(item) 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:32 col.setup() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:32 super().setup() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:32 self._request._fillfixtures() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:32 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:32 fixturedef = self._get_active_fixturedef(argname) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:32 fixturedef.execute(request=subrequest) 01:55:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:32 01:55:32 self = 01:55:32 request = > 01:55:32 01:55:32 def execute(self, request: SubRequest) -> FixtureValue: 01:55:32 """Return the value of this fixture, executing it if not cached.""" 01:55:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:32 # This needs to be done before checking if we have a cached value, since 01:55:32 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:32 # parametrization, they finalize themselves and fixtures depending on it 01:55:32 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:32 # See #4871 01:55:32 requested_fixtures_that_should_finalize_us = [] 01:55:32 for argname in self.argnames: 01:55:32 fixturedef = request._get_active_fixturedef(argname) 01:55:32 # Saves requested fixtures in a list so we later can add our finalizer 01:55:32 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:32 # down first. This is generally handled by SetupState, but still currently 01:55:32 # needed when this fixture is not parametrized but depends on a parametrized 01:55:32 # fixture. 01:55:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:32 01:55:32 # Check for (and return) cached value/exception. 01:55:32 if self.cached_result is not None: 01:55:32 request_cache_key = self.cache_key(request) 01:55:32 cache_key = self.cached_result[1] 01:55:32 try: 01:55:32 # Attempt to make a normal == check: this might fail for objects 01:55:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:32 cache_hit = bool(request_cache_key == cache_key) 01:55:32 except (ValueError, RuntimeError): 01:55:32 # If the comparison raises, use 'is' as fallback. 01:55:32 cache_hit = request_cache_key is cache_key 01:55:32 01:55:32 if cache_hit: 01:55:32 if self.cached_result[2] is not None: 01:55:32 exc, exc_tb = self.cached_result[2] 01:55:32 raise exc.with_traceback(exc_tb) 01:55:32 else: 01:55:32 return self.cached_result[0] 01:55:32 # We have a previous but differently parametrized fixture instance 01:55:32 # so we need to tear it down before creating a new one. 01:55:32 self.finish(request) 01:55:32 assert self.cached_result is None 01:55:32 01:55:32 # Add finalizer to requested fixtures we saved previously. 01:55:32 # We make sure to do this after checking for cached value to avoid 01:55:32 # adding our finalizer multiple times. (#12135) 01:55:32 finalizer = functools.partial(self.finish, request=request) 01:55:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:32 parent_fixture.addfinalizer(finalizer) 01:55:32 01:55:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:32 # which is executed last. 01:55:32 > assert not self._finalizers 01:55:32 ^^^^^^^^^^^^^^^^^^^^ 01:55:32 E AssertionError 01:55:32 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:32 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 01:55:32 01:55:32 cls = 01:55:32 func = . at 0x7ff280713600> 01:55:32 when = 'setup' 01:55:32 reraise = (, ) 01:55:32 01:55:32 @classmethod 01:55:32 def from_call( 01:55:32 cls, 01:55:32 func: Callable[[], TResult], 01:55:32 when: Literal["collect", "setup", "call", "teardown"], 01:55:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:32 ) -> CallInfo[TResult]: 01:55:32 """Call func, wrapping the result in a CallInfo. 01:55:32 01:55:32 :param func: 01:55:32 The function to call. Called without arguments. 01:55:32 :type func: Callable[[], _pytest.runner.TResult] 01:55:32 :param when: 01:55:32 The phase in which the function is called. 01:55:32 :param reraise: 01:55:32 Exception or exceptions that shall propagate if raised by the 01:55:32 function, instead of being wrapped in the CallInfo. 01:55:32 """ 01:55:32 excinfo = None 01:55:32 instant = timing.Instant() 01:55:32 try: 01:55:32 > result: TResult | None = func() 01:55:32 ^^^^^^ 01:55:32 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:32 lambda: runtest_hook(item=item, **kwds), 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:32 yield 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:32 return (yield) 01:55:32 ^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:32 item.session._setupstate.setup(item) 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:32 col.setup() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:32 super().setup() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:32 self._request._fillfixtures() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:32 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:32 fixturedef = self._get_active_fixturedef(argname) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:32 fixturedef.execute(request=subrequest) 01:55:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:32 01:55:32 self = 01:55:32 request = > 01:55:32 01:55:32 def execute(self, request: SubRequest) -> FixtureValue: 01:55:32 """Return the value of this fixture, executing it if not cached.""" 01:55:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:32 # This needs to be done before checking if we have a cached value, since 01:55:32 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:32 # parametrization, they finalize themselves and fixtures depending on it 01:55:32 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:32 # See #4871 01:55:32 requested_fixtures_that_should_finalize_us = [] 01:55:32 for argname in self.argnames: 01:55:32 fixturedef = request._get_active_fixturedef(argname) 01:55:32 # Saves requested fixtures in a list so we later can add our finalizer 01:55:32 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:32 # down first. This is generally handled by SetupState, but still currently 01:55:32 # needed when this fixture is not parametrized but depends on a parametrized 01:55:32 # fixture. 01:55:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:32 01:55:32 # Check for (and return) cached value/exception. 01:55:32 if self.cached_result is not None: 01:55:32 request_cache_key = self.cache_key(request) 01:55:32 cache_key = self.cached_result[1] 01:55:32 try: 01:55:32 # Attempt to make a normal == check: this might fail for objects 01:55:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:32 cache_hit = bool(request_cache_key == cache_key) 01:55:32 except (ValueError, RuntimeError): 01:55:32 # If the comparison raises, use 'is' as fallback. 01:55:32 cache_hit = request_cache_key is cache_key 01:55:32 01:55:32 if cache_hit: 01:55:32 if self.cached_result[2] is not None: 01:55:32 exc, exc_tb = self.cached_result[2] 01:55:32 raise exc.with_traceback(exc_tb) 01:55:32 else: 01:55:32 return self.cached_result[0] 01:55:32 # We have a previous but differently parametrized fixture instance 01:55:32 # so we need to tear it down before creating a new one. 01:55:32 self.finish(request) 01:55:32 assert self.cached_result is None 01:55:32 01:55:32 # Add finalizer to requested fixtures we saved previously. 01:55:32 # We make sure to do this after checking for cached value to avoid 01:55:32 # adding our finalizer multiple times. (#12135) 01:55:32 finalizer = functools.partial(self.finish, request=request) 01:55:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:32 parent_fixture.addfinalizer(finalizer) 01:55:32 01:55:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:32 # which is executed last. 01:55:32 > assert not self._finalizers 01:55:32 ^^^^^^^^^^^^^^^^^^^^ 01:55:32 E AssertionError 01:55:32 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:32 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 01:55:32 01:55:32 cls = 01:55:32 func = . at 0x7ff27ef4b740> 01:55:32 when = 'setup' 01:55:32 reraise = (, ) 01:55:32 01:55:32 @classmethod 01:55:32 def from_call( 01:55:32 cls, 01:55:32 func: Callable[[], TResult], 01:55:32 when: Literal["collect", "setup", "call", "teardown"], 01:55:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:32 ) -> CallInfo[TResult]: 01:55:32 """Call func, wrapping the result in a CallInfo. 01:55:32 01:55:32 :param func: 01:55:32 The function to call. Called without arguments. 01:55:32 :type func: Callable[[], _pytest.runner.TResult] 01:55:32 :param when: 01:55:32 The phase in which the function is called. 01:55:32 :param reraise: 01:55:32 Exception or exceptions that shall propagate if raised by the 01:55:32 function, instead of being wrapped in the CallInfo. 01:55:32 """ 01:55:32 excinfo = None 01:55:32 instant = timing.Instant() 01:55:32 try: 01:55:32 > result: TResult | None = func() 01:55:32 ^^^^^^ 01:55:32 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:32 lambda: runtest_hook(item=item, **kwds), 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:32 yield 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:32 return (yield) 01:55:32 ^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:32 item.session._setupstate.setup(item) 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:32 col.setup() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:32 super().setup() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:32 self._request._fillfixtures() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:32 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:32 fixturedef = self._get_active_fixturedef(argname) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:32 fixturedef.execute(request=subrequest) 01:55:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:32 01:55:32 self = 01:55:32 request = > 01:55:32 01:55:32 def execute(self, request: SubRequest) -> FixtureValue: 01:55:32 """Return the value of this fixture, executing it if not cached.""" 01:55:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:32 # This needs to be done before checking if we have a cached value, since 01:55:32 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:32 # parametrization, they finalize themselves and fixtures depending on it 01:55:32 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:32 # See #4871 01:55:32 requested_fixtures_that_should_finalize_us = [] 01:55:32 for argname in self.argnames: 01:55:32 fixturedef = request._get_active_fixturedef(argname) 01:55:32 # Saves requested fixtures in a list so we later can add our finalizer 01:55:32 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:32 # down first. This is generally handled by SetupState, but still currently 01:55:32 # needed when this fixture is not parametrized but depends on a parametrized 01:55:32 # fixture. 01:55:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:32 01:55:32 # Check for (and return) cached value/exception. 01:55:32 if self.cached_result is not None: 01:55:32 request_cache_key = self.cache_key(request) 01:55:32 cache_key = self.cached_result[1] 01:55:32 try: 01:55:32 # Attempt to make a normal == check: this might fail for objects 01:55:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:32 cache_hit = bool(request_cache_key == cache_key) 01:55:32 except (ValueError, RuntimeError): 01:55:32 # If the comparison raises, use 'is' as fallback. 01:55:32 cache_hit = request_cache_key is cache_key 01:55:32 01:55:32 if cache_hit: 01:55:32 if self.cached_result[2] is not None: 01:55:32 exc, exc_tb = self.cached_result[2] 01:55:32 raise exc.with_traceback(exc_tb) 01:55:32 else: 01:55:32 return self.cached_result[0] 01:55:32 # We have a previous but differently parametrized fixture instance 01:55:32 # so we need to tear it down before creating a new one. 01:55:32 self.finish(request) 01:55:32 assert self.cached_result is None 01:55:32 01:55:32 # Add finalizer to requested fixtures we saved previously. 01:55:32 # We make sure to do this after checking for cached value to avoid 01:55:32 # adding our finalizer multiple times. (#12135) 01:55:32 finalizer = functools.partial(self.finish, request=request) 01:55:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:32 parent_fixture.addfinalizer(finalizer) 01:55:32 01:55:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:32 # which is executed last. 01:55:32 > assert not self._finalizers 01:55:32 ^^^^^^^^^^^^^^^^^^^^ 01:55:32 E AssertionError 01:55:32 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:32 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 01:55:32 01:55:32 cls = 01:55:32 func = . at 0x7ff28165b420> 01:55:32 when = 'setup' 01:55:32 reraise = (, ) 01:55:32 01:55:32 @classmethod 01:55:32 def from_call( 01:55:32 cls, 01:55:32 func: Callable[[], TResult], 01:55:32 when: Literal["collect", "setup", "call", "teardown"], 01:55:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:32 ) -> CallInfo[TResult]: 01:55:32 """Call func, wrapping the result in a CallInfo. 01:55:32 01:55:32 :param func: 01:55:32 The function to call. Called without arguments. 01:55:32 :type func: Callable[[], _pytest.runner.TResult] 01:55:32 :param when: 01:55:32 The phase in which the function is called. 01:55:32 :param reraise: 01:55:32 Exception or exceptions that shall propagate if raised by the 01:55:32 function, instead of being wrapped in the CallInfo. 01:55:32 """ 01:55:32 excinfo = None 01:55:32 instant = timing.Instant() 01:55:32 try: 01:55:32 > result: TResult | None = func() 01:55:32 ^^^^^^ 01:55:32 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:32 lambda: runtest_hook(item=item, **kwds), 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:32 yield 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:32 return (yield) 01:55:32 ^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:32 item.session._setupstate.setup(item) 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:32 col.setup() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:32 super().setup() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:32 self._request._fillfixtures() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:32 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:32 fixturedef = self._get_active_fixturedef(argname) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:32 fixturedef.execute(request=subrequest) 01:55:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:32 01:55:32 self = 01:55:32 request = > 01:55:32 01:55:32 def execute(self, request: SubRequest) -> FixtureValue: 01:55:32 """Return the value of this fixture, executing it if not cached.""" 01:55:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:32 # This needs to be done before checking if we have a cached value, since 01:55:32 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:32 # parametrization, they finalize themselves and fixtures depending on it 01:55:32 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:32 # See #4871 01:55:32 requested_fixtures_that_should_finalize_us = [] 01:55:32 for argname in self.argnames: 01:55:32 fixturedef = request._get_active_fixturedef(argname) 01:55:32 # Saves requested fixtures in a list so we later can add our finalizer 01:55:32 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:32 # down first. This is generally handled by SetupState, but still currently 01:55:32 # needed when this fixture is not parametrized but depends on a parametrized 01:55:32 # fixture. 01:55:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:32 01:55:32 # Check for (and return) cached value/exception. 01:55:32 if self.cached_result is not None: 01:55:32 request_cache_key = self.cache_key(request) 01:55:32 cache_key = self.cached_result[1] 01:55:32 try: 01:55:32 # Attempt to make a normal == check: this might fail for objects 01:55:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:32 cache_hit = bool(request_cache_key == cache_key) 01:55:32 except (ValueError, RuntimeError): 01:55:32 # If the comparison raises, use 'is' as fallback. 01:55:32 cache_hit = request_cache_key is cache_key 01:55:32 01:55:32 if cache_hit: 01:55:32 if self.cached_result[2] is not None: 01:55:32 exc, exc_tb = self.cached_result[2] 01:55:32 raise exc.with_traceback(exc_tb) 01:55:32 else: 01:55:32 return self.cached_result[0] 01:55:32 # We have a previous but differently parametrized fixture instance 01:55:32 # so we need to tear it down before creating a new one. 01:55:32 self.finish(request) 01:55:32 assert self.cached_result is None 01:55:32 01:55:32 # Add finalizer to requested fixtures we saved previously. 01:55:32 # We make sure to do this after checking for cached value to avoid 01:55:32 # adding our finalizer multiple times. (#12135) 01:55:32 finalizer = functools.partial(self.finish, request=request) 01:55:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:32 parent_fixture.addfinalizer(finalizer) 01:55:32 01:55:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:32 # which is executed last. 01:55:32 > assert not self._finalizers 01:55:32 ^^^^^^^^^^^^^^^^^^^^ 01:55:32 E AssertionError 01:55:32 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:32 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 01:55:32 01:55:32 cls = 01:55:32 func = . at 0x7ff280713600> 01:55:32 when = 'setup' 01:55:32 reraise = (, ) 01:55:32 01:55:32 @classmethod 01:55:32 def from_call( 01:55:32 cls, 01:55:32 func: Callable[[], TResult], 01:55:32 when: Literal["collect", "setup", "call", "teardown"], 01:55:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:32 ) -> CallInfo[TResult]: 01:55:32 """Call func, wrapping the result in a CallInfo. 01:55:32 01:55:32 :param func: 01:55:32 The function to call. Called without arguments. 01:55:32 :type func: Callable[[], _pytest.runner.TResult] 01:55:32 :param when: 01:55:32 The phase in which the function is called. 01:55:32 :param reraise: 01:55:32 Exception or exceptions that shall propagate if raised by the 01:55:32 function, instead of being wrapped in the CallInfo. 01:55:32 """ 01:55:32 excinfo = None 01:55:32 instant = timing.Instant() 01:55:32 try: 01:55:32 > result: TResult | None = func() 01:55:32 ^^^^^^ 01:55:32 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:32 lambda: runtest_hook(item=item, **kwds), 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:32 yield 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:32 return (yield) 01:55:32 ^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:32 item.session._setupstate.setup(item) 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:32 col.setup() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:32 super().setup() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:32 self._request._fillfixtures() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:32 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:32 fixturedef = self._get_active_fixturedef(argname) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:32 fixturedef.execute(request=subrequest) 01:55:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:32 01:55:32 self = 01:55:32 request = > 01:55:32 01:55:32 def execute(self, request: SubRequest) -> FixtureValue: 01:55:32 """Return the value of this fixture, executing it if not cached.""" 01:55:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:32 # This needs to be done before checking if we have a cached value, since 01:55:32 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:32 # parametrization, they finalize themselves and fixtures depending on it 01:55:32 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:32 # See #4871 01:55:32 requested_fixtures_that_should_finalize_us = [] 01:55:32 for argname in self.argnames: 01:55:32 fixturedef = request._get_active_fixturedef(argname) 01:55:32 # Saves requested fixtures in a list so we later can add our finalizer 01:55:32 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:32 # down first. This is generally handled by SetupState, but still currently 01:55:32 # needed when this fixture is not parametrized but depends on a parametrized 01:55:32 # fixture. 01:55:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:32 01:55:32 # Check for (and return) cached value/exception. 01:55:32 if self.cached_result is not None: 01:55:32 request_cache_key = self.cache_key(request) 01:55:32 cache_key = self.cached_result[1] 01:55:32 try: 01:55:32 # Attempt to make a normal == check: this might fail for objects 01:55:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:32 cache_hit = bool(request_cache_key == cache_key) 01:55:32 except (ValueError, RuntimeError): 01:55:32 # If the comparison raises, use 'is' as fallback. 01:55:32 cache_hit = request_cache_key is cache_key 01:55:32 01:55:32 if cache_hit: 01:55:32 if self.cached_result[2] is not None: 01:55:32 exc, exc_tb = self.cached_result[2] 01:55:32 raise exc.with_traceback(exc_tb) 01:55:32 else: 01:55:32 return self.cached_result[0] 01:55:32 # We have a previous but differently parametrized fixture instance 01:55:32 # so we need to tear it down before creating a new one. 01:55:32 self.finish(request) 01:55:32 assert self.cached_result is None 01:55:32 01:55:32 # Add finalizer to requested fixtures we saved previously. 01:55:32 # We make sure to do this after checking for cached value to avoid 01:55:32 # adding our finalizer multiple times. (#12135) 01:55:32 finalizer = functools.partial(self.finish, request=request) 01:55:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:32 parent_fixture.addfinalizer(finalizer) 01:55:32 01:55:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:32 # which is executed last. 01:55:32 > assert not self._finalizers 01:55:32 ^^^^^^^^^^^^^^^^^^^^ 01:55:32 E AssertionError 01:55:32 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:32 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 01:55:32 01:55:32 cls = 01:55:32 func = . at 0x7ff27ef73880> 01:55:32 when = 'setup' 01:55:32 reraise = (, ) 01:55:32 01:55:32 @classmethod 01:55:32 def from_call( 01:55:32 cls, 01:55:32 func: Callable[[], TResult], 01:55:32 when: Literal["collect", "setup", "call", "teardown"], 01:55:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:32 ) -> CallInfo[TResult]: 01:55:32 """Call func, wrapping the result in a CallInfo. 01:55:32 01:55:32 :param func: 01:55:32 The function to call. Called without arguments. 01:55:32 :type func: Callable[[], _pytest.runner.TResult] 01:55:32 :param when: 01:55:32 The phase in which the function is called. 01:55:32 :param reraise: 01:55:32 Exception or exceptions that shall propagate if raised by the 01:55:32 function, instead of being wrapped in the CallInfo. 01:55:32 """ 01:55:32 excinfo = None 01:55:32 instant = timing.Instant() 01:55:32 try: 01:55:32 > result: TResult | None = func() 01:55:32 ^^^^^^ 01:55:32 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:32 lambda: runtest_hook(item=item, **kwds), 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:32 yield 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:32 return (yield) 01:55:32 ^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:32 item.session._setupstate.setup(item) 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:32 col.setup() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:32 super().setup() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:32 self._request._fillfixtures() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:32 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:32 fixturedef = self._get_active_fixturedef(argname) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:32 fixturedef.execute(request=subrequest) 01:55:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:32 01:55:32 self = 01:55:32 request = > 01:55:32 01:55:32 def execute(self, request: SubRequest) -> FixtureValue: 01:55:32 """Return the value of this fixture, executing it if not cached.""" 01:55:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:32 # This needs to be done before checking if we have a cached value, since 01:55:32 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:32 # parametrization, they finalize themselves and fixtures depending on it 01:55:32 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:32 # See #4871 01:55:32 requested_fixtures_that_should_finalize_us = [] 01:55:32 for argname in self.argnames: 01:55:32 fixturedef = request._get_active_fixturedef(argname) 01:55:32 # Saves requested fixtures in a list so we later can add our finalizer 01:55:32 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:32 # down first. This is generally handled by SetupState, but still currently 01:55:32 # needed when this fixture is not parametrized but depends on a parametrized 01:55:32 # fixture. 01:55:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:32 01:55:32 # Check for (and return) cached value/exception. 01:55:32 if self.cached_result is not None: 01:55:32 request_cache_key = self.cache_key(request) 01:55:32 cache_key = self.cached_result[1] 01:55:32 try: 01:55:32 # Attempt to make a normal == check: this might fail for objects 01:55:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:32 cache_hit = bool(request_cache_key == cache_key) 01:55:32 except (ValueError, RuntimeError): 01:55:32 # If the comparison raises, use 'is' as fallback. 01:55:32 cache_hit = request_cache_key is cache_key 01:55:32 01:55:32 if cache_hit: 01:55:32 if self.cached_result[2] is not None: 01:55:32 exc, exc_tb = self.cached_result[2] 01:55:32 raise exc.with_traceback(exc_tb) 01:55:32 else: 01:55:32 return self.cached_result[0] 01:55:32 # We have a previous but differently parametrized fixture instance 01:55:32 # so we need to tear it down before creating a new one. 01:55:32 self.finish(request) 01:55:32 assert self.cached_result is None 01:55:32 01:55:32 # Add finalizer to requested fixtures we saved previously. 01:55:32 # We make sure to do this after checking for cached value to avoid 01:55:32 # adding our finalizer multiple times. (#12135) 01:55:32 finalizer = functools.partial(self.finish, request=request) 01:55:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:32 parent_fixture.addfinalizer(finalizer) 01:55:32 01:55:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:32 # which is executed last. 01:55:32 > assert not self._finalizers 01:55:32 ^^^^^^^^^^^^^^^^^^^^ 01:55:32 E AssertionError 01:55:32 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:32 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 01:55:32 01:55:32 cls = 01:55:32 func = . at 0x7ff27ef736a0> 01:55:32 when = 'setup' 01:55:32 reraise = (, ) 01:55:32 01:55:32 @classmethod 01:55:32 def from_call( 01:55:32 cls, 01:55:32 func: Callable[[], TResult], 01:55:32 when: Literal["collect", "setup", "call", "teardown"], 01:55:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:32 ) -> CallInfo[TResult]: 01:55:32 """Call func, wrapping the result in a CallInfo. 01:55:32 01:55:32 :param func: 01:55:32 The function to call. Called without arguments. 01:55:32 :type func: Callable[[], _pytest.runner.TResult] 01:55:32 :param when: 01:55:32 The phase in which the function is called. 01:55:32 :param reraise: 01:55:32 Exception or exceptions that shall propagate if raised by the 01:55:32 function, instead of being wrapped in the CallInfo. 01:55:32 """ 01:55:32 excinfo = None 01:55:32 instant = timing.Instant() 01:55:32 try: 01:55:32 > result: TResult | None = func() 01:55:32 ^^^^^^ 01:55:32 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:32 lambda: runtest_hook(item=item, **kwds), 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:32 yield 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:32 return (yield) 01:55:32 ^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:32 item.session._setupstate.setup(item) 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:32 col.setup() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:32 super().setup() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:32 self._request._fillfixtures() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:32 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:32 fixturedef = self._get_active_fixturedef(argname) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:32 fixturedef.execute(request=subrequest) 01:55:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:32 01:55:32 self = 01:55:32 request = > 01:55:32 01:55:32 def execute(self, request: SubRequest) -> FixtureValue: 01:55:32 """Return the value of this fixture, executing it if not cached.""" 01:55:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:32 # This needs to be done before checking if we have a cached value, since 01:55:32 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:32 # parametrization, they finalize themselves and fixtures depending on it 01:55:32 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:32 # See #4871 01:55:32 requested_fixtures_that_should_finalize_us = [] 01:55:32 for argname in self.argnames: 01:55:32 fixturedef = request._get_active_fixturedef(argname) 01:55:32 # Saves requested fixtures in a list so we later can add our finalizer 01:55:32 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:32 # down first. This is generally handled by SetupState, but still currently 01:55:32 # needed when this fixture is not parametrized but depends on a parametrized 01:55:32 # fixture. 01:55:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:32 01:55:32 # Check for (and return) cached value/exception. 01:55:32 if self.cached_result is not None: 01:55:32 request_cache_key = self.cache_key(request) 01:55:32 cache_key = self.cached_result[1] 01:55:32 try: 01:55:32 # Attempt to make a normal == check: this might fail for objects 01:55:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:32 cache_hit = bool(request_cache_key == cache_key) 01:55:32 except (ValueError, RuntimeError): 01:55:32 # If the comparison raises, use 'is' as fallback. 01:55:32 cache_hit = request_cache_key is cache_key 01:55:32 01:55:32 if cache_hit: 01:55:32 if self.cached_result[2] is not None: 01:55:32 exc, exc_tb = self.cached_result[2] 01:55:32 raise exc.with_traceback(exc_tb) 01:55:32 else: 01:55:32 return self.cached_result[0] 01:55:32 # We have a previous but differently parametrized fixture instance 01:55:32 # so we need to tear it down before creating a new one. 01:55:32 self.finish(request) 01:55:32 assert self.cached_result is None 01:55:32 01:55:32 # Add finalizer to requested fixtures we saved previously. 01:55:32 # We make sure to do this after checking for cached value to avoid 01:55:32 # adding our finalizer multiple times. (#12135) 01:55:32 finalizer = functools.partial(self.finish, request=request) 01:55:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:32 parent_fixture.addfinalizer(finalizer) 01:55:32 01:55:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:32 # which is executed last. 01:55:32 > assert not self._finalizers 01:55:32 ^^^^^^^^^^^^^^^^^^^^ 01:55:32 E AssertionError 01:55:32 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:32 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 01:55:32 01:55:32 cls = 01:55:32 func = . at 0x7ff27ef73600> 01:55:32 when = 'setup' 01:55:32 reraise = (, ) 01:55:32 01:55:32 @classmethod 01:55:32 def from_call( 01:55:32 cls, 01:55:32 func: Callable[[], TResult], 01:55:32 when: Literal["collect", "setup", "call", "teardown"], 01:55:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:32 ) -> CallInfo[TResult]: 01:55:32 """Call func, wrapping the result in a CallInfo. 01:55:32 01:55:32 :param func: 01:55:32 The function to call. Called without arguments. 01:55:32 :type func: Callable[[], _pytest.runner.TResult] 01:55:32 :param when: 01:55:32 The phase in which the function is called. 01:55:32 :param reraise: 01:55:32 Exception or exceptions that shall propagate if raised by the 01:55:32 function, instead of being wrapped in the CallInfo. 01:55:32 """ 01:55:32 excinfo = None 01:55:32 instant = timing.Instant() 01:55:32 try: 01:55:32 > result: TResult | None = func() 01:55:32 ^^^^^^ 01:55:32 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:32 lambda: runtest_hook(item=item, **kwds), 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:32 yield 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:32 return (yield) 01:55:32 ^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:32 item.session._setupstate.setup(item) 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:32 col.setup() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:32 super().setup() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:32 self._request._fillfixtures() 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:32 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:32 fixturedef = self._get_active_fixturedef(argname) 01:55:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:32 fixturedef.execute(request=subrequest) 01:55:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:32 01:55:32 self = 01:55:32 Erequest = > 01:55:32 01:55:32 def execute(self, request: SubRequest) -> FixtureValue: 01:55:32 """Return the value of this fixture, executing it if not cached.""" 01:55:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:32 # This needs to be done before checking if we have a cached value, since 01:55:32 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:32 # parametrization, they finalize themselves and fixtures depending on it 01:55:32 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:32 # See #4871 01:55:32 requested_fixtures_that_should_finalize_us = [] 01:55:32 for argname in self.argnames: 01:55:32 fixturedef = request._get_active_fixturedef(argname) 01:55:32 # Saves requested fixtures in a list so we later can add our finalizer 01:55:32 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:32 # down first. This is generally handled by SetupState, but still currently 01:55:32 # needed when this fixture is not parametrized but depends on a parametrized 01:55:32 # fixture. 01:55:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:32 01:55:32 # Check for (and return) cached value/exception. 01:55:32 if self.cached_result is not None: 01:55:32 request_cache_key = self.cache_key(request) 01:55:32 cache_key = self.cached_result[1] 01:55:32 try: 01:55:32 # Attempt to make a normal == check: this might fail for objects 01:55:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:32 cache_hit = bool(request_cache_key == cache_key) 01:55:32 except (ValueError, RuntimeError): 01:55:32 # If the comparison raises, use 'is' as fallback. 01:55:32 cache_hit = request_cache_key is cache_key 01:55:32 01:55:32 if cache_hit: 01:55:32 if self.cached_result[2] is not None: 01:55:32 exc, exc_tb = self.cached_result[2] 01:55:32 raise exc.with_traceback(exc_tb) 01:55:32 else: 01:55:32 return self.cached_result[0] 01:55:32 # We have a previous but differently parametrized fixture instance 01:55:32 # so we need to tear it down before creating a new one. 01:55:32 self.finish(request) 01:55:32 assert self.cached_result is None 01:55:32 01:55:32 # Add finalizer to requested fixtures we saved previously. 01:55:32 # We make sure to do this after checking for cached value to avoid 01:55:32 # adding our finalizer multiple times. (#12135) 01:55:32 finalizer = functools.partial(self.finish, request=request) 01:55:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:32 parent_fixture.addfinalizer(finalizer) 01:55:32 01:55:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:32 # which is executed last. 01:55:32 > assert not self._finalizers 01:55:32 ^^^^^^^^^^^^^^^^^^^^ 01:55:32 E AssertionError 01:55:32 01:55:32 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:32 =========================== short test summary info ============================ 01:55:32 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 01:55:32 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catalog_input_insertion 01:55:32 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 01:55:32 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 01:55:32 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 01:55:32 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 01:55:32 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 01:55:32 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 01:55:32 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 01:55:32 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 01:55:32 10 errors in 101.95s (0:01:41) 01:55:32 tests200: exit 1 (102.22 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 pid=4407 01:55:32 Etests200: FAIL ✖ in 1 minute 51.66 seconds 01:55:32 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 01:55:32 EEEEEEEEEEEEEEEEEEEEEEEE [100%] 01:55:36 ==================================== ERRORS ==================================== 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 01:55:36 01:55:36 cls = 01:55:36 01:55:36 @classmethod 01:55:36 def setUpClass(cls): 01:55:36 > cls.processes = test_utils.start_tpce() 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 01:55:36 transportpce_tests/2.2.1/test01_portmapping.py:33: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 def start_tpce(): 01:55:36 if 'NO_ODL_STARTUP' in os.environ: 01:55:36 print('No OpenDaylight instance to start!') 01:55:36 return [] 01:55:36 print('starting OpenDaylight...') 01:55:36 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 01:55:36 process = start_lighty() 01:55:36 else: 01:55:36 process = start_karaf() 01:55:36 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 01:55:36 print('OpenDaylight started !') 01:55:36 else: 01:55:36 print('OpenDaylight failed to start !') 01:55:36 shutdown_process(process) 01:55:36 for pid in process_list: 01:55:36 shutdown_process(pid) 01:55:36 > sys.exit(1) 01:55:36 E SystemExit: 1 01:55:36 01:55:36 transportpce_tests/common/test_utils.py:234: SystemExit 01:55:36 ---------------------------- Captured stdout setup ----------------------------- 01:55:36 starting OpenDaylight... 01:55:36 starting KARAF (karaf221) TransportPCE build... 01:55:36 Pattern not found after 100 seconds! OpenDaylight failed to start ! 01:55:36 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb47123100> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb471232e0> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb4982b240> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb48a3b060> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb47123100> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb48a3b060> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb47121120> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb47162d40> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb48a3b060> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb47121120> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb47163f60> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb48a3b060> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb471639c0> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb47121120> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb48a3b060> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb47162520> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb471639c0> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb47163d80> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb47121120> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb48a3b060> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb471220c0> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb47121f80> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb471639c0> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb47121f80> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb48a3b060> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb471639c0> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb48a3b060> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb471c84a0> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb471639c0> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb471c9800> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb471c8540> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb471639c0> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb471c96c0> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 01:55:36 01:55:36 cls = 01:55:36 func = . at 0x7ffb471639c0> 01:55:36 when = 'setup' 01:55:36 reraise = (, ) 01:55:36 01:55:36 @classmethod 01:55:36 def from_call( 01:55:36 cls, 01:55:36 func: Callable[[], TResult], 01:55:36 when: Literal["collect", "setup", "call", "teardown"], 01:55:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:55:36 ) -> CallInfo[TResult]: 01:55:36 """Call func, wrapping the result in a CallInfo. 01:55:36 01:55:36 :param func: 01:55:36 The function to call. Called without arguments. 01:55:36 :type func: Callable[[], _pytest.runner.TResult] 01:55:36 :param when: 01:55:36 The phase in which the function is called. 01:55:36 :param reraise: 01:55:36 Exception or exceptions that shall propagate if raised by the 01:55:36 function, instead of being wrapped in the CallInfo. 01:55:36 """ 01:55:36 excinfo = None 01:55:36 instant = timing.Instant() 01:55:36 try: 01:55:36 > result: TResult | None = func() 01:55:36 ^^^^^^ 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:55:36 lambda: runtest_hook(item=item, **kwds), 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:55:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:55:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:55:36 yield 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:55:36 return (yield) 01:55:36 ^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:55:36 item.session._setupstate.setup(item) 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:55:36 col.setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:55:36 super().setup() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:55:36 self._request._fillfixtures() 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:55:36 item.funcargs[argname] = self.getfixturevalue(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:55:36 fixturedef = self._get_active_fixturedef(argname) 01:55:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:55:36 fixturedef.execute(request=subrequest) 01:55:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:55:36 01:55:36 self = 01:55:36 request = > 01:55:36 01:55:36 def execute(self, request: SubRequest) -> FixtureValue: 01:55:36 """Return the value of this fixture, executing it if not cached.""" 01:55:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:55:36 # This needs to be done before checking if we have a cached value, since 01:55:36 # if a dependent fixture has their cache invalidated, e.g. due to 01:55:36 # parametrization, they finalize themselves and fixtures depending on it 01:55:36 # (which will likely include this fixture) setting `self.cached_result = None`. 01:55:36 # See #4871 01:55:36 requested_fixtures_that_should_finalize_us = [] 01:55:36 for argname in self.argnames: 01:55:36 fixturedef = request._get_active_fixturedef(argname) 01:55:36 # Saves requested fixtures in a list so we later can add our finalizer 01:55:36 # to them, ensuring that if a requested fixture gets torn down we get torn 01:55:36 # down first. This is generally handled by SetupState, but still currently 01:55:36 # needed when this fixture is not parametrized but depends on a parametrized 01:55:36 # fixture. 01:55:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:55:36 01:55:36 # Check for (and return) cached value/exception. 01:55:36 if self.cached_result is not None: 01:55:36 request_cache_key = self.cache_key(request) 01:55:36 cache_key = self.cached_result[1] 01:55:36 try: 01:55:36 # Attempt to make a normal == check: this might fail for objects 01:55:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:55:36 cache_hit = bool(request_cache_key == cache_key) 01:55:36 except (ValueError, RuntimeError): 01:55:36 # If the comparison raises, use 'is' as fallback. 01:55:36 cache_hit = request_cache_key is cache_key 01:55:36 01:55:36 if cache_hit: 01:55:36 if self.cached_result[2] is not None: 01:55:36 exc, exc_tb = self.cached_result[2] 01:55:36 raise exc.with_traceback(exc_tb) 01:55:36 else: 01:55:36 return self.cached_result[0] 01:55:36 # We have a previous but differently parametrized fixture instance 01:55:36 # so we need to tear it down before creating a new one. 01:55:36 self.finish(request) 01:55:36 assert self.cached_result is None 01:55:36 01:55:36 # Add finalizer to requested fixtures we saved previously. 01:55:36 # We make sure to do this after checking for cached value to avoid 01:55:36 # adding our finalizer multiple times. (#12135) 01:55:36 finalizer = functools.partial(self.finish, request=request) 01:55:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:55:36 parent_fixture.addfinalizer(finalizer) 01:55:36 01:55:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:55:36 # which is executed last. 01:55:36 > assert not self._finalizers 01:55:36 ^^^^^^^^^^^^^^^^^^^^ 01:55:36 E AssertionError 01:55:36 01:55:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:55:36 =========================== short test summary info ============================ 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 01:55:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 01:55:36 35 errors in 106.37s (0:01:46) 01:55:36 tests221: exit 1 (106.67 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 pid=4396 01:55:37 tests221: FAIL ✖ in 1 minute 56.06 seconds 01:55:37 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 01:55:38 tests71: freeze> python -m pip freeze --all 01:55:38 tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 01:55:38 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 01:55:38 using environment variables from ./karaf71.env 01:55:38 pytest -q transportpce_tests/7.1/test01_portmapping.py 01:55:43 tests_hybrid: freeze> python -m pip freeze --all 01:55:43 tests_hybrid: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 01:55:43 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid 01:55:43 using environment variables from ./karaf221.env 01:55:43 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 01:57:19 EEEEEEEEEEEE [100%] 01:57:21 ==================================== ERRORS ==================================== 01:57:21 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 01:57:21 01:57:21 cls = 01:57:21 01:57:21 @classmethod 01:57:21 def setUpClass(cls): 01:57:21 > cls.processes = test_utils.start_tpce() 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 01:57:21 transportpce_tests/7.1/test01_portmapping.py:32: 01:57:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:21 01:57:21 def start_tpce(): 01:57:21 if 'NO_ODL_STARTUP' in os.environ: 01:57:21 print('No OpenDaylight instance to start!') 01:57:21 return [] 01:57:21 print('starting OpenDaylight...') 01:57:21 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 01:57:21 process = start_lighty() 01:57:21 else: 01:57:21 process = start_karaf() 01:57:21 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 01:57:21 print('OpenDaylight started !') 01:57:21 else: 01:57:21 print('OpenDaylight failed to start !') 01:57:21 shutdown_process(process) 01:57:21 for pid in process_list: 01:57:21 shutdown_process(pid) 01:57:21 > sys.exit(1) 01:57:21 E SystemExit: 1 01:57:21 01:57:21 transportpce_tests/common/test_utils.py:234: SystemExit 01:57:21 ---------------------------- Captured stdout setup ----------------------------- 01:57:21 starting OpenDaylight... 01:57:21 starting KARAF (karaf71) TransportPCE build... 01:57:21 Pattern not found after 100 seconds! OpenDaylight failed to start ! 01:57:21 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 01:57:21 01:57:21 cls = 01:57:21 func = . at 0x7f100e2cb4c0> 01:57:21 when = 'setup' 01:57:21 reraise = (, ) 01:57:21 01:57:21 @classmethod 01:57:21 def from_call( 01:57:21 cls, 01:57:21 func: Callable[[], TResult], 01:57:21 when: Literal["collect", "setup", "call", "teardown"], 01:57:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:21 ) -> CallInfo[TResult]: 01:57:21 """Call func, wrapping the result in a CallInfo. 01:57:21 01:57:21 :param func: 01:57:21 The function to call. Called without arguments. 01:57:21 :type func: Callable[[], _pytest.runner.TResult] 01:57:21 :param when: 01:57:21 The phase in which the function is called. 01:57:21 :param reraise: 01:57:21 Exception or exceptions that shall propagate if raised by the 01:57:21 function, instead of being wrapped in the CallInfo. 01:57:21 """ 01:57:21 excinfo = None 01:57:21 instant = timing.Instant() 01:57:21 try: 01:57:21 > result: TResult | None = func() 01:57:21 ^^^^^^ 01:57:21 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:21 lambda: runtest_hook(item=item, **kwds), 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:21 yield 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:21 return (yield) 01:57:21 ^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:21 item.session._setupstate.setup(item) 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:21 col.setup() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:21 super().setup() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:21 self._request._fillfixtures() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:21 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:21 fixturedef = self._get_active_fixturedef(argname) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:21 fixturedef.execute(request=subrequest) 01:57:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:21 01:57:21 self = 01:57:21 request = > 01:57:21 01:57:21 def execute(self, request: SubRequest) -> FixtureValue: 01:57:21 """Return the value of this fixture, executing it if not cached.""" 01:57:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:21 # This needs to be done before checking if we have a cached value, since 01:57:21 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:21 # parametrization, they finalize themselves and fixtures depending on it 01:57:21 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:21 # See #4871 01:57:21 requested_fixtures_that_should_finalize_us = [] 01:57:21 for argname in self.argnames: 01:57:21 fixturedef = request._get_active_fixturedef(argname) 01:57:21 # Saves requested fixtures in a list so we later can add our finalizer 01:57:21 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:21 # down first. This is generally handled by SetupState, but still currently 01:57:21 # needed when this fixture is not parametrized but depends on a parametrized 01:57:21 # fixture. 01:57:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:21 01:57:21 # Check for (and return) cached value/exception. 01:57:21 if self.cached_result is not None: 01:57:21 request_cache_key = self.cache_key(request) 01:57:21 cache_key = self.cached_result[1] 01:57:21 try: 01:57:21 # Attempt to make a normal == check: this might fail for objects 01:57:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:21 cache_hit = bool(request_cache_key == cache_key) 01:57:21 except (ValueError, RuntimeError): 01:57:21 # If the comparison raises, use 'is' as fallback. 01:57:21 cache_hit = request_cache_key is cache_key 01:57:21 01:57:21 if cache_hit: 01:57:21 if self.cached_result[2] is not None: 01:57:21 exc, exc_tb = self.cached_result[2] 01:57:21 raise exc.with_traceback(exc_tb) 01:57:21 else: 01:57:21 return self.cached_result[0] 01:57:21 # We have a previous but differently parametrized fixture instance 01:57:21 # so we need to tear it down before creating a new one. 01:57:21 self.finish(request) 01:57:21 assert self.cached_result is None 01:57:21 01:57:21 # Add finalizer to requested fixtures we saved previously. 01:57:21 # We make sure to do this after checking for cached value to avoid 01:57:21 # adding our finalizer multiple times. (#12135) 01:57:21 finalizer = functools.partial(self.finish, request=request) 01:57:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:21 parent_fixture.addfinalizer(finalizer) 01:57:21 01:57:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:21 # which is executed last. 01:57:21 > assert not self._finalizers 01:57:21 ^^^^^^^^^^^^^^^^^^^^ 01:57:21 E AssertionError 01:57:21 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:21 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 01:57:21 01:57:21 cls = 01:57:21 func = . at 0x7f100bbc3a60> 01:57:21 when = 'setup' 01:57:21 reraise = (, ) 01:57:21 01:57:21 @classmethod 01:57:21 def from_call( 01:57:21 cls, 01:57:21 func: Callable[[], TResult], 01:57:21 when: Literal["collect", "setup", "call", "teardown"], 01:57:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:21 ) -> CallInfo[TResult]: 01:57:21 """Call func, wrapping the result in a CallInfo. 01:57:21 01:57:21 :param func: 01:57:21 The function to call. Called without arguments. 01:57:21 :type func: Callable[[], _pytest.runner.TResult] 01:57:21 :param when: 01:57:21 The phase in which the function is called. 01:57:21 :param reraise: 01:57:21 Exception or exceptions that shall propagate if raised by the 01:57:21 function, instead of being wrapped in the CallInfo. 01:57:21 """ 01:57:21 excinfo = None 01:57:21 instant = timing.Instant() 01:57:21 try: 01:57:21 > result: TResult | None = func() 01:57:21 ^^^^^^ 01:57:21 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:21 lambda: runtest_hook(item=item, **kwds), 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:21 yield 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:21 return (yield) 01:57:21 ^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:21 item.session._setupstate.setup(item) 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:21 col.setup() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:21 super().setup() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:21 self._request._fillfixtures() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:21 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:21 fixturedef = self._get_active_fixturedef(argname) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:21 fixturedef.execute(request=subrequest) 01:57:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:21 01:57:21 self = 01:57:21 request = > 01:57:21 01:57:21 def execute(self, request: SubRequest) -> FixtureValue: 01:57:21 """Return the value of this fixture, executing it if not cached.""" 01:57:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:21 # This needs to be done before checking if we have a cached value, since 01:57:21 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:21 # parametrization, they finalize themselves and fixtures depending on it 01:57:21 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:21 # See #4871 01:57:21 requested_fixtures_that_should_finalize_us = [] 01:57:21 for argname in self.argnames: 01:57:21 fixturedef = request._get_active_fixturedef(argname) 01:57:21 # Saves requested fixtures in a list so we later can add our finalizer 01:57:21 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:21 # down first. This is generally handled by SetupState, but still currently 01:57:21 # needed when this fixture is not parametrized but depends on a parametrized 01:57:21 # fixture. 01:57:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:21 01:57:21 # Check for (and return) cached value/exception. 01:57:21 if self.cached_result is not None: 01:57:21 request_cache_key = self.cache_key(request) 01:57:21 cache_key = self.cached_result[1] 01:57:21 try: 01:57:21 # Attempt to make a normal == check: this might fail for objects 01:57:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:21 cache_hit = bool(request_cache_key == cache_key) 01:57:21 except (ValueError, RuntimeError): 01:57:21 # If the comparison raises, use 'is' as fallback. 01:57:21 cache_hit = request_cache_key is cache_key 01:57:21 01:57:21 if cache_hit: 01:57:21 if self.cached_result[2] is not None: 01:57:21 exc, exc_tb = self.cached_result[2] 01:57:21 raise exc.with_traceback(exc_tb) 01:57:21 else: 01:57:21 return self.cached_result[0] 01:57:21 # We have a previous but differently parametrized fixture instance 01:57:21 # so we need to tear it down before creating a new one. 01:57:21 self.finish(request) 01:57:21 assert self.cached_result is None 01:57:21 01:57:21 # Add finalizer to requested fixtures we saved previously. 01:57:21 # We make sure to do this after checking for cached value to avoid 01:57:21 # adding our finalizer multiple times. (#12135) 01:57:21 finalizer = functools.partial(self.finish, request=request) 01:57:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:21 parent_fixture.addfinalizer(finalizer) 01:57:21 01:57:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:21 # which is executed last. 01:57:21 > assert not self._finalizers 01:57:21 ^^^^^^^^^^^^^^^^^^^^ 01:57:21 E AssertionError 01:57:21 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:21 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 01:57:21 01:57:21 cls = 01:57:21 func = . at 0x7f100d4dafc0> 01:57:21 when = 'setup' 01:57:21 reraise = (, ) 01:57:21 01:57:21 @classmethod 01:57:21 def from_call( 01:57:21 cls, 01:57:21 func: Callable[[], TResult], 01:57:21 when: Literal["collect", "setup", "call", "teardown"], 01:57:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:21 ) -> CallInfo[TResult]: 01:57:21 """Call func, wrapping the result in a CallInfo. 01:57:21 01:57:21 :param func: 01:57:21 The function to call. Called without arguments. 01:57:21 :type func: Callable[[], _pytest.runner.TResult] 01:57:21 :param when: 01:57:21 The phase in which the function is called. 01:57:21 :param reraise: 01:57:21 Exception or exceptions that shall propagate if raised by the 01:57:21 function, instead of being wrapped in the CallInfo. 01:57:21 """ 01:57:21 excinfo = None 01:57:21 instant = timing.Instant() 01:57:21 try: 01:57:21 > result: TResult | None = func() 01:57:21 ^^^^^^ 01:57:21 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:21 lambda: runtest_hook(item=item, **kwds), 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:21 yield 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:21 return (yield) 01:57:21 ^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:21 item.session._setupstate.setup(item) 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:21 col.setup() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:21 super().setup() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:21 self._request._fillfixtures() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:21 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:21 fixturedef = self._get_active_fixturedef(argname) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:21 fixturedef.execute(request=subrequest) 01:57:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:21 01:57:21 self = 01:57:21 request = > 01:57:21 01:57:21 def execute(self, request: SubRequest) -> FixtureValue: 01:57:21 """Return the value of this fixture, executing it if not cached.""" 01:57:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:21 # This needs to be done before checking if we have a cached value, since 01:57:21 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:21 # parametrization, they finalize themselves and fixtures depending on it 01:57:21 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:21 # See #4871 01:57:21 requested_fixtures_that_should_finalize_us = [] 01:57:21 for argname in self.argnames: 01:57:21 fixturedef = request._get_active_fixturedef(argname) 01:57:21 # Saves requested fixtures in a list so we later can add our finalizer 01:57:21 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:21 # down first. This is generally handled by SetupState, but still currently 01:57:21 # needed when this fixture is not parametrized but depends on a parametrized 01:57:21 # fixture. 01:57:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:21 01:57:21 # Check for (and return) cached value/exception. 01:57:21 if self.cached_result is not None: 01:57:21 request_cache_key = self.cache_key(request) 01:57:21 cache_key = self.cached_result[1] 01:57:21 try: 01:57:21 # Attempt to make a normal == check: this might fail for objects 01:57:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:21 cache_hit = bool(request_cache_key == cache_key) 01:57:21 except (ValueError, RuntimeError): 01:57:21 # If the comparison raises, use 'is' as fallback. 01:57:21 cache_hit = request_cache_key is cache_key 01:57:21 01:57:21 if cache_hit: 01:57:21 if self.cached_result[2] is not None: 01:57:21 exc, exc_tb = self.cached_result[2] 01:57:21 raise exc.with_traceback(exc_tb) 01:57:21 else: 01:57:21 return self.cached_result[0] 01:57:21 # We have a previous but differently parametrized fixture instance 01:57:21 # so we need to tear it down before creating a new one. 01:57:21 self.finish(request) 01:57:21 assert self.cached_result is None 01:57:21 01:57:21 # Add finalizer to requested fixtures we saved previously. 01:57:21 # We make sure to do this after checking for cached value to avoid 01:57:21 # adding our finalizer multiple times. (#12135) 01:57:21 finalizer = functools.partial(self.finish, request=request) 01:57:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:21 parent_fixture.addfinalizer(finalizer) 01:57:21 01:57:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:21 # which is executed last. 01:57:21 > assert not self._finalizers 01:57:21 ^^^^^^^^^^^^^^^^^^^^ 01:57:21 E AssertionError 01:57:21 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:21 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 01:57:21 01:57:21 cls = 01:57:21 func = . at 0x7f100e2cb2e0> 01:57:21 when = 'setup' 01:57:21 reraise = (, ) 01:57:21 01:57:21 @classmethod 01:57:21 def from_call( 01:57:21 cls, 01:57:21 func: Callable[[], TResult], 01:57:21 when: Literal["collect", "setup", "call", "teardown"], 01:57:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:21 ) -> CallInfo[TResult]: 01:57:21 """Call func, wrapping the result in a CallInfo. 01:57:21 01:57:21 :param func: 01:57:21 The function to call. Called without arguments. 01:57:21 :type func: Callable[[], _pytest.runner.TResult] 01:57:21 :param when: 01:57:21 The phase in which the function is called. 01:57:21 :param reraise: 01:57:21 Exception or exceptions that shall propagate if raised by the 01:57:21 function, instead of being wrapped in the CallInfo. 01:57:21 """ 01:57:21 excinfo = None 01:57:21 instant = timing.Instant() 01:57:21 try: 01:57:21 > result: TResult | None = func() 01:57:21 ^^^^^^ 01:57:21 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:21 lambda: runtest_hook(item=item, **kwds), 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:21 yield 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:21 return (yield) 01:57:21 ^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:21 item.session._setupstate.setup(item) 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:21 col.setup() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:21 super().setup() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:21 self._request._fillfixtures() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:21 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:21 fixturedef = self._get_active_fixturedef(argname) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:21 fixturedef.execute(request=subrequest) 01:57:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:21 01:57:21 self = 01:57:21 request = > 01:57:21 01:57:21 def execute(self, request: SubRequest) -> FixtureValue: 01:57:21 """Return the value of this fixture, executing it if not cached.""" 01:57:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:21 # This needs to be done before checking if we have a cached value, since 01:57:21 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:21 # parametrization, they finalize themselves and fixtures depending on it 01:57:21 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:21 # See #4871 01:57:21 requested_fixtures_that_should_finalize_us = [] 01:57:21 for argname in self.argnames: 01:57:21 fixturedef = request._get_active_fixturedef(argname) 01:57:21 # Saves requested fixtures in a list so we later can add our finalizer 01:57:21 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:21 # down first. This is generally handled by SetupState, but still currently 01:57:21 # needed when this fixture is not parametrized but depends on a parametrized 01:57:21 # fixture. 01:57:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:21 01:57:21 # Check for (and return) cached value/exception. 01:57:21 if self.cached_result is not None: 01:57:21 request_cache_key = self.cache_key(request) 01:57:21 cache_key = self.cached_result[1] 01:57:21 try: 01:57:21 # Attempt to make a normal == check: this might fail for objects 01:57:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:21 cache_hit = bool(request_cache_key == cache_key) 01:57:21 except (ValueError, RuntimeError): 01:57:21 # If the comparison raises, use 'is' as fallback. 01:57:21 cache_hit = request_cache_key is cache_key 01:57:21 01:57:21 if cache_hit: 01:57:21 if self.cached_result[2] is not None: 01:57:21 exc, exc_tb = self.cached_result[2] 01:57:21 raise exc.with_traceback(exc_tb) 01:57:21 else: 01:57:21 return self.cached_result[0] 01:57:21 # We have a previous but differently parametrized fixture instance 01:57:21 # so we need to tear it down before creating a new one. 01:57:21 self.finish(request) 01:57:21 assert self.cached_result is None 01:57:21 01:57:21 # Add finalizer to requested fixtures we saved previously. 01:57:21 # We make sure to do this after checking for cached value to avoid 01:57:21 # adding our finalizer multiple times. (#12135) 01:57:21 finalizer = functools.partial(self.finish, request=request) 01:57:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:21 parent_fixture.addfinalizer(finalizer) 01:57:21 01:57:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:21 # which is executed last. 01:57:21 > assert not self._finalizers 01:57:21 ^^^^^^^^^^^^^^^^^^^^ 01:57:21 E AssertionError 01:57:21 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:21 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 01:57:21 01:57:21 cls = 01:57:21 func = . at 0x7f100bbc37e0> 01:57:21 when = 'setup' 01:57:21 reraise = (, ) 01:57:21 01:57:21 @classmethod 01:57:21 def from_call( 01:57:21 cls, 01:57:21 func: Callable[[], TResult], 01:57:21 when: Literal["collect", "setup", "call", "teardown"], 01:57:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:21 ) -> CallInfo[TResult]: 01:57:21 """Call func, wrapping the result in a CallInfo. 01:57:21 01:57:21 :param func: 01:57:21 The function to call. Called without arguments. 01:57:21 :type func: Callable[[], _pytest.runner.TResult] 01:57:21 :param when: 01:57:21 The phase in which the function is called. 01:57:21 :param reraise: 01:57:21 Exception or exceptions that shall propagate if raised by the 01:57:21 function, instead of being wrapped in the CallInfo. 01:57:21 """ 01:57:21 excinfo = None 01:57:21 instant = timing.Instant() 01:57:21 try: 01:57:21 > result: TResult | None = func() 01:57:21 ^^^^^^ 01:57:21 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:21 lambda: runtest_hook(item=item, **kwds), 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:21 yield 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:21 return (yield) 01:57:21 ^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:21 item.session._setupstate.setup(item) 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:21 col.setup() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:21 super().setup() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:21 self._request._fillfixtures() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:21 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:21 fixturedef = self._get_active_fixturedef(argname) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:21 fixturedef.execute(request=subrequest) 01:57:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:21 01:57:21 self = 01:57:21 request = > 01:57:21 01:57:21 def execute(self, request: SubRequest) -> FixtureValue: 01:57:21 """Return the value of this fixture, executing it if not cached.""" 01:57:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:21 # This needs to be done before checking if we have a cached value, since 01:57:21 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:21 # parametrization, they finalize themselves and fixtures depending on it 01:57:21 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:21 # See #4871 01:57:21 requested_fixtures_that_should_finalize_us = [] 01:57:21 for argname in self.argnames: 01:57:21 fixturedef = request._get_active_fixturedef(argname) 01:57:21 # Saves requested fixtures in a list so we later can add our finalizer 01:57:21 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:21 # down first. This is generally handled by SetupState, but still currently 01:57:21 # needed when this fixture is not parametrized but depends on a parametrized 01:57:21 # fixture. 01:57:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:21 01:57:21 # Check for (and return) cached value/exception. 01:57:21 if self.cached_result is not None: 01:57:21 request_cache_key = self.cache_key(request) 01:57:21 cache_key = self.cached_result[1] 01:57:21 try: 01:57:21 # Attempt to make a normal == check: this might fail for objects 01:57:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:21 cache_hit = bool(request_cache_key == cache_key) 01:57:21 except (ValueError, RuntimeError): 01:57:21 # If the comparison raises, use 'is' as fallback. 01:57:21 cache_hit = request_cache_key is cache_key 01:57:21 01:57:21 if cache_hit: 01:57:21 if self.cached_result[2] is not None: 01:57:21 exc, exc_tb = self.cached_result[2] 01:57:21 raise exc.with_traceback(exc_tb) 01:57:21 else: 01:57:21 return self.cached_result[0] 01:57:21 # We have a previous but differently parametrized fixture instance 01:57:21 # so we need to tear it down before creating a new one. 01:57:21 self.finish(request) 01:57:21 assert self.cached_result is None 01:57:21 01:57:21 # Add finalizer to requested fixtures we saved previously. 01:57:21 # We make sure to do this after checking for cached value to avoid 01:57:21 # adding our finalizer multiple times. (#12135) 01:57:21 finalizer = functools.partial(self.finish, request=request) 01:57:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:21 parent_fixture.addfinalizer(finalizer) 01:57:21 01:57:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:21 # which is executed last. 01:57:21 > assert not self._finalizers 01:57:21 ^^^^^^^^^^^^^^^^^^^^ 01:57:21 E AssertionError 01:57:21 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:21 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 01:57:21 01:57:21 cls = 01:57:21 func = . at 0x7f100d4dafc0> 01:57:21 when = 'setup' 01:57:21 reraise = (, ) 01:57:21 01:57:21 @classmethod 01:57:21 def from_call( 01:57:21 cls, 01:57:21 func: Callable[[], TResult], 01:57:21 when: Literal["collect", "setup", "call", "teardown"], 01:57:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:21 ) -> CallInfo[TResult]: 01:57:21 """Call func, wrapping the result in a CallInfo. 01:57:21 01:57:21 :param func: 01:57:21 The function to call. Called without arguments. 01:57:21 :type func: Callable[[], _pytest.runner.TResult] 01:57:21 :param when: 01:57:21 The phase in which the function is called. 01:57:21 :param reraise: 01:57:21 Exception or exceptions that shall propagate if raised by the 01:57:21 function, instead of being wrapped in the CallInfo. 01:57:21 """ 01:57:21 excinfo = None 01:57:21 instant = timing.Instant() 01:57:21 try: 01:57:21 > result: TResult | None = func() 01:57:21 ^^^^^^ 01:57:21 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:21 lambda: runtest_hook(item=item, **kwds), 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:21 yield 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:21 return (yield) 01:57:21 ^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:21 item.session._setupstate.setup(item) 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:21 col.setup() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:21 super().setup() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:21 self._request._fillfixtures() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:21 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:21 fixturedef = self._get_active_fixturedef(argname) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:21 fixturedef.execute(request=subrequest) 01:57:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:21 01:57:21 self = 01:57:21 request = > 01:57:21 01:57:21 def execute(self, request: SubRequest) -> FixtureValue: 01:57:21 """Return the value of this fixture, executing it if not cached.""" 01:57:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:21 # This needs to be done before checking if we have a cached value, since 01:57:21 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:21 # parametrization, they finalize themselves and fixtures depending on it 01:57:21 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:21 # See #4871 01:57:21 requested_fixtures_that_should_finalize_us = [] 01:57:21 for argname in self.argnames: 01:57:21 fixturedef = request._get_active_fixturedef(argname) 01:57:21 # Saves requested fixtures in a list so we later can add our finalizer 01:57:21 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:21 # down first. This is generally handled by SetupState, but still currently 01:57:21 # needed when this fixture is not parametrized but depends on a parametrized 01:57:21 # fixture. 01:57:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:21 01:57:21 # Check for (and return) cached value/exception. 01:57:21 if self.cached_result is not None: 01:57:21 request_cache_key = self.cache_key(request) 01:57:21 cache_key = self.cached_result[1] 01:57:21 try: 01:57:21 # Attempt to make a normal == check: this might fail for objects 01:57:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:21 cache_hit = bool(request_cache_key == cache_key) 01:57:21 except (ValueError, RuntimeError): 01:57:21 # If the comparison raises, use 'is' as fallback. 01:57:21 cache_hit = request_cache_key is cache_key 01:57:21 01:57:21 if cache_hit: 01:57:21 if self.cached_result[2] is not None: 01:57:21 exc, exc_tb = self.cached_result[2] 01:57:21 raise exc.with_traceback(exc_tb) 01:57:21 else: 01:57:21 return self.cached_result[0] 01:57:21 # We have a previous but differently parametrized fixture instance 01:57:21 # so we need to tear it down before creating a new one. 01:57:21 self.finish(request) 01:57:21 assert self.cached_result is None 01:57:21 01:57:21 # Add finalizer to requested fixtures we saved previously. 01:57:21 # We make sure to do this after checking for cached value to avoid 01:57:21 # adding our finalizer multiple times. (#12135) 01:57:21 finalizer = functools.partial(self.finish, request=request) 01:57:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:21 parent_fixture.addfinalizer(finalizer) 01:57:21 01:57:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:21 # which is executed last. 01:57:21 > assert not self._finalizers 01:57:21 ^^^^^^^^^^^^^^^^^^^^ 01:57:21 E AssertionError 01:57:21 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:21 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 01:57:21 01:57:21 cls = 01:57:21 func = . at 0x7f100bbc3a60> 01:57:21 when = 'setup' 01:57:21 reraise = (, ) 01:57:21 01:57:21 @classmethod 01:57:21 def from_call( 01:57:21 cls, 01:57:21 func: Callable[[], TResult], 01:57:21 when: Literal["collect", "setup", "call", "teardown"], 01:57:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:21 ) -> CallInfo[TResult]: 01:57:21 """Call func, wrapping the result in a CallInfo. 01:57:21 01:57:21 :param func: 01:57:21 The function to call. Called without arguments. 01:57:21 :type func: Callable[[], _pytest.runner.TResult] 01:57:21 :param when: 01:57:21 The phase in which the function is called. 01:57:21 :param reraise: 01:57:21 Exception or exceptions that shall propagate if raised by the 01:57:21 function, instead of being wrapped in the CallInfo. 01:57:21 """ 01:57:21 excinfo = None 01:57:21 instant = timing.Instant() 01:57:21 try: 01:57:21 > result: TResult | None = func() 01:57:21 ^^^^^^ 01:57:21 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:21 lambda: runtest_hook(item=item, **kwds), 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:21 yield 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:21 return (yield) 01:57:21 ^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:21 item.session._setupstate.setup(item) 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:21 col.setup() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:21 super().setup() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:21 self._request._fillfixtures() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:21 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:21 fixturedef = self._get_active_fixturedef(argname) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:21 fixturedef.execute(request=subrequest) 01:57:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:21 01:57:21 self = 01:57:21 request = > 01:57:21 01:57:21 def execute(self, request: SubRequest) -> FixtureValue: 01:57:21 """Return the value of this fixture, executing it if not cached.""" 01:57:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:21 # This needs to be done before checking if we have a cached value, since 01:57:21 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:21 # parametrization, they finalize themselves and fixtures depending on it 01:57:21 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:21 # See #4871 01:57:21 requested_fixtures_that_should_finalize_us = [] 01:57:21 for argname in self.argnames: 01:57:21 fixturedef = request._get_active_fixturedef(argname) 01:57:21 # Saves requested fixtures in a list so we later can add our finalizer 01:57:21 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:21 # down first. This is generally handled by SetupState, but still currently 01:57:21 # needed when this fixture is not parametrized but depends on a parametrized 01:57:21 # fixture. 01:57:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:21 01:57:21 # Check for (and return) cached value/exception. 01:57:21 if self.cached_result is not None: 01:57:21 request_cache_key = self.cache_key(request) 01:57:21 cache_key = self.cached_result[1] 01:57:21 try: 01:57:21 # Attempt to make a normal == check: this might fail for objects 01:57:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:21 cache_hit = bool(request_cache_key == cache_key) 01:57:21 except (ValueError, RuntimeError): 01:57:21 # If the comparison raises, use 'is' as fallback. 01:57:21 cache_hit = request_cache_key is cache_key 01:57:21 01:57:21 if cache_hit: 01:57:21 if self.cached_result[2] is not None: 01:57:21 exc, exc_tb = self.cached_result[2] 01:57:21 raise exc.with_traceback(exc_tb) 01:57:21 else: 01:57:21 return self.cached_result[0] 01:57:21 # We have a previous but differently parametrized fixture instance 01:57:21 # so we need to tear it down before creating a new one. 01:57:21 self.finish(request) 01:57:21 assert self.cached_result is None 01:57:21 01:57:21 # Add finalizer to requested fixtures we saved previously. 01:57:21 # We make sure to do this after checking for cached value to avoid 01:57:21 # adding our finalizer multiple times. (#12135) 01:57:21 finalizer = functools.partial(self.finish, request=request) 01:57:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:21 parent_fixture.addfinalizer(finalizer) 01:57:21 01:57:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:21 # which is executed last. 01:57:21 > assert not self._finalizers 01:57:21 ^^^^^^^^^^^^^^^^^^^^ 01:57:21 E AssertionError 01:57:21 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:21 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 01:57:21 01:57:21 cls = 01:57:21 func = . at 0x7f100bbc1120> 01:57:21 when = 'setup' 01:57:21 reraise = (, ) 01:57:21 01:57:21 @classmethod 01:57:21 def from_call( 01:57:21 cls, 01:57:21 func: Callable[[], TResult], 01:57:21 when: Literal["collect", "setup", "call", "teardown"], 01:57:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:21 ) -> CallInfo[TResult]: 01:57:21 """Call func, wrapping the result in a CallInfo. 01:57:21 01:57:21 :param func: 01:57:21 The function to call. Called without arguments. 01:57:21 :type func: Callable[[], _pytest.runner.TResult] 01:57:21 :param when: 01:57:21 The phase in which the function is called. 01:57:21 :param reraise: 01:57:21 Exception or exceptions that shall propagate if raised by the 01:57:21 function, instead of being wrapped in the CallInfo. 01:57:21 """ 01:57:21 excinfo = None 01:57:21 instant = timing.Instant() 01:57:21 try: 01:57:21 > result: TResult | None = func() 01:57:21 ^^^^^^ 01:57:21 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:21 lambda: runtest_hook(item=item, **kwds), 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:21 yield 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:21 return (yield) 01:57:21 ^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:21 item.session._setupstate.setup(item) 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:21 col.setup() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:21 super().setup() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:21 self._request._fillfixtures() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:21 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:21 fixturedef = self._get_active_fixturedef(argname) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:21 fixturedef.execute(request=subrequest) 01:57:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:21 01:57:21 self = 01:57:21 request = > 01:57:21 01:57:21 def execute(self, request: SubRequest) -> FixtureValue: 01:57:21 """Return the value of this fixture, executing it if not cached.""" 01:57:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:21 # This needs to be done before checking if we have a cached value, since 01:57:21 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:21 # parametrization, they finalize themselves and fixtures depending on it 01:57:21 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:21 # See #4871 01:57:21 requested_fixtures_that_should_finalize_us = [] 01:57:21 for argname in self.argnames: 01:57:21 fixturedef = request._get_active_fixturedef(argname) 01:57:21 # Saves requested fixtures in a list so we later can add our finalizer 01:57:21 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:21 # down first. This is generally handled by SetupState, but still currently 01:57:21 # needed when this fixture is not parametrized but depends on a parametrized 01:57:21 # fixture. 01:57:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:21 01:57:21 # Check for (and return) cached value/exception. 01:57:21 if self.cached_result is not None: 01:57:21 request_cache_key = self.cache_key(request) 01:57:21 cache_key = self.cached_result[1] 01:57:21 try: 01:57:21 # Attempt to make a normal == check: this might fail for objects 01:57:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:21 cache_hit = bool(request_cache_key == cache_key) 01:57:21 except (ValueError, RuntimeError): 01:57:21 # If the comparison raises, use 'is' as fallback. 01:57:21 cache_hit = request_cache_key is cache_key 01:57:21 01:57:21 if cache_hit: 01:57:21 if self.cached_result[2] is not None: 01:57:21 exc, exc_tb = self.cached_result[2] 01:57:21 raise exc.with_traceback(exc_tb) 01:57:21 else: 01:57:21 return self.cached_result[0] 01:57:21 # We have a previous but differently parametrized fixture instance 01:57:21 # so we need to tear it down before creating a new one. 01:57:21 self.finish(request) 01:57:21 assert self.cached_result is None 01:57:21 01:57:21 # Add finalizer to requested fixtures we saved previously. 01:57:21 # We make sure to do this after checking for cached value to avoid 01:57:21 # adding our finalizer multiple times. (#12135) 01:57:21 finalizer = functools.partial(self.finish, request=request) 01:57:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:21 parent_fixture.addfinalizer(finalizer) 01:57:21 01:57:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:21 # which is executed last. 01:57:21 > assert not self._finalizers 01:57:21 ^^^^^^^^^^^^^^^^^^^^ 01:57:21 E AssertionError 01:57:21 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:21 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 01:57:21 01:57:21 cls = 01:57:21 func = . at 0x7f100bbc37e0> 01:57:21 when = 'setup' 01:57:21 reraise = (, ) 01:57:21 01:57:21 @classmethod 01:57:21 def from_call( 01:57:21 cls, 01:57:21 func: Callable[[], TResult], 01:57:21 when: Literal["collect", "setup", "call", "teardown"], 01:57:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:21 ) -> CallInfo[TResult]: 01:57:21 """Call func, wrapping the result in a CallInfo. 01:57:21 01:57:21 :param func: 01:57:21 The function to call. Called without arguments. 01:57:21 :type func: Callable[[], _pytest.runner.TResult] 01:57:21 :param when: 01:57:21 The phase in which the function is called. 01:57:21 :param reraise: 01:57:21 Exception or exceptions that shall propagate if raised by the 01:57:21 function, instead of being wrapped in the CallInfo. 01:57:21 """ 01:57:21 excinfo = None 01:57:21 instant = timing.Instant() 01:57:21 try: 01:57:21 > result: TResult | None = func() 01:57:21 ^^^^^^ 01:57:21 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:21 lambda: runtest_hook(item=item, **kwds), 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:21 yield 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:21 return (yield) 01:57:21 ^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:21 item.session._setupstate.setup(item) 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:21 col.setup() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:21 super().setup() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:21 self._request._fillfixtures() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:21 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:21 fixturedef = self._get_active_fixturedef(argname) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:21 fixturedef.execute(request=subrequest) 01:57:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:21 01:57:21 self = 01:57:21 request = > 01:57:21 01:57:21 def execute(self, request: SubRequest) -> FixtureValue: 01:57:21 """Return the value of this fixture, executing it if not cached.""" 01:57:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:21 # This needs to be done before checking if we have a cached value, since 01:57:21 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:21 # parametrization, they finalize themselves and fixtures depending on it 01:57:21 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:21 # See #4871 01:57:21 requested_fixtures_that_should_finalize_us = [] 01:57:21 for argname in self.argnames: 01:57:21 fixturedef = request._get_active_fixturedef(argname) 01:57:21 # Saves requested fixtures in a list so we later can add our finalizer 01:57:21 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:21 # down first. This is generally handled by SetupState, but still currently 01:57:21 # needed when this fixture is not parametrized but depends on a parametrized 01:57:21 # fixture. 01:57:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:21 01:57:21 # Check for (and return) cached value/exception. 01:57:21 if self.cached_result is not None: 01:57:21 request_cache_key = self.cache_key(request) 01:57:21 cache_key = self.cached_result[1] 01:57:21 try: 01:57:21 # Attempt to make a normal == check: this might fail for objects 01:57:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:21 cache_hit = bool(request_cache_key == cache_key) 01:57:21 except (ValueError, RuntimeError): 01:57:21 # If the comparison raises, use 'is' as fallback. 01:57:21 cache_hit = request_cache_key is cache_key 01:57:21 01:57:21 if cache_hit: 01:57:21 if self.cached_result[2] is not None: 01:57:21 exc, exc_tb = self.cached_result[2] 01:57:21 raise exc.with_traceback(exc_tb) 01:57:21 else: 01:57:21 return self.cached_result[0] 01:57:21 # We have a previous but differently parametrized fixture instance 01:57:21 # so we need to tear it down before creating a new one. 01:57:21 self.finish(request) 01:57:21 assert self.cached_result is None 01:57:21 01:57:21 # Add finalizer to requested fixtures we saved previously. 01:57:21 # We make sure to do this after checking for cached value to avoid 01:57:21 # adding our finalizer multiple times. (#12135) 01:57:21 finalizer = functools.partial(self.finish, request=request) 01:57:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:21 parent_fixture.addfinalizer(finalizer) 01:57:21 01:57:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:21 # which is executed last. 01:57:21 > assert not self._finalizers 01:57:21 ^^^^^^^^^^^^^^^^^^^^ 01:57:21 E AssertionError 01:57:21 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:21 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 01:57:21 01:57:21 cls = 01:57:21 func = . at 0x7f100bbc3600> 01:57:21 when = 'setup' 01:57:21 reraise = (, ) 01:57:21 01:57:21 @classmethod 01:57:21 def from_call( 01:57:21 cls, 01:57:21 func: Callable[[], TResult], 01:57:21 when: Literal["collect", "setup", "call", "teardown"], 01:57:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:21 ) -> CallInfo[TResult]: 01:57:21 """Call func, wrapping the result in a CallInfo. 01:57:21 01:57:21 :param func: 01:57:21 The function to call. Called without arguments. 01:57:21 :type func: Callable[[], _pytest.runner.TResult] 01:57:21 :param when: 01:57:21 The phase in which the function is called. 01:57:21 :param reraise: 01:57:21 Exception or exceptions that shall propagate if raised by the 01:57:21 function, instead of being wrapped in the CallInfo. 01:57:21 """ 01:57:21 excinfo = None 01:57:21 instant = timing.Instant() 01:57:21 try: 01:57:21 > result: TResult | None = func() 01:57:21 ^^^^^^ 01:57:21 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:21 lambda: runtest_hook(item=item, **kwds), 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:21 yield 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:21 return (yield) 01:57:21 ^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:21 item.session._setupstate.setup(item) 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:21 col.setup() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:21 super().setup() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:21 self._request._fillfixtures() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:21 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:21 fixturedef = self._get_active_fixturedef(argname) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:21 fixturedef.execute(request=subrequest) 01:57:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:21 01:57:21 self = 01:57:21 request = > 01:57:21 01:57:21 def execute(self, request: SubRequest) -> FixtureValue: 01:57:21 """Return the value of this fixture, executing it if not cached.""" 01:57:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:21 # This needs to be done before checking if we have a cached value, since 01:57:21 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:21 # parametrization, they finalize themselves and fixtures depending on it 01:57:21 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:21 # See #4871 01:57:21 requested_fixtures_that_should_finalize_us = [] 01:57:21 for argname in self.argnames: 01:57:21 fixturedef = request._get_active_fixturedef(argname) 01:57:21 # Saves requested fixtures in a list so we later can add our finalizer 01:57:21 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:21 # down first. This is generally handled by SetupState, but still currently 01:57:21 # needed when this fixture is not parametrized but depends on a parametrized 01:57:21 # fixture. 01:57:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:21 01:57:21 # Check for (and return) cached value/exception. 01:57:21 if self.cached_result is not None: 01:57:21 request_cache_key = self.cache_key(request) 01:57:21 cache_key = self.cached_result[1] 01:57:21 try: 01:57:21 # Attempt to make a normal == check: this might fail for objects 01:57:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:21 cache_hit = bool(request_cache_key == cache_key) 01:57:21 except (ValueError, RuntimeError): 01:57:21 # If the comparison raises, use 'is' as fallback. 01:57:21 cache_hit = request_cache_key is cache_key 01:57:21 01:57:21 if cache_hit: 01:57:21 if self.cached_result[2] is not None: 01:57:21 exc, exc_tb = self.cached_result[2] 01:57:21 raise exc.with_traceback(exc_tb) 01:57:21 else: 01:57:21 return self.cached_result[0] 01:57:21 # We have a previous but differently parametrized fixture instance 01:57:21 # so we need to tear it down before creating a new one. 01:57:21 self.finish(request) 01:57:21 assert self.cached_result is None 01:57:21 01:57:21 # Add finalizer to requested fixtures we saved previously. 01:57:21 # We make sure to do this after checking for cached value to avoid 01:57:21 # adding our finalizer multiple times. (#12135) 01:57:21 finalizer = functools.partial(self.finish, request=request) 01:57:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:21 parent_fixture.addfinalizer(finalizer) 01:57:21 01:57:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:21 # which is executed last. 01:57:21 > assert not self._finalizers 01:57:21 ^^^^^^^^^^^^^^^^^^^^ 01:57:21 E AssertionError 01:57:21 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:21 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 01:57:21 01:57:21 cls = 01:57:21 func = . at 0x7f100bbc1120> 01:57:21 when = 'setup' 01:57:21 reraise = (, ) 01:57:21 01:57:21 @classmethod 01:57:21 def from_call( 01:57:21 cls, 01:57:21 func: Callable[[], TResult], 01:57:21 when: Literal["collect", "setup", "call", "teardown"], 01:57:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:21 ) -> CallInfo[TResult]: 01:57:21 """Call func, wrapping the result in a CallInfo. 01:57:21 01:57:21 :param func: 01:57:21 The function to call. Called without arguments. 01:57:21 :type func: Callable[[], _pytest.runner.TResult] 01:57:21 :param when: 01:57:21 The phase in which the function is called. 01:57:21 :param reraise: 01:57:21 Exception or exceptions that shall propagate if raised by the 01:57:21 function, instead of being wrapped in the CallInfo. 01:57:21 """ 01:57:21 excinfo = None 01:57:21 instant = timing.Instant() 01:57:21 try: 01:57:21 > result: TResult | None = func() 01:57:21 ^^^^^^ 01:57:21 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:21 lambda: runtest_hook(item=item, **kwds), 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:21 yield 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:21 return (yield) 01:57:21 ^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:21 item.session._setupstate.setup(item) 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:21 col.setup() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:21 super().setup() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:21 self._request._fillfixtures() 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:21 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:21 fixturedef = self._get_active_fixturedef(argname) 01:57:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:21 fixturedef.execute(request=subrequest) 01:57:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:21 01:57:21 self = 01:57:21 request = > 01:57:21 01:57:21 def execute(self, request: SubRequest) -> FixtureValue: 01:57:21 """Return the value of this fixture, executing it if not cached.""" 01:57:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:21 # This needs to be done before checking if we have a cached value, since 01:57:21 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:21 # parametrization, they finalize themselves and fixtures depending on it 01:57:21 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:21 # See #4871 01:57:21 requested_fixtures_that_should_finalize_us = [] 01:57:21 for argname in self.argnames: 01:57:21 fixturedef = request._get_active_fixturedef(argname) 01:57:21 # Saves requested fixtures in a list so we later can add our finalizer 01:57:21 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:21 # down first. This is generally handled by SetupState, but still currently 01:57:21 # needed when this fixture is not parametrized but depends on a parametrized 01:57:21 # fixture. 01:57:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:21 01:57:21 # Check for (and return) cached value/exception. 01:57:21 if self.cached_result is not None: 01:57:21 request_cache_key = self.cache_key(request) 01:57:21 cache_key = self.cached_result[1] 01:57:21 try: 01:57:21 # Attempt to make a normal == check: this might fail for objects 01:57:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:21 cache_hit = bool(request_cache_key == cache_key) 01:57:21 except (ValueError, RuntimeError): 01:57:21 # If the comparison raises, use 'is' as fallback. 01:57:21 cache_hit = request_cache_key is cache_key 01:57:21 01:57:21 if cache_hit: 01:57:21 if self.cached_result[2] is not None: 01:57:21 exc, exc_tb = self.cached_result[2] 01:57:21 raise exc.with_traceback(exc_tb) 01:57:21 else: 01:57:21 return self.cached_result[0] 01:57:21 # We have a previous but differently parametrized fixture instance 01:57:21 # so we need to tear it down before creating a new one. 01:57:21 self.finish(request) 01:57:21 assert self.cached_result is None 01:57:21 01:57:21 # Add finalizer to requested fixtures we saved previously. 01:57:21 # We make sure to do this after checking for cached value to avoid 01:57:21 # adding our finalizer multiple times. (#12135) 01:57:21 finalizer = functools.partial(self.finish, request=request) 01:57:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:21 parent_fixture.addfinalizer(finalizer) 01:57:21 01:57:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:21 # which is executed last. 01:57:21 > assert not self._finalizers 01:57:21 ^^^^^^^^^^^^^^^^^^^^ 01:57:21 E AssertionError 01:57:21 01:57:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:21 =========================== short test summary info ============================ 01:57:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 01:57:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 01:57:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 01:57:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 01:57:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 01:57:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 01:57:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 01:57:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 01:57:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 01:57:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 01:57:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 01:57:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 01:57:21 12 errors in 102.27s (0:01:42) 01:57:21 tests71: exit 1 (102.55 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 pid=4524 01:57:24 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 01:57:33 ==================================== ERRORS ==================================== 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 01:57:33 01:57:33 cls = 01:57:33 01:57:33 @classmethod 01:57:33 def setUpClass(cls): 01:57:33 > cls.processes = test_utils.start_tpce() 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 01:57:33 transportpce_tests/hybrid/test01_device_change_notifications.py:76: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 def start_tpce(): 01:57:33 if 'NO_ODL_STARTUP' in os.environ: 01:57:33 print('No OpenDaylight instance to start!') 01:57:33 return [] 01:57:33 print('starting OpenDaylight...') 01:57:33 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 01:57:33 process = start_lighty() 01:57:33 else: 01:57:33 process = start_karaf() 01:57:33 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 01:57:33 print('OpenDaylight started !') 01:57:33 else: 01:57:33 print('OpenDaylight failed to start !') 01:57:33 shutdown_process(process) 01:57:33 for pid in process_list: 01:57:33 shutdown_process(pid) 01:57:33 > sys.exit(1) 01:57:33 E SystemExit: 1 01:57:33 01:57:33 transportpce_tests/common/test_utils.py:234: SystemExit 01:57:33 ---------------------------- Captured stdout setup ----------------------------- 01:57:33 starting OpenDaylight... 01:57:33 starting KARAF (karaf221) TransportPCE build... 01:57:33 Pattern not found after 100 seconds! OpenDaylight failed to start ! 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067ecea20> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067f1ff60> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa06a5d2f20> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067ecd440> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa0698153a0> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067ecd440> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067f1e700> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067f1e980> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067f1e700> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067ecd440> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa0678dd940> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067f1e700> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067ecd440> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa0678ddda0> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067ecd440> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067ecd8a0> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067f1e8e0> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067ecd8a0> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067f1ed40> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067f1e8e0> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067f1ed40> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa0678de0c0> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067f1ed40> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa0678de0c0> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa0678dc860> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067f1ed40> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa0678dd440> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa0678dd260> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067f1ed40> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa0678dd6c0> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa0678dd800> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067f1ed40> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa0678ddd00> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa0678dd800> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067f1ed40> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa0678ddf80> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067f1ed40> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa0678dcea0> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa0678dda80> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067f1ed40> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa0678dda80> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa0678dea20> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067f1ed40> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa0678dd9e0> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa0678ddbc0> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067f1ed40> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa0678ddf80> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa0678de5c0> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa067f1ed40> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 01:57:33 01:57:33 cls = 01:57:33 func = . at 0x7fa0678de2a0> 01:57:33 when = 'setup' 01:57:33 reraise = (, ) 01:57:33 01:57:33 @classmethod 01:57:33 def from_call( 01:57:33 cls, 01:57:33 func: Callable[[], TResult], 01:57:33 when: Literal["collect", "setup", "call", "teardown"], 01:57:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 01:57:33 ) -> CallInfo[TResult]: 01:57:33 """Call func, wrapping the result in a CallInfo. 01:57:33 01:57:33 :param func: 01:57:33 The function to call. Called without arguments. 01:57:33 :type func: Callable[[], _pytest.runner.TResult] 01:57:33 :param when: 01:57:33 The phase in which the function is called. 01:57:33 :param reraise: 01:57:33 Exception or exceptions that shall propagate if raised by the 01:57:33 function, instead of being wrapped in the CallInfo. 01:57:33 """ 01:57:33 excinfo = None 01:57:33 instant = timing.Instant() 01:57:33 try: 01:57:33 > result: TResult | None = func() 01:57:33 ^^^^^^ 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 01:57:33 lambda: runtest_hook(item=item, **kwds), 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 01:57:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 01:57:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 01:57:33 yield 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 01:57:33 return (yield) 01:57:33 ^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 01:57:33 item.session._setupstate.setup(item) 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 01:57:33 col.setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 01:57:33 super().setup() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 01:57:33 self._request._fillfixtures() 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 01:57:33 item.funcargs[argname] = self.getfixturevalue(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 01:57:33 fixturedef = self._get_active_fixturedef(argname) 01:57:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 01:57:33 fixturedef.execute(request=subrequest) 01:57:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 01:57:33 01:57:33 self = 01:57:33 request = > 01:57:33 01:57:33 def execute(self, request: SubRequest) -> FixtureValue: 01:57:33 """Return the value of this fixture, executing it if not cached.""" 01:57:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 01:57:33 # This needs to be done before checking if we have a cached value, since 01:57:33 # if a dependent fixture has their cache invalidated, e.g. due to 01:57:33 # parametrization, they finalize themselves and fixtures depending on it 01:57:33 # (which will likely include this fixture) setting `self.cached_result = None`. 01:57:33 # See #4871 01:57:33 requested_fixtures_that_should_finalize_us = [] 01:57:33 for argname in self.argnames: 01:57:33 fixturedef = request._get_active_fixturedef(argname) 01:57:33 # Saves requested fixtures in a list so we later can add our finalizer 01:57:33 # to them, ensuring that if a requested fixture gets torn down we get torn 01:57:33 # down first. This is generally handled by SetupState, but still currently 01:57:33 # needed when this fixture is not parametrized but depends on a parametrized 01:57:33 # fixture. 01:57:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 01:57:33 01:57:33 # Check for (and return) cached value/exception. 01:57:33 if self.cached_result is not None: 01:57:33 request_cache_key = self.cache_key(request) 01:57:33 cache_key = self.cached_result[1] 01:57:33 try: 01:57:33 # Attempt to make a normal == check: this might fail for objects 01:57:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 01:57:33 cache_hit = bool(request_cache_key == cache_key) 01:57:33 except (ValueError, RuntimeError): 01:57:33 # If the comparison raises, use 'is' as fallback. 01:57:33 cache_hit = request_cache_key is cache_key 01:57:33 01:57:33 if cache_hit: 01:57:33 if self.cached_result[2] is not None: 01:57:33 exc, exc_tb = self.cached_result[2] 01:57:33 raise exc.with_traceback(exc_tb) 01:57:33 else: 01:57:33 return self.cached_result[0] 01:57:33 # We have a previous but differently parametrized fixture instance 01:57:33 # so we need to tear it down before creating a new one. 01:57:33 self.finish(request) 01:57:33 assert self.cached_result is None 01:57:33 01:57:33 # Add finalizer to requested fixtures we saved previously. 01:57:33 # We make sure to do this after checking for cached value to avoid 01:57:33 # adding our finalizer multiple times. (#12135) 01:57:33 finalizer = functools.partial(self.finish, request=request) 01:57:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 01:57:33 parent_fixture.addfinalizer(finalizer) 01:57:33 01:57:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 01:57:33 # which is executed last. 01:57:33 > assert not self._finalizers 01:57:33 ^^^^^^^^^^^^^^^^^^^^ 01:57:33 E AssertionError 01:57:33 01:57:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 01:57:33 =========================== short test summary info ============================ 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 01:57:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 01:57:33 51 errors in 109.45s (0:01:49) 01:57:33 tests71: FAIL ✖ in 1 minute 49.04 seconds 01:57:33 tests_hybrid: exit 1 (109.74 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid pid=4540 01:57:33 buildcontroller: FAIL code 1 (8.94=setup[8.35]+cmd[0.60] seconds) 01:57:33 sims: OK (9.66=setup[6.99]+cmd[2.67] seconds) 01:57:33 testsPCE: FAIL code 1 (174.15=setup[50.10]+cmd[124.05] seconds) 01:57:33 build_karaf_tests221: FAIL code 127 (8.19=setup[8.19]+cmd[0.01] seconds) 01:57:33 tests_tapi: FAIL code 1 (117.80=setup[7.45]+cmd[110.35] seconds) 01:57:33 tests221: FAIL code 1 (116.06=setup[9.39]+cmd[106.67] seconds) 01:57:33 build_karaf_tests71: FAIL code 127 (6.65=setup[6.64]+cmd[0.00] seconds) 01:57:33 tests71: FAIL code 1 (109.04=setup[6.49]+cmd[102.55] seconds) 01:57:33 build_karaf_tests200: FAIL code 127 (6.60=setup[6.59]+cmd[0.01] seconds) 01:57:33 tests200: FAIL code 1 (111.66=setup[9.44]+cmd[102.22] seconds) 01:57:33 tests_hybrid: FAIL code 1 (116.33=setup[6.59]+cmd[109.74] seconds) 01:57:33 buildlighty: FAIL code 9 (6.88=setup[6.87]+cmd[0.01] seconds) 01:57:33 docs: OK (18.17=setup[15.67]+cmd[2.50] seconds) 01:57:33 docs-linkcheck: OK (21.18=setup[16.12]+cmd[5.06] seconds) 01:57:33 checkbashisms: OK (3.03=setup[1.87]+cmd[0.00,0.04,1.12] seconds) 01:57:33 pre-commit: OK (58.91=setup[2.90]+cmd[0.01,0.01,46.63,9.37] seconds) 01:57:33 pylint: FAIL code 1 (21.53=setup[4.28]+cmd[17.26] seconds) 01:57:33 evaluation failed :( (557.36 seconds) 01:57:33 + tox_status=1 01:57:33 + echo '---> Completed tox runs' 01:57:33 ---> Completed tox runs 01:57:33 + for i in .tox/*/log 01:57:33 ++ echo .tox/build_karaf_tests200/log 01:57:33 ++ awk -F/ '{print $2}' 01:57:33 + tox_env=build_karaf_tests200 01:57:33 + cp -r .tox/build_karaf_tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests200 01:57:33 + for i in .tox/*/log 01:57:33 ++ awk -F/ '{print $2}' 01:57:33 ++ echo .tox/build_karaf_tests221/log 01:57:33 + tox_env=build_karaf_tests221 01:57:33 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests221 01:57:33 + for i in .tox/*/log 01:57:33 ++ echo .tox/build_karaf_tests71/log 01:57:33 ++ awk -F/ '{print $2}' 01:57:33 + tox_env=build_karaf_tests71 01:57:33 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests71 01:57:33 + for i in .tox/*/log 01:57:33 ++ echo .tox/buildcontroller/log 01:57:33 ++ awk -F/ '{print $2}' 01:57:33 + tox_env=buildcontroller 01:57:33 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildcontroller 01:57:33 + for i in .tox/*/log 01:57:33 ++ echo .tox/buildlighty/log 01:57:33 ++ awk -F/ '{print $2}' 01:57:33 + tox_env=buildlighty 01:57:33 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildlighty 01:57:33 + for i in .tox/*/log 01:57:33 ++ echo .tox/checkbashisms/log 01:57:33 ++ awk -F/ '{print $2}' 01:57:33 + tox_env=checkbashisms 01:57:33 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/checkbashisms 01:57:33 + for i in .tox/*/log 01:57:33 ++ echo .tox/docs-linkcheck/log 01:57:33 ++ awk -F/ '{print $2}' 01:57:33 + tox_env=docs-linkcheck 01:57:33 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs-linkcheck 01:57:33 + for i in .tox/*/log 01:57:33 ++ echo .tox/docs/log 01:57:33 ++ awk -F/ '{print $2}' 01:57:33 + tox_env=docs 01:57:33 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs 01:57:33 + for i in .tox/*/log 01:57:33 ++ echo .tox/pre-commit/log 01:57:33 ++ awk -F/ '{print $2}' 01:57:33 + tox_env=pre-commit 01:57:33 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pre-commit 01:57:33 + for i in .tox/*/log 01:57:33 ++ echo .tox/pylint/log 01:57:33 ++ awk -F/ '{print $2}' 01:57:33 + tox_env=pylint 01:57:33 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pylint 01:57:33 + for i in .tox/*/log 01:57:33 ++ echo .tox/sims/log 01:57:33 ++ awk -F/ '{print $2}' 01:57:33 + tox_env=sims 01:57:33 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/sims 01:57:33 + for i in .tox/*/log 01:57:33 ++ echo .tox/tests200/log 01:57:33 ++ awk -F/ '{print $2}' 01:57:33 + tox_env=tests200 01:57:33 + cp -r .tox/tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests200 01:57:33 + for i in .tox/*/log 01:57:33 ++ echo .tox/tests221/log 01:57:33 ++ awk -F/ '{print $2}' 01:57:33 + tox_env=tests221 01:57:33 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests221 01:57:33 + for i in .tox/*/log 01:57:33 ++ echo .tox/tests71/log 01:57:33 ++ awk -F/ '{print $2}' 01:57:33 + tox_env=tests71 01:57:33 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests71 01:57:33 + for i in .tox/*/log 01:57:33 ++ echo .tox/testsPCE/log 01:57:33 ++ awk -F/ '{print $2}' 01:57:33 + tox_env=testsPCE 01:57:33 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/testsPCE 01:57:33 + for i in .tox/*/log 01:57:33 ++ echo .tox/tests_hybrid/log 01:57:33 ++ awk -F/ '{print $2}' 01:57:33 + tox_env=tests_hybrid 01:57:33 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_hybrid 01:57:33 + for i in .tox/*/log 01:57:33 ++ echo .tox/tests_tapi/log 01:57:33 ++ awk -F/ '{print $2}' 01:57:33 + tox_env=tests_tapi 01:57:33 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_tapi 01:57:33 + DOC_DIR=docs/_build/html 01:57:33 + [[ -d docs/_build/html ]] 01:57:33 + echo '---> Archiving generated docs' 01:57:33 ---> Archiving generated docs 01:57:33 + mv docs/_build/html /w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 01:57:33 + echo '---> tox-run.sh ends' 01:57:33 ---> tox-run.sh ends 01:57:33 + test 1 -eq 0 01:57:33 + exit 1 01:57:33 ++ '[' 1 = 1 ']' 01:57:33 ++ '[' -x /usr/bin/clear_console ']' 01:57:33 ++ /usr/bin/clear_console -q 01:57:33 Build step 'Execute shell' marked build as failure 01:57:33 $ ssh-agent -k 01:57:33 unset SSH_AUTH_SOCK; 01:57:33 unset SSH_AGENT_PID; 01:57:33 echo Agent pid 1573 killed; 01:57:33 [ssh-agent] Stopped. 01:57:33 [PostBuildScript] - [INFO] Executing post build scripts. 01:57:33 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins8981874516467678652.sh 01:57:33 ---> sysstat.sh 01:57:33 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins10385638928667643769.sh 01:57:33 ---> package-listing.sh 01:57:33 + '[' -f /etc/os-release ']' 01:57:33 + . /etc/os-release 01:57:33 ++ PRETTY_NAME='Ubuntu 22.04.5 LTS' 01:57:33 ++ NAME=Ubuntu 01:57:33 ++ VERSION_ID=22.04 01:57:33 ++ VERSION='22.04.5 LTS (Jammy Jellyfish)' 01:57:33 ++ VERSION_CODENAME=jammy 01:57:33 ++ ID=ubuntu 01:57:33 ++ ID_LIKE=debian 01:57:33 ++ HOME_URL=https://www.ubuntu.com/ 01:57:33 ++ SUPPORT_URL=https://help.ubuntu.com/ 01:57:33 ++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/ 01:57:33 ++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy 01:57:33 ++ UBUNTU_CODENAME=jammy 01:57:33 + case " ${ID:-} ${ID_LIKE:-} " in 01:57:33 + OS_FAMILY=debian 01:57:33 + workspace=/w/workspace/transportpce-tox-verify-transportpce-master 01:57:33 + START_PACKAGES=/tmp/packages_start.txt 01:57:33 + END_PACKAGES=/tmp/packages_end.txt 01:57:33 + DIFF_PACKAGES=/tmp/packages_diff.txt 01:57:33 + PACKAGES=/tmp/packages_start.txt 01:57:33 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 01:57:33 + PACKAGES=/tmp/packages_end.txt 01:57:33 + case "${OS_FAMILY}" in 01:57:33 + dpkg -l 01:57:33 + grep '^ii' 01:57:33 + '[' -f /tmp/packages_start.txt ']' 01:57:33 + '[' -f /tmp/packages_end.txt ']' 01:57:33 + diff /tmp/packages_start.txt /tmp/packages_end.txt 01:57:33 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 01:57:33 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 01:57:33 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 01:57:33 + exit 0 01:57:33 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins14067542742588270615.sh 01:57:33 ---> capture-instance-metadata.sh 01:57:33 Setup pyenv: 01:57:33 system 01:57:33 3.8.20 01:57:33 3.9.20 01:57:33 3.10.15 01:57:33 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 01:57:33 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-SgJa from file:/tmp/.os_lf_venv 01:57:33 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 01:57:35 lf-activate-venv(): INFO: Installing additional packages: lftools 01:57:45 lf-activate-venv(): INFO: Adding /tmp/venv-SgJa/bin to PATH 01:57:45 INFO: Running in OpenStack, capturing instance metadata 01:57:45 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins5951299690272962317.sh 01:57:45 provisioning config files... 01:57:46 Could not find credentials [logs] for transportpce-tox-verify-transportpce-master #6143 01:57:46 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-transportpce-master@tmp/config12299423867296294631tmp 01:57:46 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 01:57:46 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 01:57:46 provisioning config files... 01:57:46 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 01:57:46 [EnvInject] - Injecting environment variables from a build step. 01:57:46 [EnvInject] - Injecting as environment variables the properties content 01:57:46 SERVER_ID=logs 01:57:46 01:57:46 [EnvInject] - Variables injected successfully. 01:57:46 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins5990290338590001448.sh 01:57:46 ---> create-netrc.sh 01:57:46 WARN: Log server credential not found. 01:57:46 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins4360148536539172924.sh 01:57:46 ---> python-tools-install.sh 01:57:46 Setup pyenv: 01:57:46 system 01:57:46 3.8.20 01:57:46 3.9.20 01:57:46 3.10.15 01:57:46 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 01:57:46 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-SgJa from file:/tmp/.os_lf_venv 01:57:46 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 01:57:48 lf-activate-venv(): INFO: Installing additional packages: lftools 01:57:58 lf-activate-venv(): INFO: Adding /tmp/venv-SgJa/bin to PATH 01:57:58 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins15503275608181896777.sh 01:57:58 ---> uv-install.sh 01:57:58 uv 0.12.23 is already installed 01:57:58 uvx 0.12.23 (x86_64-unknown-linux-gnu) 01:57:58 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins10807159312204774965.sh 01:57:58 ---> sudo-logs.sh 01:57:58 Archiving 'sudo' log.. 01:57:58 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins11188645980469281227.sh 01:57:58 ---> job-cost.sh 01:57:58 INFO: Activating Python virtual environment... 01:57:58 Setup pyenv: 01:57:58 system 01:57:58 3.8.20 01:57:58 3.9.20 01:57:58 3.10.15 01:57:58 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 01:57:58 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-SgJa from file:/tmp/.os_lf_venv 01:57:58 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 01:58:00 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 01:58:12 lf-activate-venv(): INFO: Adding /tmp/venv-SgJa/bin to PATH 01:58:12 INFO: No stack-cost file found 01:58:12 INFO: Instance uptime: 729s 01:58:12 INFO: Fetching instance metadata (attempt 1 of 3)... 01:58:12 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 01:58:12 INFO: Successfully fetched instance metadata 01:58:12 INFO: Instance type: v3-standard-4 01:58:12 INFO: Retrieving pricing info for: v3-standard-4 01:58:12 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 01:58:12 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=729 01:58:13 INFO: Successfully fetched Vexxhost pricing API 01:58:13 INFO: Retrieved cost: 0.11 01:58:13 INFO: Retrieved resource: v3-standard-4 01:58:13 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost 01:58:13 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost.csv 01:58:13 INFO: Successfully archived job cost data 01:58:13 DEBUG: Cost data: transportpce-tox-verify-transportpce-master,6143,2026-10-08 01:58:13,v3-standard-4,729,0.11,0.00,FAILURE 01:58:13 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins18240492840611249288.sh 01:58:13 ---> logs-deploy.sh 01:58:13 Setup pyenv: 01:58:13 system 01:58:13 3.8.20 01:58:13 3.9.20 01:58:13 3.10.15 01:58:13 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 01:58:13 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-SgJa from file:/tmp/.os_lf_venv 01:58:13 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 01:58:15 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 01:58:31 lf-activate-venv(): INFO: Adding /tmp/venv-SgJa/bin to PATH 01:58:31 WARNING: Nexus logging server not set 01:58:31 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-transportpce-master/6143/ 01:58:31 INFO: archiving logs to S3 01:58:32 ---> uname -a: 01:58:32 Linux prd-ubuntu2204-docker-4c-16g-62847 5.15.0-198-generic #208-Ubuntu SMP Fri Sep 4 10:22:38 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 01:58:32 01:58:32 01:58:32 ---> lscpu: 01:58:32 Architecture: x86_64 01:58:32 CPU op-mode(s): 32-bit, 64-bit 01:58:32 Address sizes: 40 bits physical, 48 bits virtual 01:58:32 Byte Order: Little Endian 01:58:32 CPU(s): 4 01:58:32 On-line CPU(s) list: 0-3 01:58:32 Vendor ID: AuthenticAMD 01:58:32 Model name: AMD EPYC-Rome Processor 01:58:32 CPU family: 23 01:58:32 Model: 49 01:58:32 Thread(s) per core: 1 01:58:32 Core(s) per socket: 1 01:58:32 Socket(s): 4 01:58:32 Stepping: 0 01:58:32 BogoMIPS: 5600.02 01:58:32 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 01:58:32 Virtualization: AMD-V 01:58:32 Hypervisor vendor: KVM 01:58:32 Virtualization type: full 01:58:32 L1d cache: 128 KiB (4 instances) 01:58:32 L1i cache: 128 KiB (4 instances) 01:58:32 L2 cache: 2 MiB (4 instances) 01:58:32 L3 cache: 64 MiB (4 instances) 01:58:32 NUMA node(s): 1 01:58:32 NUMA node0 CPU(s): 0-3 01:58:32 Vulnerability Gather data sampling: Not affected 01:58:32 Vulnerability Indirect target selection: Not affected 01:58:32 Vulnerability Itlb multihit: Not affected 01:58:32 Vulnerability L1tf: Not affected 01:58:32 Vulnerability Mds: Not affected 01:58:32 Vulnerability Meltdown: Not affected 01:58:32 Vulnerability Mmio stale data: Not affected 01:58:32 Vulnerability Reg file data sampling: Not affected 01:58:32 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 01:58:32 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 01:58:32 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 01:58:32 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 01:58:32 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 01:58:32 Vulnerability Srbds: Not affected 01:58:32 Vulnerability Tsa: Not affected 01:58:32 Vulnerability Tsx async abort: Not affected 01:58:32 Vulnerability Vmscape: Not affected 01:58:32 01:58:32 01:58:32 ---> nproc: 01:58:32 4 01:58:32 01:58:32 01:58:32 ---> df -h: 01:58:32 Filesystem Size Used Avail Use% Mounted on 01:58:32 tmpfs 1.6G 1.1M 1.6G 1% /run 01:58:32 /dev/vda1 78G 11G 67G 14% / 01:58:32 tmpfs 7.9G 0 7.9G 0% /dev/shm 01:58:32 tmpfs 5.0M 0 5.0M 0% /run/lock 01:58:32 /dev/vda15 105M 6.1M 99M 6% /boot/efi 01:58:32 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 01:58:32 01:58:32 01:58:32 ---> free -m: 01:58:32 total used free shared buff/cache available 01:58:32 Mem: 15989 689 9867 4 5431 14956 01:58:32 Swap: 1023 0 1023 01:58:32 01:58:32 01:58:32 ---> ip addr: 01:58:32 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 01:58:32 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 01:58:32 inet 127.0.0.1/8 scope host lo 01:58:32 valid_lft forever preferred_lft forever 01:58:32 inet6 ::1/128 scope host 01:58:32 valid_lft forever preferred_lft forever 01:58:32 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 01:58:32 link/ether fa:16:3e:f7:2c:29 brd ff:ff:ff:ff:ff:ff 01:58:32 altname enp0s3 01:58:32 inet 10.30.170.142/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 01:58:32 valid_lft 85659sec preferred_lft 85659sec 01:58:32 inet6 fe80::f816:3eff:fef7:2c29/64 scope link 01:58:32 valid_lft forever preferred_lft forever 01:58:32 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 01:58:32 link/ether 56:4f:b6:ec:ae:96 brd ff:ff:ff:ff:ff:ff 01:58:32 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 01:58:32 valid_lft forever preferred_lft forever 01:58:32 inet6 fe80::544f:b6ff:feec:ae96/64 scope link 01:58:32 valid_lft forever preferred_lft forever 01:58:32 01:58:32 01:58:32 ---> sar -b -r -n DEV: 01:58:32 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-62847) 10/08/26 _x86_64_ (4 CPU) 01:58:32 01:58:32 01:46:15 LINUX RESTART (4 CPU) 01:58:32 01:58:32 01:58:32 ---> sar -P ALL: 01:58:32 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-62847) 10/08/26 _x86_64_ (4 CPU) 01:58:32 01:58:32 01:46:15 LINUX RESTART (4 CPU) 01:58:32 01:58:32 01:58:32